зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 9c8e3a0dbff3 (bug 1208373)
This commit is contained in:
Родитель
51b3fd3c7d
Коммит
f9283e86ce
|
@ -350,22 +350,6 @@ MediaStreamTrack::Clone()
|
|||
return newStream->CloneDOMTrack(*this, mTrackID);
|
||||
}
|
||||
|
||||
void
|
||||
MediaStreamTrack::NotifyEnded()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
|
||||
if (mEnded) {
|
||||
return;
|
||||
}
|
||||
|
||||
LOG(LogLevel::Info, ("MediaStreamTrack %p ended", this));
|
||||
|
||||
mEnded = true;
|
||||
|
||||
DispatchTrustedEvent(NS_LITERAL_STRING("ended"));
|
||||
}
|
||||
|
||||
DOMMediaStream*
|
||||
MediaStreamTrack::GetInputDOMStream()
|
||||
{
|
||||
|
|
|
@ -267,18 +267,9 @@ public:
|
|||
ApplyConstraints(const dom::MediaTrackConstraints& aConstraints, ErrorResult &aRv);
|
||||
already_AddRefed<MediaStreamTrack> Clone();
|
||||
|
||||
IMPL_EVENT_HANDLER(ended)
|
||||
|
||||
bool Ended() const { return mEnded; }
|
||||
|
||||
/**
|
||||
* Notified by the MediaStreamGraph, through our owning MediaStream on the
|
||||
* main thread.
|
||||
*
|
||||
* Note that this sets the track to ended and raises the "ended" event
|
||||
* synchronously.
|
||||
*/
|
||||
void NotifyEnded();
|
||||
// Notifications from the MediaStreamGraph
|
||||
void NotifyEnded() { mEnded = true; }
|
||||
|
||||
/**
|
||||
* Get this track's principal.
|
||||
|
|
|
@ -75,7 +75,7 @@ interface MediaStreamTrack : EventTarget {
|
|||
// readonly attribute boolean _readonly;
|
||||
// readonly attribute boolean remote;
|
||||
// readonly attribute MediaStreamTrackState readyState;
|
||||
attribute EventHandler onended;
|
||||
// attribute EventHandler onended;
|
||||
MediaStreamTrack clone ();
|
||||
void stop ();
|
||||
// MediaTrackCapabilities getCapabilities ();
|
||||
|
|
Загрузка…
Ссылка в новой задаче