зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1103188 - MediaStream WebIDL update with addTrack/removeTrack. r=smaug,jib
--HG-- extra : commitid : FxucwRqUZUo
This commit is contained in:
Родитель
dd7c08d0b3
Коммит
e4aa371fe5
|
@ -210,6 +210,8 @@ public:
|
|||
void GetAudioTracks(nsTArray<nsRefPtr<AudioStreamTrack> >& aTracks);
|
||||
void GetVideoTracks(nsTArray<nsRefPtr<VideoStreamTrack> >& aTracks);
|
||||
void GetTracks(nsTArray<nsRefPtr<MediaStreamTrack> >& aTracks);
|
||||
void AddTrack(MediaStreamTrack& aTrack);
|
||||
void RemoveTrack(MediaStreamTrack& aTrack);
|
||||
|
||||
// NON-WebIDL
|
||||
|
||||
|
|
|
@ -27,16 +27,22 @@ dictionary MediaStreamConstraints {
|
|||
DOMString? peerIdentity = null;
|
||||
};
|
||||
|
||||
// [Exposed=Window,
|
||||
// Constructor,
|
||||
// Constructor (MediaStream stream),
|
||||
// Constructor (sequence<MediaStreamTrack> tracks)]
|
||||
interface MediaStream : EventTarget {
|
||||
readonly attribute DOMString id;
|
||||
sequence<AudioStreamTrack> getAudioTracks();
|
||||
sequence<VideoStreamTrack> getVideoTracks();
|
||||
sequence<MediaStreamTrack> getTracks();
|
||||
// MediaStreamTrack getTrackById (DOMString trackId);
|
||||
// void addTrack (MediaStreamTrack track);
|
||||
// void removeTrack (MediaStreamTrack track);
|
||||
// attribute boolean ended;
|
||||
// attribute EventHandler onended;
|
||||
sequence<AudioStreamTrack> getAudioTracks ();
|
||||
sequence<VideoStreamTrack> getVideoTracks ();
|
||||
sequence<MediaStreamTrack> getTracks ();
|
||||
// MediaStreamTrack? getTrackById (DOMString trackId);
|
||||
void addTrack (MediaStreamTrack track);
|
||||
void removeTrack (MediaStreamTrack track);
|
||||
// MediaStream clone ();
|
||||
// readonly attribute boolean active;
|
||||
// attribute EventHandler onactive;
|
||||
// attribute EventHandler oninactive;
|
||||
// attribute EventHandler onaddtrack;
|
||||
// attribute EventHandler onremovetrack;
|
||||
readonly attribute double currentTime;
|
||||
|
|
Загрузка…
Ссылка в новой задаче