Closed GoogleCodeExporter closed 9 years ago
Supported.. changes made to config and playlist/playlist controller classes to
allow a MRSS playlist to be read
in and stored in the config so that it's used during stream sequencing.
Tested with the following classes:
_vastController = new VASTController();
var jsonConfig:Config = (new PropertyBinder(new Config(),
null).copyProperties(_model.config) as Config);
var playlist:Playlist =
PlaylistController.getPlaylistObject(PlaylistController.PLAYLIST_FORMAT_MEDIA);
playlist.loadFromString(MediaRSSPlaylistTestHarness.getTestData());
jsonConfig.loadShowStreamsConfigFromPlaylist(playlist);
_vastController.initialise(jsonConfig);
_vastController.load();
This code does the following:
1. Constructs the VASTController instance
2. Reads in the standard JSON based config for the player (this uses the
Flowplayer PropertyBinder which you
won't be able to use - see below)
3. The a playlist object is constructed of type MRSS
4. I then use that playlist object to read in the XML playlist data - that has
to be provided as a String so you'll
have to have that ready to go by this time - in the code above I have a simple
test harness that has a playlist
structure defined
5. Then I instruct the config to load up the show streams configuration data
from the playlist, passing in the
MRSS playlist object
6. Once that's done, then the VASTController can be initialised with the fully
loaded configuration object
7. Then trigger load() on the VASTController to construct the final stream
sequence
Original comment by paul.sch...@gmail.com
on 4 Oct 2009 at 4:06
Original issue reported on code.google.com by
paul.sch...@gmail.com
on 2 Oct 2009 at 5:10