Menu

Commit [r1480]  Maximize  Restore  History

Fix for FM-348:

Once a video or audio element is loaded, its default time trait is overridden by the permanent versions. However, not all elements have their correct duration set until they are played back. Video elements get their durations from a metadata event that's triggered after play back, for example. To remedy the element's duration going to NaN in between the default trait being removed and the permanent trait being properly set, the NetStreamTimeTrait is extended to take a defaultDuration member. Video and audio elements now forward their default duration value to the trait.

evrijkom@adobe.com 2010-04-06

changed /osmf/trunk/framework/OSMF/org/osmf/elements/AudioElement.as
changed /osmf/trunk/framework/OSMF/org/osmf/elements/LightweightVideoElement.as
changed /osmf/trunk/framework/OSMF/org/osmf/net/NetStreamTimeTrait.as
/osmf/trunk/framework/OSMF/org/osmf/elements/AudioElement.as Diff Switch to side-by-side view
Loading...
/osmf/trunk/framework/OSMF/org/osmf/elements/LightweightVideoElement.as Diff Switch to side-by-side view
Loading...
/osmf/trunk/framework/OSMF/org/osmf/net/NetStreamTimeTrait.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.