html5-video

Mp4 downloading instead of playing in Safari

会有一股神秘感。 提交于 2019-12-02 14:39:23
问题 I am facing a wierd issue in iOS devices. I am using a flowplayer which has mp4 file working in desktops. When it comes to iphone and ipad, the video is not playing. The same file taken from (http://techslides.com/demos/sample-videos/small.mp4) is opening in browser but when uploaded to my server is not playing. I tried to troublehsoot with Mac Safari. The file at internet location is playing in browser but the same file uploaded to my server is getting downloaded. I doubt there is something

Possible to stream videos using Amazon S3/CloudFront with HTML5 player?

前提是你 提交于 2019-12-02 14:06:56
I want to use an HTML5 video player and stream videos. Is this possible with S3/CloudFront? I understand Amazon uses the RTMP streaming protocol and HTML5's video tag does not support RTMP. Is there any way to stream videos with HTML5 players? Much of what @Wayne Koorts posted provides the basis for a good answer. The disconnect it seems is that you can "stream" video via progressive download. This works with any html5 compatible video file, as he illustrated. In order to get the best performance in a progressive download of mp4 files, you need the moov atom meta data to appear at the

how to run a video clip using asp.net?

老子叫甜甜 提交于 2019-12-02 13:24:23
I want to embed video player in asp.net which can support multi video formats and can run same format clip in different browsers. i.e mp4/ogg clip can be played on firfox as well as on chrome Nothing to do with asp.net (this is pure html stuff), just write out a html video tag html5rocks diveintohtml5 May I suggest this simple code: <video width="320" height="240" controls> <source src="videoSource.mp4" type="video/mp4"> <source src="movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video> Source: W3Schools You can use swf files, if you want, in this way: <embed src=

HTML5 video - show div at certain video time

我们两清 提交于 2019-12-02 12:42:16
问题 I'm trying to show a div at a certain time in the video playback, but the code below is not working. Can someone please tell me what would be the correct way of doing this (not using popcorn...)? $(document).ready(function() { $("#element_1").hide(); var v1 = document.getElementsByTagName('video')[0]; v1.addEventListener("timeupdate", function() { videoTime = v1.currentTime; }); if(videoTime == 10){ $("#element_1").show() } }); Also tried this but no go... $(document).ready(function() { $("

Pause the stream returned by getUserMedia

此生再无相见时 提交于 2019-12-02 12:30:37
I have channelled the stream returned by getUserMedia to <video> element in html page, video now can be seen in that element. The problem is that if I pause the video from the controls of video element, and then resume after x seconds, then the timer being shown in video element will jump to pauseTime + x seconds. I guess this is because the stream is not getting paused as we pause the playback in video element. If so can we pause the stream too. That is the very thing of Streams, you can't pause them... But what you can do however, is to buffer this stream, and play what you've bufferred. To

Javascript - Track mouse position within video

拥有回忆 提交于 2019-12-02 12:08:09
问题 Is it possible to track mouse position within a video that is playing? I want to make this video with video.js and i want to save the location of the mouse within the video. For example based on ratio of the video - or something similar to detect when the mouse is over left part of the video, right top bottom -- basically a location x y. In the same time i might need a solution to convert this location x y if i run this video on a different size. Thanks a lot for your help. George 回答1: You

Draw HTML5 Video onto Canvas - Google Chrome Crash, Aw Snap

空扰寡人 提交于 2019-12-02 11:31:08
I drew a video HTML5 with mp4 file source, To improve css styling and everything, I redraw the frame image of the video onto canvas in 20ms interval just like many Javascript developer does, Example on w3schools: The Last Drawing Example If you display it on IE10 or firefox it will display everything fine, But when I display it on Chrome (mine is the latest version 31), after some times it will crash (aw snap!) Any idea why or is there any solution to this? Use requestAnimationFrame (rAF) instead. The 20ms makes no sense. Most video runs at 30 FPS in the US (NTSC system) and at 25 FPS in

Screenshot from video at different time

痞子三分冷 提交于 2019-12-02 10:32:17
I have 3 canvas on a line, and in each I want to put an image (screenshot form a video, at different time). The problem is that all 3 screenshots are at the same time (the last time specified). Bellow is my JavaScript code. function getVideoScreenShot(videoFile, currentIncidentTime, idx) { var images = []; for(var canvas=1; canvas<=3; canvas++) { var canvasId = "#canvas"+ idx + canvas; var milisec = parseInt(currentIncidentTime)%1000; var secFromMilisec = milisec/1000; var sec = (parseInt(currentIncidentTime)/1000)%60; sec = "" + sec + ""; sec = parseInt(sec.substring(0,2)); var min = (

On the fly Stream and transcode video with Django

試著忘記壹切 提交于 2019-12-02 10:29:10
I have a model that uses "models.FileField()", which I then display back to the user so they may click the link and have a file rendered in their browser. The user can upload various types of files. Problem is, I'd like to handle large avi's differently, and have the file stream to the user. The requirement I have is to simply stream/transcode video files from the media_root dir to an end user's browser, preferably in a mac friendly format. It would be for a couple users at most. I've search and stumbled upon a few projects: https://github.com/andrewebdev/django-video https://github.com

Three.js WebGLRenderered videos don't play on android phones

跟風遠走 提交于 2019-12-02 10:11:15
The video texture example below does not seem to work on android LG nexus phone although all other non video examples work including the youtube example on three.js. Does anyone else have this issue? I am trying to render video using THREE.WebGLRenderer so that I can ultimately use stereo effect with it to use it with VR (like google cardboard) kit. So far only CSS3DRenderer/Canvas rendered videos seem to work on the phone. But I can't use these renderers because stereo effect does not work with these renderers (i.e effect = new THREE.StereoEffect(renderer);) http://mrdoob.github.io/three.js