Closed Bug 900811 Opened 11 years ago Closed 11 years ago

Media Recording - Encoder fail to shutdown when closing the browser tab during recording a fake gUM

Categories

(Core :: Audio/Video: Recording, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26
blocking-b2g koi+
Tracking Status
firefox26 --- fixed

People

(Reporter: shelly, Assigned: shelly)

References

(Blocks 1 open bug)

Details

(Whiteboard: [FT: Media Recording, Sprint][qa-])

Attachments

(1 file)

## STR ##
https://rawgithub.com/randylin/mediaRecorder/master/MediaRecorder.html
1. GetFakeUserMedia
2. Start recording
3. Close this tab

Observe:
The MediaEncoder thread does not shutdown.

Although the stream is "fake", but no harm to fix it.
Assignee: nobody → slin
Could this be a dupe of bug 894134? Or is this part of the reason why bug 894134 is happening?
Blocks: MediaEncoder
(In reply to Jason Smith [:jsmith] from comment #1)
> Could this be a dupe of bug 894134? Or is this part of the reason why bug
> 894134 is happening?

Were you testing bug 894134 with fake gUM? If so, I'm about to attach a fix patch.
Fixes are:
1. Moves the fix in bug 895730 to AudioTrackEncoder::NotifyEndOfStream(), to assure it will be called if MediaStream does not issue a NotifyRemoved().

2. If Cancel() is called, then don't bother creating the track encoder nor outputting the silence data.
Attachment #784844 - Flags: review?(roc)
(In reply to Shelly Lin [:shelly] from comment #2)
> (In reply to Jason Smith [:jsmith] from comment #1)
> > Could this be a dupe of bug 894134? Or is this part of the reason why bug
> > 894134 is happening?
> 
> Were you testing bug 894134 with fake gUM? If so, I'm about to attach a fix
> patch.

Nah, not fake gUM. bug 894134 was tested with real audio in gUM.

It would be interesting to know if the issue being described here provides any benefit to real audio in gUM.
blocking-b2g: --- → koi+
Whiteboard: [FT: Media Recording, Sprint]
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/9803634ed1f3
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
Whiteboard: [FT: Media Recording, Sprint] → [FT: Media Recording, Sprint][qa-]
Component: Video/Audio → Video/Audio: Recording
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: