html5-video

Streaming mp4 in Chrome with rails, nginx and send_file

て烟熏妆下的殇ゞ 提交于 2019-11-29 13:57:21
问题 I can't for the life of me stream a mp4 to Chrome with a html5 <video> tag. If I drop the file in public then everything is gravy and works as expected. But if I try to serve it using send_file , pretty much everything imaginable goes wrong. I am using a rails app that is proxied by nginx, with a Video model that has a location attribute that is an absolute path on disk. At first I tried: def show send_file Video.find(params[:id]).location end And I was sure I would be basking in the glory

Video requiring asp.net authentication not working on iOS 10

坚强是说给别人听的谎言 提交于 2019-11-29 13:28:03
问题 On Safari in iOS 10 my video doesn't work, only showing the play-icon. I serve the video via an asp.net server, which checks to make sure the user has logged on and have access to the video. Only, on iOS 10 the server will respond with 401 Unauthorized! Doing some testing with the code below, I found that safari on iOS 9 sends the ".ASPXAUTH" cookie - but safari on iOS 10 doesn't! <video crossorigin="use-credentials" controls autoplay="autoplay"> <source src="/Server/GetVideo.ashx?id=123"/> <

HTML5 video not working in any browser

爱⌒轻易说出口 提交于 2019-11-29 12:41:47
I found other posts here for the same issue, like this or this but I wasn't able to solve my issue. At first, I run below javascript: <script type="text/javascript"> var options = JSON.stringify({'maxSize': 320, 'videoQuality': 6, 'noaudio': true}); ogg.encode(options); </script> Then I have below html: <video id="video1" width="500" controls="controls" > <source src="Rio2Trailer.mp4" type="video/mp4"/> <source src="Rio2Trailer.ogv" type="video/ogg"/> <source src="Rio2Trailer.webm" type="video/webm" /> The browser does not support HTML5 video. </video> I tried adding AddType video/webm .webm

Detect if ios11 device is in low power mode to prevent bad UX on normally correctly autoplaying video

风流意气都作罢 提交于 2019-11-29 11:41:30
I am running into a huge issue with autoplaying videos on iOS11 devices (at least tested on iphone 7 ios 11.2.5 safari ). When the change in policy about autoplaying videos arrived, our autoplaying videos stopped working. Our app heavily depend on videos. We deeply changed all the steps for users to interact with videos to make sure they're not blocked and they're now muted by default and autoplay is triggered after user gesture. so videos DO autoplay muted and we thought we were doing after already days of work. But there's an issue: Last week, I was testing on my girklfriend 11.2 iphone the

Get frame change in video HTML5

允我心安 提交于 2019-11-29 11:37:25
I need detect all frames changes of a video in HTML 5, i tried the follow code, but i can't get all changes, only i can get eight or nine updates per second.. <body> <canvas id="Canvas" width="800" height="450" style="position:absolute; left:5; top:5">Can't Load Canvas</canvas> <video id="videoPlay" muted controls> <source src="assets/soccer.webm" type="video/webm"> <source src="assets/soccer.mp4" type="video/mp4"> Your browser does not support the video tag. </video> </body> <script type="text/javascript"> videoPlay.addEventListener('timeupdate', function (){ putOverlay(); }); function

Gapless Transition from Video to Video using html5

我与影子孤独终老i 提交于 2019-11-29 11:31:04
问题 I am trying to create a feature where a user can change (back and forth) between multiple videos while maintaining a single consistent audio. Think of being able to watch a concert from multiple angles but listening to a single audio. The trouble I am having with this feature is that there can not be a lag between the changes in video or the audio will no longer sync with the videos (especially true after multiple changes). I have tried two methods, both using html5 only (I would prefer not

Triggering Events from html5 video player with JQuery

旧时模样 提交于 2019-11-29 11:20:44
I want to show() a div when my html5 video player reaches a certain time. I was able to get a div to show at the end of the video, but I'm not sure how to show the div when the video is at a specific time, like 0:06. <div id = "showdiv" style="display:none" align="center"> this is the message that will pop up. </div> <video id='myVideo' align="center" margin-top="100px" class='video-js vjs-default-skin' preload='auto' data-setup='{}' width='800' height='446'> <source src='myVideo.mp4' type='video/mp4'l></source> <script> document.getElementById('myVideo').addEventListener('ended',myHandler

How can i Play wmv video in HTML player?

隐身守侯 提交于 2019-11-29 10:59:25
I want to Play wmv video in browser, and place header and footer in the page. I am unable to play mp4 video, but i want to play wmv . I google it but unable to find anything. Kindly guide me ho to play wmv video from HTML page. Arnaud Leyder You cannot play WMV files in HTML5 video. This has been answered here . If you want to play video cross browser with HTML5 video you have to transcode your WMV file (currently to MP4 and WebM). Have a look here for a take on HTML5 video . To embed WMV videos in a web page you have to use an object/embed tag that calls the windows media player plugin (if it

Cordova iOS Video tag Local File Source

情到浓时终转凉″ 提交于 2019-11-29 10:45:52
I have problem playing local video on iOS on my Cordova based app. At the beginning I want to stress out that this problem is happening only when I'm using WKWebView , and if UiWebView is used, video plays fine. This is scenario I have: -User comes to screen to which video url is passed -Via FileTransfer I download it to phone and store it at desired location -Using JS video is loaded to <video> tag and played. Basically I'm doing everything as described in answer to this SO question . The problem with UiWebView was that if relative path was set to src, video for some reason couldn't be loaded

Video displayed in ReactJS component not updating

拟墨画扇 提交于 2019-11-29 09:47:10
I'm new to ReactJS (0.13.1), and I've created a component in my app to display HTML5 video. It seems to work perfectly but only for the first selection. The video that is actually displayed and playing in the page doesn't change when you switch from one video to another (when this.props.video changes). I can see the <source src='blah.mp4' /> elements update in the Chrome inspector but the actually rendered video in the page doesn't change and keeps playing if it was already. Same thing happens in Safari & Firefox. All the other elements update appropriately as well. Any ideas? Anyway my