html5-video

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

隐身守侯 提交于 2019-12-04 05:51:06
问题 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

jPlayer fullscreen while inside IFRAME?

蹲街弑〆低调 提交于 2019-12-04 05:02:19
Can jPlayer's fullscreen be made to work while inside an IFRAME tag? As is, the "full screen" is restricted by the size of the iframe. EDIT: Here's how I insert jPlayer in an IFRAME : <div id="movieContainer" > <object id="videoTut" name="videoTut" type="text/html" data="/videotutorial/videotut.html"> </object> </div> Where videotut.html contains a full HTML page that contains jPlayer and works if loaded independently. And the object tag is modified using code like document.getElementById('movieContainer').innerHTML = '... . Also see: https://groups.google.com/forum/#!topic/jplayer/IQxIIYhtAnE

Determine DRM system supported by browser

放肆的年华 提交于 2019-12-04 04:59:40
I've trying to find out how to determine which DRM system browser is using. And in fact, only chrome say it is use 'com.widevine.alpha' where IE & Safari (Win) throw error on 'requestMediaKeySystemAccess', and firefox do not even try to say it use 'com.adobe.acccess' =] function isKeySystemSupported(keySystem) { var dfd = Q.defer(); console.log('check: ', keySystem); navigator.requestMediaKeySystemAccess(keySystem, [{contentType: 'video/webm; codecs="vp9"'}]).then(function() { dfd.resolve(true); }, function() { dfd.resolve(false); } ); return dfd.promise; } is there any solution, like

Efficiently detect if a device will play silent videos that have the autoplay attribute

蹲街弑〆低调 提交于 2019-12-04 04:55:29
问题 With Chrome 53 and iOS 10 both out now, there are now Android and iOS devices that are capable of automatically playing videos that are silent and have the autoplay attribute. I'd like to know how to detect this with JavaScript. For Chrome 53, the <video> must have the autoplay and muted attributes (yes, the muted attribute is required even if the video file doesn't have any audio tracks). For iOS 10, the <video> must have the autoplay attribute and, for non-iPad iOS 10 devices, the

Space after html5's video tag

一世执手 提交于 2019-12-04 04:38:52
I have a html5's video tag, it seems that there is a 5px space between video and its container div element. If I put font-size: 0 in the container element ( #video-container ), the space disappears. I know this is a problem of display: inline-block , but I have no elements with that. Also, trying the solutions of opening tags next the previous closing, didn't delete the space. http://jsfiddle.net/g9t71mg6/ html, body { margin: 0; padding: 0; width: 100%; height: 100%; } #wrapper { width: 100%; height: 100%; } #video-container { overflow: hidden; width: 100%; background: #2c5894; } #video

How do I add new Video entirely from JavaScript?

孤者浪人 提交于 2019-12-04 04:32:00
I am trying to add a new VideoJS object and set it up entirely from JS, without having a DOM video element. The result is that the video is loaded but there aren't any VideoJS controls. Here is the code: obj = document.createElement('video'); $(obj).attr('id', 'example_video_1'); $(obj).attr('class', 'video-js vjs-default-skin'); var source = document.createElement('source'); $(source).attr('src', path); $(source).attr('type', 'video/mp4'); $(obj).append(source); $("#content").append(obj); _V_("example_video_1", {}, function () { // } }); I will appreciate any help, thanks! Sphvn Okay took a

WebRTC/WebSocket screen recording

无人久伴 提交于 2019-12-04 03:59:42
问题 In my use case I would like to record the screen activity and send it to server [not live]. I looked at few blogs/sample demos for this. But I couldn't find anything related to this. I could find lot of live streaming audio/video but not screen recording. I have the following questions related to this, Which one would be efficient WebRTC/Websockets for this use case? Browser support for WebRTC/Websockets? Is there any other methods to achieve this use case? I am fairly new to WebRTC

Jump to timestamp in HTML5 embedded Video with video-js

安稳与你 提交于 2019-12-04 03:54:50
Greetings overflow, I'm trying to create buttons on a webpage that jump to tagged timestamps for an embedded video with video-js. Far as I can gather, I need to change the currentTime value in order to have the video move to the correct timestamp, however I can't get this to work even when setting currentTime in the initial javascript call. For example, if I wanted to start 200 seconds into the video: javascript: VideoJS.setupAllWhenReady(); VideoJS.DOMReady(function(){ var myPlayer = VideoJS.setup("current_video"); myPlayer.play(); myPlayer.currentTime(200); }); HTML Snip: <video id="current

How can I show only a section of a video frame with CSS or JavaScript?

落爺英雄遲暮 提交于 2019-12-04 03:31:56
问题 I want to show only part of the video frame for a given video. Let me explain what I mean with examples: I have a wide screen video (852 x 480) but I want to display it as a full screen video (640 x 480) by using CSS or JavaScript to imitate cropping it. The video file doesn't change; the script just hides the pixels at the sides. I have a non-standard sized video that is a custom mix of two 640 x 480 video side-by-side, so it is 1280 x 480 in total size. Without having to edit the video, I

HTML5 video element non-seekable when using Django development server

萝らか妹 提交于 2019-12-04 03:08:53
I've got a Django app serving a webpage with an HTML5 element. There's a wierd "feature", turning the video element to be non-seekable: video.seekable returns a timeRanges object with length=0 , whereas it should be length=1 . This means I can't edit the video. JavaScript can't do anything either. The thing is, when I upload the problematic webpage, statically - no Django, just plain HTML/JS/CSS - to my website for testing, it works fine - length=1 . However, if I try to serve the same static page on my Django dev server still gives the same problem. I am using Django's static serving for dev