зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1103188 - MediaStream WebIDL update with addTrack/removeTrack. r=smaug,jib
--HG-- extra : commitid : 3I8mAeBB3oL extra : rebase_source : 030f83f3a79a7f4cb938cb509983f87a5a557aab
This commit is contained in:
Родитель
f7821ba184
Коммит
bf0d10f4e7
|
@ -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,17 +27,23 @@ 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;
|
||||
// attribute EventHandler onaddtrack;
|
||||
// attribute EventHandler onremovetrack;
|
||||
readonly attribute double currentTime;
|
||||
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);
|
||||
// MediaStream clone ();
|
||||
// readonly attribute boolean active;
|
||||
// attribute EventHandler onactive;
|
||||
// attribute EventHandler oninactive;
|
||||
// attribute EventHandler onaddtrack;
|
||||
// attribute EventHandler onremovetrack;
|
||||
readonly attribute double currentTime;
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче