OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Adding a track to an inactive MediaStream</title> | 4 <title>Adding a track to an inactive MediaStream</title> |
5 <link rel="author" title="Dominique Hazael-Massieux" href="mailto:dom@w3.org"/> | 5 <link rel="author" title="Dominique Hazael-Massieux" href="mailto:dom@w3.org"/> |
6 <link rel="help" href="http://w3c.github.io/mediacapture-main/getusermedia.html#
widl-MediaStream-addTrack-void-MediaStreamTrack-track"> | 6 <link rel="help" href="http://w3c.github.io/mediacapture-main/getusermedia.html#
widl-MediaStream-addTrack-void-MediaStreamTrack-track"> |
7 <link rel="help" href="http://w3c.github.io/mediacapture-main/getusermedia.html#
widl-MediaStreamTrack-stop-void"> | 7 <link rel="help" href="http://w3c.github.io/mediacapture-main/getusermedia.html#
widl-MediaStreamTrack-stop-void"> |
8 </head> | 8 </head> |
9 <body> | 9 <body> |
10 <p class="instructions">When prompted, accept to share your audio stream, then | 10 <p class="instructions">When prompted, accept to share your audio stream, then |
(...skipping 25 matching lines...) Expand all Loading... |
36 assert_true(video.active, "video stream is active"); | 36 assert_true(video.active, "video stream is active"); |
37 audio.addTrack(video.getVideoTracks()[0]); | 37 audio.addTrack(video.getVideoTracks()[0]); |
38 audio.removeTrack(audio.getAudioTracks()[0]); | 38 audio.removeTrack(audio.getAudioTracks()[0]); |
39 }); | 39 }); |
40 t.done(); | 40 t.done(); |
41 } | 41 } |
42 }); | 42 }); |
43 </script> | 43 </script> |
44 </body> | 44 </body> |
45 </html> | 45 </html> |
OLD | NEW |