Bug 24874 - HTMLMediaElement: 'duration' defaults to NaN, deal with it
Summary: HTMLMediaElement: 'duration' defaults to NaN, deal with it
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 21:33 PDT by Eric Carlson
Modified: 2009-03-27 05:59 PDT (History)
0 users

See Also:


Attachments
proposed patch (1.77 KB, patch)
2009-03-26 21:45 PDT, Eric Carlson
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2009-03-26 21:33:27 PDT
As per the spec, the duration of a media file is NaN when no media data is available The HTMLMediaElement needs to special case that state when it does comparisons with "duration()".
Comment 1 Eric Carlson 2009-03-26 21:45:42 PDT
Created attachment 29004 [details]
proposed patch
Comment 2 Eric Carlson 2009-03-27 05:59:44 PDT
Sending        WebCore/ChangeLog
Sending        WebCore/html/HTMLMediaElement.cpp
Transmitting file data ..
Committed revision 42029.