Closed (fixed)
Project:
MediaFront
Version:
7.x-2.0-rc7
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2013 at 02:42 UTC
Updated:
5 Mar 2013 at 07:34 UTC
Hi,
I would like to create an external playlist, so that when the user clicks on a clip, the media associated with that clip gets loaded into a particular osmplayer.
My understanding is that I should execute the following when the user clicks on a clip:
minplayer.get(my_playerID, "player", function(player) {
player.loadNode(my_mediadata);
});
My question:
I'm not sure how to package up the media associated with a clip, before passing it to loadNode(). What format is loadNode() expecting, for my_mediadata? I'm guessing this is documented somewhere, but I have been looking for a long time and haven't been able to find it.
Thanks very much for your help!
Mindy
Comments
Comment #1
travist commentedEach node should be modeled according to what the RSS parser does... https://github.com/mediafront/osmplayer/blob/2.x/src/osmplayer.parser.rs...
Basically this...
Comment #2
kobnim commentedthank you!!
Comment #3
kobnim commentedHi Travis,
I have a follow-up question.
In player.loadNode(), is it possible to specify multiple media files? Something like:
There are two use cases I have in mind:
(a) The media files are videos. When the one video finishes playing, osmplayer continues to the next video.
(b) The media files are images. The osmplayer invokes a slideshow plugin to display the images.
Thanks very much.
Mindy
Comment #4
travist commentedIf you want a playlist capability, then you would want to use the playlist API to add a series of nodes to the playlist like this...
Comment #5
kobnim commentedthanks again!