Closed Bug 1093521 Opened 7 years ago Closed 7 years ago

[RTSP] An extra PLAY request is send after end-of-stream

Categories

(Firefox OS Graveyard :: RTSP, defect)

x86
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.1 S8 (7Nov)

People

(Reporter: jhao, Assigned: jhao)

Details

Attachments

(1 file, 1 obsolete file)

After end-of-stream, tcpdump shows that occasionally an extra PLAY request is send.

The reason is that the play action by media decoder is delayed 200ms by a timer. If the playback happens to end in the 200ms, RTSPSource's state becomes CONNECTED, by the time the play action actually takes place.

The solution suggested by Ethan and Benjamin is to stop the play and pause timer when then playback ends.
Assignee: nobody → jhao
Attachment #8516572 - Flags: review?(ettseng)
Comment on attachment 8516572 [details] [diff] [review]
Stop play and pause timer when playback ends

Review of attachment 8516572 [details] [diff] [review]:
-----------------------------------------------------------------

This is a side-effect resulted from bug 1080470.
Thanks for fixing this!
Attachment #8516572 - Flags: review?(ettseng) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/1505c9f42b2f
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S8 (7Nov)
You need to log in before you can comment on or make changes to this bug.