OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Add <source> after removing failed candidate</title> |
| 5 <script src=video-test.js></script> |
| 6 <script src=media-file.js></script> |
| 7 <script> |
| 8 function error() |
| 9 { |
| 10 findMediaElement(); |
| 11 video.removeChild(video.firstChild); |
| 12 var source = document.createElement("source"); |
| 13 source.src = findMediaFile("video", "content/test"); |
| 14 video.appendChild(source); |
| 15 waitForEventAndEnd("loadedmetadata"); |
| 16 } |
| 17 </script> |
| 18 </head> |
| 19 |
| 20 <body> |
| 21 <video><source onerror="error()"></video> |
| 22 </body> |
| 23 </html> |
OLD | NEW |