Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

How to play some video but also load the playlist

6 replies [Last post]

Hi' how to play some video file but also load the playlist while playing? is it possible? the video file is not declared inside the playlist itself.

i found this post: http://www.longtailvideo.com/support/forum/Setup-Problems/13078/file-and-item#msg87070
but it only show the playlist when the video COMPLETED.

is there any way to implement it?

Thanks a lot..

The File properties (Reference: http://developer.longtailvideo.com/trac/wiki/FlashVars#Fileproperties) of even a single video are contained in the playlist array within the player.

So you can't have a video playing that is not contained within the player's self-contained playlist.

You could have a separate playlist done in HTML/CSS that didn't have specific tracks showing. See:

     http://www.longtailvideo.com/support/forum/JavaScript-Interaction/13831/Playlist-is-not-loading-in-C...

Thanks for the answer kLink,

@kLink, so you can't have a video playing that is not contained within the player's self-contained playlist.
This is not what i mean, of course the video is contained within the player's. this is my example code:

::Let's say i have some playlist like this (playlist.xml snippet):
<location>longtail.flv</location>

::This is my javascript snippet
s1.addParam("flashvars","file=test.flv&playlist=right&file="http://domain/playlist.xml");

With the above code, player will load and play longtail.flv not test.flv, is there any possible way so i can play the test.flv but the playlist also loaded at the same time? (not in separated playlist)

Thanks a lot.

Please re-read my post.

Using your code, your file test.flv is track zero of the player's internal playlist which is what is also displayed in the player's playlist display.

But during instantiation of the player, that file flashvar value of "test.flv" will be replaced by the later (in your code) file flashvar value of "http://domain/playlist.xml", so only the playlist will be loaded.

The player has an internal playlist object that holds all of the File properties of all of the tracks. That internal playlist object is also used for the player's self-contained playlist display.

You can't load a single file and also load a playlist. It's one or the other.

How about this, is it possible:

My goal in here is i can click and play what ever video but not clicking it inside the playlist (the video is not come from the playlist itself, it is in different location such as HTML link) but when i play it, the playlist also appear.

Right now, i know i can't load a single file and also load the playlist. But is it possible to made the playlist not displaying the track 0? My plan is i want to inject the track 0 with the any video file

Thanks a lot..

How about this scenario:

1) the page loads and there is:
   a) a big blank space,
   b) an image,
   c) the player with a dummy file (you always have to have a valid file when you instantiate the player,
but it can be a dummy file),

2) the user clicks on any clickable element (an image, a link, a button, text in a div, whatever) and:
   a) a video loads and plays (no playlist is displayed, because this video would be track 0 of that playlist display),
   b) when the video is finished playing, a playlist appears.

   [i]—OR—[/i]

3) the user clicks on any clickable element (an image, a link, a button, text in a div, whatever) and:
   a) a video loads and plays (a playlist is displayed, with this video as track 0 of that playlist display),
   b) when the video is finished playing, the playlist is reloaded without the video in track 0.

The only way to not display track 0, is to make a separate playlist using HTML & CSS.

Hi kLink,

I still really need my goal but after read your post, i try to make some conclusion with that, maybe JWPlayer not support for my goal or maybe the team has a road map for that?

With ur scenario i prefer to use number 3, but this is still not my goal, is there any possible way to get what i want?

Thanks a lot..