onwaiting অ্যাট্রিবিউটটি ট্রিগার হয় যখন একটি ভিডিও পজ হয় এবং বাফার করে আবার রিজিউম হওয়ার জন্য অপেক্ষা করে। নিচের কোডটি চালিয়ে onwaiting অ্যাট্রিবিউটের ব্যবহার দেখুন:
উদাহরণ
<!DOCTYPE html> <html> <body> <h2 id = "test">Play</h2> <video id = "myid" width = "320" height = "176" controls onwaiting = "myFunction()"> <source src = "/html5/foo.ogg" type = "video/ogg" /> <source src = "/html5/foo.mp4" type = "video/mp4" /> Your browser does not support the video element. </video> <script> function myFunction() { document.getElementById("test").innerHTML = "Media resumes again"; } </script> </body> </html>