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

Forums

/

Link videos in playlist

7 replies [Last post]

I have a number of very long FLV's that I broke into 4 separate movies or chapters. The playlist has 12 separate movies but if you put movies 4,5,6&7 together they would be a single movie. Is there some script that would allow 5 to play automatically after 4, 6 right after 5 and 7 when 6 was complete? Movie 8 and others would not be affected. By breaking it into sections the visitor could come back and continue after watching a much shorter movie.

You would need to write some JavaScript that monitored the track that was playing, then when it was done, play or not play the next track. Too involved unless you're a JS GURU.

Just break the playlist up in to separate playlists and load the appropriate one to play 4,5,6,7. Load a different playlist to play 8,9.10,11. Use the standard JS loadFile() function with some links or buttons to load the playlists.

function loadFile(swf,obj) {
thisMovie(swf).loadFile(obj);
};

<button onclick="javascript:loadFile('mpl', {file:'playlist-1.xml'}); return false;">First Movie Playlist</button>

The reason I thought it might be possible was because I saw the daisychained example at

http://home5.inet.tele.dk/nyboe/flash/mediaplayer/mutexdaisychain.htm

. I just couldn't see how the script moved from one to the next. If anyone knows if the script can be used or modified to sequence my files I sure would like to know.

The reason I thought it might be possible was because I saw the daisychained example at

http://home5.inet.tele.dk/nyboe/flash/mediaplayer/mutexdaisychain.htm

I just couldn't see how the script moved from one to the next. If anyone knows if the script can be used or modified to sequence my files I sure would like to know.

I found an example that rotates through the entire playlist. I would like to play only four of the playlist items in a row.

http://home5.inet.tele.dk/nyboe/flash/mediaplayer/infodisplay.htm

I just can't decipher the script that does this. I saw where a "next" parameter using javascript API should play the next in the playlist but could not see it in the player code or playlist.xml. Could you get me on the right page? Thank You...

Thanks anderson,
I have the dropdown playlist part working perfectly thanks to your help yesterday. I didn't know if this was possible but I will just label them part 1 through part 4 and be done with it. I was just trying to create break points in a long video that they could return to at their leisure. I have one other question about the scrollbar but will ask it on another post.

unfortunately i havent made any examples that can do what you describe -
all playlist autoplaying examples rely on setting the "repeat" flashvar to "true" or "list", which will simply play all of the playlist
to play only part of the playlist would require a somewhat complicated script, that would either do the looping for the player, or at least keep tab on where it was and then start and stop according to some preset parameters - a bit messy and would take some experimenting and testing to make work...

much, much easier would be, to simply make more playlists, one for each of your movies and then use links or a dropdownlist to change between them - that requires a minimum of script, is well proven to work and quite user friendly

please see the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/playlistlinks.htm]playlistlinks[/url] for the link version
and the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/multipleplaylists.htm]multipleplaylists[/url] demo for the dropdown version - both on the [url=http://home5.inet.tele.dk/nyboe/flash/mediaplayer/]demopage[/url]
here follows the code for the dropdown version without extras:

<html>
<head>

<style type="text/css">
#theForm { POSITION:absolute; LEFT:100px; TOP:200px; }
#placeholder { POSITION: absolute; LEFT:100px; TOP:222px; }
</style>

<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">

function createPlayer(theFile) {
var s = new SWFObject("mediaplayer.swf","playerId","300","355","7");
s.addParam("allowfullscreen","true");
s.addVariable("file",theFile);
s.addVariable("width","300");
s.addVariable("height","355");
s.addVariable("displayheight","230");
s.addVariable("autostart","false");
s.addVariable("shuffle","false");
s.addVariable("thumbsinplaylist","true");
s.write("placeholder");
}
</script>
</head>
<body onLoad="createPlayer(document.theForm.sel1.value)">

<form id="theForm" name="theForm">
  <select name="sel1" onchange="javascript:createPlayer(document.theForm.sel1.value)" style="width:300px">
    <option value="playlist_mp3.xml">playlist_mp3.xml</option>
    <option value="playlist_mixmedia.xml" selected>playlist_mixmedia.xml</option>
    <option value="playlist_remember.xml">playlist_remember.xml</option>
    <option value="playlist_birds.xml">playlist_birds.xml</option>
  </select>
</form>

<div id="placeholder">
<a href="http://www.macromedia.com/go/getflashplayer">Get Flash</a> to see this player
</div>

</body>
</html>

I am running a test site called supsastream.com and i am looking to use this app to create Differeing players for different projects. Currently i am able to pay freelance rates for creating these custom players. We are a team so please send details and a team member will contact you please let me know i am LA based (PST so call 323 632 3617 or email me at supacamdvi@gmail.com