Happen that in some of my projects I needed a way to control media content like mp3 and mp4 via JavaScript, so I've decided to extend my existing WAML JavaScript core with new module waml.windowsmedia.js, I will provide download link's a bit later after I finish with polishing this functionality.
<div id="playerContent"></div>
var player = new Waml.Media.MediaPlayer('playerContent', Waml.Media.GUID.QUICK_TIME);
player.play(url);
Initially I made it in a way where it can handle only Windows Media player embedding, but I found that in Firefox browser it works differently if you have Apple QuickTime installed. Basically QuickTime overtakes <embed /> content, so I had to enable some support for QuickTime in a way where you can choose what media engine you use right in object construction, as I showed above.
Stay tuned, more things coming.
0 comments:
Post a Comment