The following errors prevent my web app from working:
"Uncaught TypeError: Cannot call method 'removeAttribute' of null"
"Uncaught TypeError: Cannot call method 'appendChild' of null"
Here's an example:
http://bit.ly/10QO0mv
The app should play the video playlist as soon as it's loaded, instead the video just hangs and never plays.
The video
will play if you click on the second video in the playlist and then click back on the first video.
I need the first video to autoplay as soon as the page loads.
I get the same error regardless if I place
html Code:
Original
- html Code |
|
|
|
<script type="text/javascript" src="js/playlist_jquery.js"></script>
between the HEAD tags or right before the closing BODY tag
Some people have suggested to start playing the video once body is loaded or put your code inside an onload event like
Code:
$(document).ready(function() {
// start video streaming once all resources are done loading
});
or
Code:
<script type="text/javascript">
window.onload = function(){
...
}
</script>
</head>
<body>
If that might resolve the errors and allow the video to autoplay, all of the code in the web page that executes the video and the video playlist is PHP, so what exactly should I put in the document.ready or onload event?
(I can post the html and php if necessary)
I would appreciate your help -
DK