| Subject: | MediaBrix Video Player |
| Date Received: | Friday, May 18, 2012 3:49:41 AM |
| Date Sent: | Friday, May 18, 2012 3:47:50 AM |
| From: | Aleksandar Mancic <aleksandarsx@whitecitysoft.com> |
Therefore the upstream compatibility is preserved, with only a couple of exceptions (the core SMP, JavaScript bridge and VAST media processing classes) that had to be augmented/replaced in order to make it work as the OSMF is not as extendable as Adobe would have you believe. I've attached the built release version of the player with this email, so unless you want to build it yourself you can use it for your testing purposes. You can see live examples of it at http://www.whitecitysoft.com/sx/mbrix_mast/tmobile.html andhttp://www.whitecitysoft.com/sx/mbrix_mast/vita.html , and you can use http://www.whitecitysoft.com/sx/mbrix_mast/MBPlayer.html as a template for embedding the player (it uses the SWFObject libary, but you can build the tags any which way you prefer).
That being said, I'll try to summarize bellow the usage basics that should cover your use cases so that we can decide on what needs to be changed/added in further upgrades.
First of all, since it comes bundled with the MAST plugin, the main point of entry for serving ads is a MAST structure - the standard is open and you can read more about it @ http://openvideoplayer.sourceforge.net/mast/mast_specification.pdf . It essentially replaces the structure you were using for the OVA configuration 'til now, but for a quick look of the basic MAST structure you can check the Vita example @http://www.whitecitysoft.com/sx/mbrix_mast/mast/vita.xml - for the most basic setup, just replace the VAST source entry with another VAST entry and it should do it. If needed be, I can create a dynamic MAST structure generator to feed to the MAST Plugin stack based on passed variables from HTML/JS.
To make a MAST/VAST structure load into the player, you need to declare two variables passed as FlashVars to it:
You can also use all standard variables (even to load additional plugins) that the Strobe Media Playback provides, listed @http://help.adobe.com/en_US/FMPSMP/Dev/WS3fd35e178bb08cb3-49a02f129f1468bd6-8000.html . Further, I've added three more variables to the stack in order to control the deployment more easily without a need to rebuild the player:
To control the player from JavaScript is quite a straight-forward process - you need to obtain the player object from the DOM and then you can call directly a plethora of methods exposed to JavaScript like:
If you need some specific method or functionality, ask and I'll look if it's already provided by the SMP or if should be added on top of it. When it comes to Flash->JS communication, specifically the events, you need to pass additional variable to Flash through the FlashVars calledjavascriptCallbackFunction, containing a name of the method to be invoked in JavaScript, once the JavaScript bridge is established. After that, you can start listening for events using the addEventListener("eventName", "eventCallback") exposed method. Here is a quick example of that:
There is also a plethora of events available, to list the most useful ones: emptied, loadStart, play, pause, waiting, loadedMetadata,seeking, seeked, volumeChange, durationChange, timeUpdate, currentTimeChange, progress, complete.
To see a live example of Player<->JS<->Player interaction with the base SMP player (rules applicable in this player as well), you can check one of the sample pages @ http://osmf.org/dev/1.5gm/hello-world-javascript.html
Happy testing, and get back to me with a list of the things you need from the player so I can plan the further updates.
Aleksandar Mancic
System Architect
WhiteCity Soft, LLC
www.whitecitysoft.com
This e-mail is confidential and may also contain privileged information. If you are not the intended recipient, you are not authorized to read, print, save, process or disclose this message. If you have received this message by mistake, please inform the sender immediately and delete this e-mail, its attachments and any copies. Thank you!
Ovaj e-mail je poverljiv i moze sadrzati povlascene informacije. Ukoliko ovaj e-mail nije namenjen Vama, niste ovlasceni da ga citate, stampate, cuvate, obradjujete ili otvarate. Ukoliko ste ovaj e-mail dobili greskom, molimo Vas da nas o tome obavestite i odmah izbrisete e-mail, sve njegove priloge i sve kopije. Hvala Vam!
--PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL