Commit Graph

257 Commits

Author SHA1 Message Date
Wes Kocher
361842c001 Backed out changeset 24c0074052e6 (bug 1224936) for incoming mulet bustage 2015-11-20 17:09:44 -08:00
Andrea Marchesini
537fb2b766 Bug 1224936 - AudioChannelAgent should be informed when HTMLMediaElement dispatches an error, r=roc 2015-11-21 01:04:24 +00:00
Andrea Marchesini
0b608f19b6 Bug 1207546 - Integrate WebRTC with audio channels, r=roc 2015-11-21 01:03:20 +00:00
Boris Zbarsky
11cee47d40 Bug 1224007 part 4. Fix some cases in which ErrorResult instances are destroyed without doing anything useful with exceptions on them. r=peterv 2015-11-20 16:29:41 -05:00
Jean-Yves Avenard
676266e731 Bug 1222387: P1. Properly handle negative seeks when readyState is HAVE_NOTHING. r=jwwang 2015-11-20 19:43:38 +11:00
JW Wang
2da30fff44 Bug 1221881 - HTMLMediaElement::NetworkError() should clear mDecoder. See bug 1221881 comment 2 for the root cause. r=cpearce. 2015-11-11 15:18:11 +08:00
James Cheng
18cabf10a6 Bug 1224991 - Log format string mismatch the number of parameters. r=cpearce. 2015-11-16 19:11:00 +01:00
Phil Ringnalda
3e00b835d0 Back out changeset a9ca2bcc8633 (bug 1224936) for Mulet Gij bustage in Player_test.js
CLOSED TREE
2015-11-16 19:33:26 -08:00
Andrea Marchesini
934a10dd53 Bug 1224936 - AudioChannelAgent should be informed when HTMLMediaElement dispatches an error, r=roc 2015-11-17 01:28:07 +00:00
JW Wang
0b163fff0a Bug 1221009. Part 1 - add a class to forward notifications from MediaResource to MediaDecoder. r=roc. 2015-11-16 07:50:55 +08:00
Chris Pearce
40bfa2072c Bug 1224080 - Ensure attaching MediaKeys before MediaSource doesn't cause load failure. r=gerald 2015-11-14 08:57:52 +13:00
Jean-Yves Avenard
429b2438fb Bug 1188887: P3. Never throw an exception when seeking. r=jwwang
Per spec, no exception can ever be thrown when seeking.
Only leaving cases indicating a failure in one of the component (which other than a second to usec conversion overflow will never happen anyway).
2015-10-28 10:46:01 +11:00
Jean-Yves Avenard
c9c13e4f45 Bug 1188887: P1. Allow seeking when readyState is HAVE_NOTHING. r=jwwang 2015-10-28 10:45:58 +11:00
Kyle Huey
8f8794e1c7 Bug 1216401: Eviscerate nsIDOMWindow, move still needed methods to nsPIDOMWindow. r=bz 2015-10-26 14:37:32 -07:00
Bobby Holley
2fbc62d387 Bug 1216308 - Followup for incomplete fix. r=me 2015-10-26 11:22:29 -07:00
Jean-Yves Avenard
75a403717a Bug 1217304: P2. Do not transition to HAVE_ENOUGH_DATA readyState until we do have data. r=jwwang
We must have at least a decoded frame available to transition to HAVE_ENOUGH_DATA, as otherwise canplay/canplaythrough will always be fired even if the data was invalid so long that it was small.
2015-10-23 23:34:05 +11:00
Jean-Yves Avenard
1256b2036f Bug 1217304: P1. Only fire loadeddata once the first frame has been decoded. r=jwwang
We can't determine otherwise if data is actually playable at the current position
2015-10-23 23:34:05 +11:00
Alastor Wu
45b6ed98fb Bug 1215447 - move flag setting from SeekStarted() to Seek(). r=roc. 2015-10-22 11:37:16 +08:00
Guang-De Lin
c8394561d2 Bug 1150305 - sourcebuffer.buffered returns the same object if not changed. r=roc, r=bz, r=jya 2015-10-19 14:10:47 +08:00
Carsten "Tomcat" Book
b5f2295361 Backed out changeset 780061f96448 (bug 1213154) 2015-10-20 16:08:51 +02:00
Andrea Marchesini
ae953c0b75 Bug 1213154 - tab-sound-icon should be supported by bfcache, r=roc 2015-10-20 01:33:00 +02:00
Bobby Holley
5c965d3bd4 Bug 1216308 - Hoist IsCallerChrome check in HTMLMediaElement::Play to API entry point. r=bz 2015-10-19 17:54:46 -07:00
Nathan Froyd
4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Carsten "Tomcat" Book
ce4c6aef12 Backed out changeset 97e9ac5785f5 (bug 1213154) for bc7 test failures 2015-10-16 12:03:40 +02:00
Andrea Marchesini
5ab0ef4951 Bug 1213154 - tab-sound-icon should be supported by bfcache, r=roc 2015-10-15 05:00:00 +02:00
Andrea Marchesini
0ed5d72754 Bug 1214659 - HTMLMediaElement::UpdateAudioChannelPlayingState() should be easy to read, r=roc 2015-10-15 00:59:00 +02:00
JW Wang
6c0d4f97fe Bug 1214989. Part 3 - remove MediaDecoder::Init() and its callers. r=gerald. 2015-10-15 11:39:45 +08:00
JW Wang
7cc96c1d31 Bug 1214989. Part 2 - add MediaDecoderOwner to Clone() and overrides. r=gerald. 2015-10-15 11:37:47 +08:00
JW Wang
582b648a0d Bug 1214065 - Remove unused arguments from MediaDecoder::Load() and its friends. r=kinetik. 2015-10-14 11:46:27 +08:00
Nigel Babu
02084e8ea8 Backed out changeset e184609e1d13 (bug 1207546) for bustage ON A CLOSED TREE 2015-10-14 13:29:03 +05:30
Andrea Marchesini
838597d936 Bug 1207546 - Integrate WebRTC with audio channels, r=roc 2015-10-14 11:32:23 +05:30
Andrea Marchesini
a2dadd1e73 Bug 1211511 - AudioChannelAgent::NotifyStartedPlaying and NotifyStoppedPlaying should use the same level of playback notification, r=roc 2015-10-07 20:06:47 +01:00
Nicholas Nethercote
685b032310 Bug 1209351 (part 2) - Optimize nsTHashTable::RemoveEntry() usage in dom/. r=bz. 2015-09-24 19:05:16 -07:00
Wes Kocher
95f6ac2f37 Backed out changeset 4f43cdaedec3 (bug 1207546) for webgl-capturestream-test.html failures 2015-10-01 10:10:47 -07:00
Andrea Marchesini
43afa04a9f Bug 1207546 - Integrate WebRTC with audio channels, r=roc 2015-10-01 16:22:25 +03:00
Andreas Pehrson
834cb5e359 Bug 1103188 - MediaStream::AddTrack/RemoveTrack tests. r=jib,roc 2015-09-30 09:32:06 +08:00
Andreas Pehrson
be6c681846 Bug 1103188 - Break out MediaTrackListListener to an interface. r=roc
Other modules than MediaTrackLists may want to receive updates on a
DOMMediaStream's track set. This moves the MediaTrackListListener out of
the MediaTrackList class into DOMMediaStream as a general interface.

The logic for adding MediaTracks to the MediaTrackList when
MediaStreamTracks are added or removed from a DOMMediaStream is moved to
HTMLMediaElement as this fits the model better - HTMLMediaElement is the
owner of the MediaTrackLists.
2015-09-30 09:32:06 +08:00
Andreas Pehrson
c0cbb621ad Bug 1170958 - Don't create owned MediaStreamTracks in MetadataLoaded. r=roc
When play()ing a media element after it has ended, MediaDecoder will
again call MetadataLoaded(). When capturing the media to a
DOMMediaStream, that will attempt to create new MediaStreamTracks in the
stream with the original TrackIDs. That won't work, since the original
tracks with the same TrackIDs have already ended.

We solve it by only explicitly creating MediaStreamTracks in the stream
in captureStream(), and only if they're already known. Otherwise the
tracks will be created asynchronously when available in the underlying
stream.
2015-09-30 09:31:54 +08:00
Andreas Pehrson
4fa3929d86 Bug 1170958 - Improve logging of MediaStreams and playback. r=roc 2015-09-30 09:31:54 +08:00
Andreas Pehrson
9261227d49 Bug 1170958 - Refactor DOMMediaStream to contain a 3-stage track chain. r=roc
This lets us separate tracks by ownership like so:
* Input    - Owned by the producer of the DOMMediaStream (gUM etc.)
* Owned    - Contains Input tracks (per above) or tracks cloned tracks
             if this DOMMediaStream is a clone.
* Playback - Contains Owned tracks plus tracks addTrack()ed to this
             DOMMediaStream minus tracks removeTrack()ed from this
             DOMMediaStream.
2015-09-30 09:31:54 +08:00
Andreas Pehrson
bfde7d0156 Bug 1170958 - Add input stream and track as args to NotifyQueuedTrackChanges. r=roc
This allows for tracking the input track of an added track (for
ProcessedMediaStream tracks; SourceMediaStream tracks don't have input
tracks) directly in the NotifyQueuedTrackChanges handler, which will be
necessary for locking MediaInputPorts to specific tracks.
2015-09-30 09:31:53 +08:00
Wes Kocher
954ce67cb5 Backed out 9 changesets (bug 1170958) for frequent test_getUserMedia_addTrackRemoveTrack.html failures
Backed out changeset 277c1f8098d1 (bug 1170958)
Backed out changeset aa86bb9eea95 (bug 1170958)
Backed out changeset 8af8b85a4b26 (bug 1170958)
Backed out changeset ec1bf225e9cb (bug 1170958)
Backed out changeset 4a04ddca2b6b (bug 1170958)
Backed out changeset e85c9977a311 (bug 1170958)
Backed out changeset 16b40ff04e8f (bug 1170958)
Backed out changeset ad206925c84a (bug 1170958)
Backed out changeset 2106eccec79b (bug 1170958)
2015-09-25 13:08:55 -07:00
Wes Kocher
0a9f4caf61 Backed out 7 changesets (bug 1103188) for frequent test_getUserMedia_addTrackRemoveTrack.html failures
Backed out changeset f0f33a8ef14c (bug 1103188)
Backed out changeset dbe0ebdebad5 (bug 1103188)
Backed out changeset bb656022a1a7 (bug 1103188)
Backed out changeset cc6b5f5ba444 (bug 1103188)
Backed out changeset ca97d52bf144 (bug 1103188)
Backed out changeset de8cc967f8eb (bug 1103188)
Backed out changeset 6da8f4905060 (bug 1103188)
2015-09-25 13:08:44 -07:00
Andreas Pehrson
3cee7dfe89 Bug 1103188 - MediaStream::AddTrack/RemoveTrack tests. r=jib,roc 2015-09-25 23:23:31 +08:00
Andreas Pehrson
5d4a30038f Bug 1103188 - Break out MediaTrackListListener to an interface. r=roc
Other modules than MediaTrackLists may want to receive updates on a
DOMMediaStream's track set. This moves the MediaTrackListListener out of
the MediaTrackList class into DOMMediaStream as a general interface.

The logic for adding MediaTracks to the MediaTrackList when
MediaStreamTracks are added or removed from a DOMMediaStream is moved to
HTMLMediaElement as this fits the model better - HTMLMediaElement is the
owner of the MediaTrackLists.
2015-09-25 23:23:31 +08:00
Andreas Pehrson
48987b4908 Bug 1170958 - Don't create owned MediaStreamTracks in MetadataLoaded. r=roc
When play()ing a media element after it has ended, MediaDecoder will
again call MetadataLoaded(). When capturing the media to a
DOMMediaStream, that will attempt to create new MediaStreamTracks in the
stream with the original TrackIDs. That won't work, since the original
tracks with the same TrackIDs have already ended.

We solve it by only explicitly creating MediaStreamTracks in the stream
in captureStream(), and only if they're already known. Otherwise the
tracks will be created asynchronously when available in the underlying
stream.
2015-09-25 23:23:18 +08:00
Andreas Pehrson
07dddbef19 Bug 1170958 - Improve logging of MediaStreams and playback. r=roc 2015-09-25 23:23:18 +08:00
Andreas Pehrson
4132b4532f Bug 1170958 - Refactor DOMMediaStream to contain a 3-stage track chain. r=roc
This lets us separate tracks by ownership like so:
* Input    - Owned by the producer of the DOMMediaStream (gUM etc.)
* Owned    - Contains Input tracks (per above) or tracks cloned tracks
             if this DOMMediaStream is a clone.
* Playback - Contains Owned tracks plus tracks addTrack()ed to this
             DOMMediaStream minus tracks removeTrack()ed from this
             DOMMediaStream.
2015-09-25 23:23:18 +08:00
Andreas Pehrson
06c7ef7f26 Bug 1170958 - Add input stream and track as args to NotifyQueuedTrackChanges. r=roc
This allows for tracking the input track of an added track (for
ProcessedMediaStream tracks; SourceMediaStream tracks don't have input
tracks) directly in the NotifyQueuedTrackChanges handler, which will be
necessary for locking MediaInputPorts to specific tracks.
2015-09-25 23:23:17 +08:00
Nicholas Nethercote
0929981996 Bug 1207741 - Remove gfxIntSize. r=nical.
gfxIntSize is just a typedef of gfx::IntSize, so this is very mechanical. The
only tricky part is deciding for each occurrence whether to replace it with
IntSize, gfx::IntSize or mozilla::gfx::IntSize; in all cases I went with the
shortest one that worked given the existing "using namespace" declarations.
2015-09-23 11:49:05 -07:00