Spotify App API: Player view for track
I'm trying how to figure out how to play/insert a single track with v.Player.
I'm using the following code:

     var player = new v.Player();
     player.track = objTrack;
     player.context = objTrack.album;
*Console error message: Uncaught TypeError: Cannot read property 'length' of undefined*

It works like a charm when playing from a playlist with:

    player.track = Playlist.get(0);
    player.context = Playlist;

And if I use following code, it works but it starts the playback automatically:

    player.play(objTrack, objTrack.album);

Do you have any clue?
Thanks.
Spotify App API: Player view for track
===

I'm trying how to figure out how to play/insert a single track with v.Player.
I'm using the following code:

     var player = new v.Player();
     player.track = objTrack;
     player.context = objTrack.album;
*Console error message: Uncaught TypeError: Cannot read property 'length' of undefined*

It works like a charm when playing from a playlist with:

    player.track = Playlist.get(0);
    player.context = Playlist;

And if I use following code, it works but it starts the playback automatically:

    player.play(objTrack, objTrack.album);

Do you have any clue?
Thanks.