We are looking to create a chromeless version of the JWPlayer (<[login to view URL]>? with no controls) with the following interface to a LoaderSWF. We want to maintain all of the same functionality (playlist, logo, clickable video, plugins, et al). The goal is to allow customers the ability to use our player inside their Flash player and to provide a simple interface to core player functionality while we main the ability to insert preroll or midrolls and plugins using the existing playlist functionality.?
New Player Flashvars used to customize playlist xml:
======================================================================
var playerid:String
var playlistid:String
var publishedid:String
var customerid:String
New Security Method:
====================
Chromeless player to validate the hosting URL of the player. We will create a server side application
that will return true(valid) or false(invalid) where the player will stop loading
isPlayerLoaded():boolean
loadVideoById(id)
Load the specified video and starts playing the video.? The id parameter corresponds to the publishedid.
This needs to pull a new playlist from a URL provided.
cueVideoById(id)
mute();
getPlayerState(): returns -1 to 5, where -1 = loaded, 0 = finished, 1 =
playing, 2 = paused, 3 = buffering, 5 = cued
getDuration():Number;
duration in seconds
playVideo();
pauseVideo();
seekTo(seconds);
getVolume();
Returns the player's current volume, an integer between 0-100
setVolume(vol)
vol = an integer between 0-100
setSize(playw,playh);
getCurrentTime();
addEventListener(event, listener):Void
eventtypes:
"onStateChange"
Fired whenever the player's state changes. Possible values are
loaded/unstarted (-1), ended (0), playing (1), paused (2), buffering (3),
video cued (5). When the SWF is first loaded, it will broadcast an
unstarted (-1) event. When the video is cued and ready to play, it
will broadcast a video cued event (5).
"onError"
## Deliverables
We are looking to create a chromeless version of the JWPlayer (no controls) with the following interface to a LoaderSWF. We want to maintain all of the same functionality (playlist, logo, clickable video, plugins, et al). The goal is to allow customers the ability to use our player inside their Flash player and to provide a simple interface to core player functionality while we main the ability to insert preroll or midrolls and plugins using the existing playlist functionality. New Player Flashvars used to customize playlist xml: ====================================================================== var playerid:String = [login to view URL]['pid']; var playlistid:String = [login to view URL]['playlistid']; var publishedid:String = [login to view URL]['id']; var customerid:String = [login to view URL]['c']; New Security Method: ==================== Chromeless player to validate the hosting URL of the player. We will create a server side application that will return true(valid) or false(invalid) where the player will stop loading and present a message that this content is not available on this website. The player needs to pass customerid and the URL where the server will decide based on the customer profile whether the content is allowed. isPlayerLoaded():boolean returns true when player is loaded, code has executed on first frame, and functions can be called on player loadVideoById(id) Load the specified video and starts playing the video. The id parameter corresponds to the publishedid. This needs to pull a new playlist from a URL supplied after acceptance. cueVideoById(id) Loads the specified video's thumbnail and prepares the player to play the video. The player does not request the FLV until playVideo() or seekTo() is called. mute(); mutes the player getPlayerState(): returns -1 to 5, where -1 = loaded, 0 = finished, 1 = playing, 2 = paused, 3 = buffering, 5 = cued getDuration():Number; Returns the duration in seconds of the currently playing video. playVideo(); Plays the currently cued/loaded video. pauseVideo(); Pauses the currently playing video. seekTo(seconds); Seeks to the specified time of the video in seconds. getVolume(); Returns the player's current volume, an integer between 0-100 setVolume(vol) vol = an integer between 0-100 setSize(playw,playh); Sets the size in pixels of the player. getCurrentTime(); Returns the current time in seconds of the current video. addEventListener(event, listener):Void Adds a listener function for the specified event. The Slide harness uses event listeners to update the controls (play, pause, seek etc). The Slide harness also listens for "onError", which is broadcast if the flv for a video cannot be loaded. (covers bad/missing video id's) eventtypes: "onStateChange" Fired whenever the player's state changes. Possible values are loaded/unstarted (-1), ended (0), playing (1), paused (2), buffering (3), video cued (5). When the SWF is first loaded, it will broadcast an unstarted (-1) event. When the video is cued and ready to play, it will broadcast a video cued event (5). "onError" Fired when an error in the player occurs. Currently there is only one error code, which is 100 for "Video not found."