Open pangus45 opened 11 years ago
$('.minplayer-default-play').click();
...has the same effect. Clicking the play button of the player works fine.
minplayer.get('media', function(media) {
media.player.playVideo();
});
... didn't fix it either.
Will you provide the complete html page that reproduces this issue?
That was quick - Here's the page bar the html tags which it wouldn't accept.
<head>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/start/jquery-ui.css" >
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>
<script type="text/javascript" src="../MyJSLib/osmplayer/bin/osmplayer.compressed.js"></script>
<link rel="stylesheet" href="../MyJSLib/osmplayer/templates/default/css/osmplayer_default.css">
<script type="text/javascript" src="../MyJSLib/osmplayer/templates/default/js/osmplayer.default.js"></script>
<script type="text/javascript" src="../MyJSLib/osmplayer/templates/default/js/osmplayer.controller.default.js"></script>
<script type="text/javascript" src="../MyJSLib/osmplayer/templates/default/js/osmplayer.pager.default.js"></script>
<script type="text/javascript" src="../MyJSLib/osmplayer/templates/default/js/osmplayer.playLoader.default.js"></script>
<script type="text/javascript" src="../MyJSLib/osmplayer/templates/default/js/osmplayer.playlist.default.js"></script>
<script type="text/javascript" src="../MyJSLib/osmplayer/templates/default/js/osmplayer.teaser.default.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('video').osmplayer();
window.setTimeout(function(){
minplayer.get('media', function(media) {
media.play();
});
},5000);
});
</script>
</head>
<body>
<video id="youtube" src="http://www.youtube.com/watch?v=wjiaDgmM_2Q"></video>
<input type="text">
</body>
Were you able to reproduce it?
Sorry to be persistent. Would love to know if you were able to reproduce it so I can write off it being anything at my end. Am I using the player in ways I shouldn't etc.?
Tried on latest Chrome, Firefox and IE - same problem. I'm using Youtube. I haven't tried it with any other provider but if I create a Youtube player myself and call playVideo it doesn't happen, so I'm pretty sure it's something in the OSM player.
To reproduce, create a page with a player and an input. Attach...
...to a setTimeout or to a button click.
You can no longer enter text into the input. Clicking on the player or out of the window and back in the input will fix it.