Wednesday, May 23, 2012

Resizing Silverlight MediaElement Crashes Plugin

I'm building a Silverlight option in my HTML5 video player (using the JavaScript API). Traditionally, with the Flash player and the HTML5 video I would just resize the video to whatever the container size is.



However, with Silverlight, if I resize certain MP4 videos up, it crashes the plugin. Some videos don't do this, but the ones that do, do it every time. I experimented with an even size factor like 1.5x or 2x but that didn't help. Sizing it down has no problems.



Has anyone experienced this? Is it a known bug? Are there workarounds? Besides, "don't do that", for which I'm aware MS recommends not resizing the video at all. I can accept a performance degradation, but crashing is a concern.





No comments:

Post a Comment