gecko-dev/dom/media/encoder
Andreas Pehrson be74876e25 Bug 1208371 - Add PrincipalHandle to MediaChunks. r=mt,jesup
PrincipalHandle is a thread safe pointer to a holder of (the main-thread-only
nsIPrincipal) that can be passed around the MSG.

A MediaStreamTrack whose source has just updated its principal, sets the new
principal aside (as its "pending principal"), and combines the new principal
into its current principal.

Then the source starts passing the new principal to the MediaStreamGraph as
a PrincipalHandle.

Changes to a track's PrincipalHandle on the MSG will be surfaced through the
MediaStreamTrackListener API. These changes are dispatched to main thread
and compared to a MediaStreamTrack's pending principal. In case of a match
the track knows the correct principal is flowing and can move the pending
principal to be the current principal and update any main thread principal
observers.

MozReview-Commit-ID: D0JXGWhQFFU

--HG--
extra : rebase_source : 296e269bb46fc5a85a9c3f90dfc0dc40e53572bc
2016-04-06 14:56:44 +02:00
..
fmp4_muxer Bug 1229963 - use UniquePtr<T[]> instead of nsAutoArrayPtr<T> in dom/media/; r=cpearce 2015-12-02 18:07:59 -05:00
ContainerWriter.h Bug 1182996 - Fix and add missing namespace comments. rs=ehsan 2015-07-13 08:25:42 -07:00
EncodedFrameContainer.h Bug 1205927 - Part 1: [MediaEncoder] Support *.3g2 with EVRC audio format. r=ayang 2015-10-27 15:12:26 +08:00
MediaEncoder.cpp Bug 1208371 - Add PrincipalHandle to MediaChunks. r=mt,jesup 2016-04-06 14:56:44 +02:00
MediaEncoder.h Bug 1257318: Move MediaRecorder to use DirectListeners wherever possible. r=roc 2016-03-19 16:53:51 -04:00
OmxTrackEncoder.cpp Bug 1205927 - Part 1: [MediaEncoder] Support *.3g2 with EVRC audio format. r=ayang 2015-10-27 15:12:26 +08:00
OmxTrackEncoder.h Bug 1205927 - Part 1: [MediaEncoder] Support *.3g2 with EVRC audio format. r=ayang 2015-10-27 15:12:26 +08:00
OpusTrackEncoder.cpp Bug 1215115 - part2: Mux opus into webm, remove bitdepth. r=rillian 2016-04-01 11:04:00 +08:00
OpusTrackEncoder.h Bug 1215115 - part2: Mux opus into webm, remove bitdepth. r=rillian 2016-04-01 11:04:00 +08:00
TrackEncoder.cpp Bug 1208371 - Add PrincipalHandle to MediaChunks. r=mt,jesup 2016-04-06 14:56:44 +02:00
TrackEncoder.h Bug 1240411: P9. Clean up media headers. r=jwwang 2016-01-19 19:47:36 +11:00
TrackMetadataBase.h Bug 1205927 - Part 1: [MediaEncoder] Support *.3g2 with EVRC audio format. r=ayang 2015-10-27 15:12:26 +08:00
VP8TrackEncoder.cpp Bug 1243611 - When EOS, call vpx_codec_encode correctly. r=rillian 2016-02-26 16:07:29 +08:00
VP8TrackEncoder.h Bug 1243611 - When EOS, call vpx_codec_encode correctly. r=rillian 2016-02-26 16:07:29 +08:00
moz.build Bug 1215115 - part1: Replace the vorbis by opus in MediaEncoder and also reomve the VorbisTrackEncoder files. r=rillian 2016-03-30 18:03:05 +08:00