How to play video from google drive using javascript?
It does not work, how can I do that?
http://fiddle.jshell.net/gt4otyfk/1/
<script type="text/javascript">
$(function(){
var video = $("#video").get(0);
video.controls = true;
$("#play").click(function() {
video.play();
});
});
</script>
Google provides some GET-params like
export
andid
with google-drive:to give you the ability to insert an uploaded video into a HTML5-video-tag.
This should work:
Just press "Run code snippet"-button to run this example. Hope this helps.
Just use the preview link you see on your URL when you open/play your video from your Google Drive: Be sure to include
sandbox="allow-same-origin allow-scripts allow-popups allow-forms"
Got it working: