html5-video

Screenshot of video element using phantomjs

梦想与她 提交于 2019-12-02 10:01:25
I am trying to take a screenshot of page with a video element using phantomjs. Currently, i set the time of the video ahead to some desired seconds (i.e. 60). Then I use page.render(output). However, the screenshot created is always black. Can anyone see the problem or verify if what Im trying to do is possible? Running the features.js example (using modernizr.js), you will see >phantomjs.exe examples\features.js Detected features (using Modernizr 2.0.6): Supported: touch generatedcontent fontface flexbox canvas canvastext postmessage websqldatabase hashchange history draganddrop websockets

Converting html5 video - what software to use

孤者浪人 提交于 2019-12-02 09:43:29
we're planning to use a fullscreen html5 video on a website. I've read that MPEG-4/H.264 might be the best format at the moment. I have the video file available as 1080p mp4 … it's 41.2mb in size. Since the video should play in "relative" good quality and stream really fast, how can i optimize the video file. Any tips, tricks for me? is 1080p needed for a fullscreen video on desktop or is 720p enough? What should the output size of a fullscreen video for desktop be? Regards, matt a lot will depend on the intended audience and their connectivity. If they've got good connections and a big

Android WebView gray play button

心已入冬 提交于 2019-12-02 09:43:12
I am using the HTML5 video element for playing video in the Android WebView. And this works great for me but the only problem with using this is that the video element automatically a gray play button adds. I've tried searching for an API and could not find anything that helps my case. I also tried using CSS with the following style: video.mobile_controls::-webkit-media-controls-fullscreen-button { display: inline !important; // Also used "display:none" } Further i tried poking in the shadow dom but i couldn't find anything related to this. So the question is how do i remove this gray button.

How to stop playing a <video> element and return it back to its original state?

喜欢而已 提交于 2019-12-02 09:42:37
I was wondering how I could go about resetting a video that was playing or paused to its original state where it isn't playing? I know you can pause the video, but what I really want is for the video to return to it's initial state. This means it would show the poster image if specified and would start from the beginning if the user hit play again. I looked at all the documentation and I can only find ways to pause. The easiest way I have been able to find is to reset the source of the video on the ended event so that it returns to the beginning. The other way to handle it would be to have a

Autoplay video in PhoneGap

﹥>﹥吖頭↗ 提交于 2019-12-02 07:15:58
I have created a minimal PhoneGap app that has just this in the index.html: <!-- ... --> <body> <video src="test.m4v" autoplay onerror="alert('Error')"></video> </body> In the PhoneGap.plist I have set MediaPlaybackRequiresUserAction to NO. Yet I still cannot get the video to autoplay when the page loads. I have tried different ways of scripting it but to no avail. Does anybody have a clue what I'm doing wrong? Solved it. Turned out to be a bug in PhoneGap 1.3 which was fixed in version 1.4 released yesterday(!). From the release notes : Fixed CB-42 – MediaPlaybackRequiresUserAction can now be

How to relay h.264 stream?

荒凉一梦 提交于 2019-12-02 07:09:32
问题 I have 2 servers, server2 can receive h.264 stream from server1. I need my iPad can play the h.264 stream, and my ipad and server2 are in the same local area network, but can not connect to server1, so I need server2 relay the h.264 stream to my ipad, who has one good solution ? thanks! 回答1: Your question is rather vague. If you are playing via HLS then you could install an HTTP proxy on server2. Apache even has a proxy module which lets you make a URL on server1 appear as if it was hosted by

Safari - Videos load far too slowly

一世执手 提交于 2019-12-02 07:00:21
问题 I am having a bit of trouble implementing a video into my site. I use this block of code: <video id="video-background" poster="/video/video-poster.jpg" autoplay loop muted playsinline> <source src="/video/video.webm" type="video/webm"> <source src="/video/video.mp4" type="video/mp4"> <source src="/video/video.ogg" type="video/ogv"> </video> When opened in any browser other than Safari the video loads instantly. I haven't seen it take longer than 5 seconds before it is playing. When opened in

How to relay h.264 stream?

房东的猫 提交于 2019-12-02 06:57:06
I have 2 servers, server2 can receive h.264 stream from server1. I need my iPad can play the h.264 stream, and my ipad and server2 are in the same local area network, but can not connect to server1, so I need server2 relay the h.264 stream to my ipad, who has one good solution ? thanks! Your question is rather vague. If you are playing via HLS then you could install an HTTP proxy on server2. Apache even has a proxy module which lets you make a URL on server1 appear as if it was hosted by server2 without having to configure your iPad to use server2 as its proxy. http://httpd.apache.org/docs/2.2

HTML5 - Drag N Drop with divs and inner-images

落花浮王杯 提交于 2019-12-02 06:11:08
问题 I have this type of element: <div draggable="true" id="item" style="margin:20px;background:red;height:400px;width:400px;"> <a href="#" target="_blank"> <img style="margin:40px;" src="http://www.placekitten.com/100/100" alt=""> </a> </div> I want to be able to: Drag the whole div, even if I click on the /anchorimage (before dragging). Still respond normally to an anchor/image click (without a drag). Right now, only the image is dragged when I click on it. Here's a fiddle: http://jsfiddle.net

HTML5 video not loading in chrome, but works when the developer console is opened up

半城伤御伤魂 提交于 2019-12-02 04:53:49
问题 I am working on a web app for a client, and there is a problem with the HTML5 video tag. The problem is that the video won't load in chrome, but works on Safari, Firefox and IE. So I start debugging in chrome, but I found out that if I refresh the page with console opened, the video would load. But when I close the console and refresh, the video would not load... Here are the few things I have tried: Have multiple type of videos, in mp4 and webm. in componentDidMount, replace the video with