Closed Bug 756372 Opened 14 years ago Closed 14 years ago

Change |seeking| to prevent seeking in WebM livestream.

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: padenot, Assigned: padenot)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 657791 prevent us from seeking in webm files that have no Cues. Despite that limitation, |seekable| returns |buffered| while playing a livestream, allowing the user to seek in the stream via the front-end, and displaying an infinite spinning throbber. We should return an empty TimeRanges object for |Seekable| when playing a live stream, or playing a bounded media that is not served with range requests.
This patch adds an virtual method in the ns*Readers to report if that backend is capable of seeking using only buffered ranges. This method is then called in |nsBuiltinDecoder::GetSeekable| to get the behavior wanted.
Assignee: nobody → paul
Status: NEW → ASSIGNED
Attachment #625011 - Flags: review?(kinetik)
Comment on attachment 625011 [details] [diff] [review] Patch v0 : change seekable behavior for WebM. -nsresult nsRawReader::Seek(PRInt64 aTime, PRInt64 aStartTime, PRInt64 aEndTime, PRInt64 aCurrentTime) +nsresult nsRawReader::Seek(PRInt65 aTime, PRInt64 aStartTime, PRInt64 aEndTime, PRInt64 aCurrentTime) This looks like an accidental change. r+ with that removed.
Attachment #625011 - Flags: review?(kinetik) → review+
Attached patch Addressed nit. — — Splinter Review
Attachment #625011 - Attachment is obsolete: true
Keywords: checkin-needed
Flags: in-testsuite?
Keywords: checkin-needed
Target Milestone: --- → mozilla15
This is likely to be a more or less temporary patch waiting for Bug 657791. Does not worth a test, I believe.
Target Milestone: mozilla15 → ---
Target Milestone: --- → mozilla15
Flags: in-testsuite? → in-testsuite-
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Depends on: 774084
Depends on: 795784
Depends on: 817124
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: