Created
November 20, 2012 13:45
-
-
Save solisoft/4118026 to your computer and use it in GitHub Desktop.
kaltura https don't work with firefox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Recording sample</title> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script> | |
<!--<script src="http://html5.kaltura.org/js"></script>--> | |
<script type="text/javascript" src="http://cdnsecakmi.kaltura.com/html5/html5lib/v1.6.12.27i/mwEmbedLoader.php"></script> | |
<style> | |
#log { background: yellow; padding: 5px; } | |
</style> | |
<script> | |
var kdp; | |
$(function() { | |
var partnerID = "863542"; | |
var uiconf_id = '7502092'; | |
var entryID = '1_mq9koh65'; | |
window['onSeek'] = function(val){ | |
$("#log").append("Seek : "+val +"<br>"); | |
}; | |
mw.setConfig("KalturaSupport.LeadWithHTML5", true); | |
kWidget.embed({ | |
'targetId': "widget", | |
'wid': '_'+ partnerID, | |
'uiconf_id' : uiconf_id, | |
'entry_id' : entryID, | |
'flashvars':{ | |
'externalInterfaceDisabled' : false, | |
'autoPlay' : false, | |
'autoRewind': true, | |
'EmbedPlayer.ControlsHeight': 0, | |
'EmbedPlayer.OverlayControls': false | |
}, | |
readyCallback: function( pID ){ | |
kdp = document.getElementById( pID ); | |
kdp.addJsListener( 'playerUpdatePlayhead', 'onSeek'); | |
} | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<h2>Without HTTPS</h2> | |
<div id="widget" style="width:320px;height:240px"></div> | |
<div id="log"></div> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Recording sample</title> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script> | |
<!--<script src="http://html5.kaltura.org/js"></script>--> | |
<script type="text/javascript" src="https://cdnsecakmi.kaltura.com/html5/html5lib/v1.6.12.27i/mwEmbedLoader.php"></script> | |
<style> | |
#log { background: yellow; padding: 5px; } | |
</style> | |
<script> | |
var kdp; | |
$(function() { | |
var partnerID = "863542"; | |
var uiconf_id = '7502092'; | |
var entryID = '1_mq9koh65'; | |
window['onSeek'] = function(val){ | |
$("#log").append("Seek : "+val +"<br>"); | |
}; | |
mw.setConfig("KalturaSupport.LeadWithHTML5", true); | |
kWidget.embed({ | |
'targetId': "widget", | |
'wid': '_'+ partnerID, | |
'uiconf_id' : uiconf_id, | |
'entry_id' : entryID, | |
'flashvars':{ | |
'externalInterfaceDisabled' : false, | |
'autoPlay' : false, | |
'autoRewind': true, | |
'EmbedPlayer.ControlsHeight': 0, | |
'EmbedPlayer.OverlayControls': false | |
}, | |
readyCallback: function( pID ){ | |
kdp = document.getElementById( pID ); | |
kdp.addJsListener( 'playerUpdatePlayhead', 'onSeek'); | |
} | |
}); | |
}); | |
</script> | |
</head> | |
<body> | |
<h2>With HTTPS</h2> | |
<div id="widget" style="width:320px;height:240px"></div> | |
<p>onSeek(val) will never be reached ! A flash widget video will be loaded</p> | |
<div id="log"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
HTTP version works as expected on firefox.