Menu

Commit [r1304]  Maximize  Restore  History

Fix FM-60: MediaPlayer.load swallows exceptions. The fix is to convert exceptions into MediaErrorEvents with the details of the failure. This approach is preferred over throwing an exception, because this is an error which doesn't strictly qualify as a programming error (e.g. the exception may be due to passing an resource to a MediaElement that doesn't handle it, and the MediaPlayer client may just be acting as a pass-through). Updated unit tests and ExamplePlayer with another failure sample.

briggs@adobe.com 2010-03-11

changed /osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/AllExamples.as
changed /osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/view/MainWindow.as
changed /osmf/trunk/framework/OSMF/org/osmf/events/MediaErrorCodes.as
changed /osmf/trunk/framework/OSMF/org/osmf/media/LoadableElementBase.as
changed /osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayer.as
changed /osmf/trunk/framework/OSMF/org/osmf/utils/OSMFStrings.as
changed /osmf/trunk/framework/OSMFTest/org/osmf/media/TestLoadableElementBase.as
/osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/AllExamples.as Diff Switch to side-by-side view
Loading...
/osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/view/MainWindow.as Diff Switch to side-by-side view
Loading...
/osmf/trunk/framework/OSMF/org/osmf/events/MediaErrorCodes.as Diff Switch to side-by-side view
Loading...
/osmf/trunk/framework/OSMF/org/osmf/media/LoadableElementBase.as Diff Switch to side-by-side view
Loading...
/osmf/trunk/framework/OSMF/org/osmf/media/MediaPlayer.as Diff Switch to side-by-side view
Loading...
/osmf/trunk/framework/OSMF/org/osmf/utils/OSMFStrings.as Diff Switch to side-by-side view
Loading...
/osmf/trunk/framework/OSMFTest/org/osmf/media/TestLoadableElementBase.as Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.