html5-video

HTML5 video draw into canvas2D issue on Android Chrome

泪湿孤枕 提交于 2019-12-12 03:34:52
问题 I am developing VR html5 page in javascript (no jQuery or other frameworks) that uses WebGL to render a sphere and has texture to which streamed video is rendered into. All that works fine on iPhone 6, 6+, however on Android I've hit the wall - simply, video is not being transferred into texture (gl.texSubImage2D). Texture remains black. No WebGL errors thrown. So I have created a test, without WebGL, that just tries to play a video and draw it's frames into canvas2D, so I can at least verify

Changing the HLS Video Source of a html5 video element for i-Devices

↘锁芯ラ 提交于 2019-12-12 03:19:47
问题 I'm trying to dynamically change the video source using javascript. I have a webpage with a <video> element in it that shall play a HLS stream. This works, but I'm unable to change the video dynamically from script. I'm really stuck on this. I could maybe workaround it by using an iframe, but that introduces other problems. Has someone a hint on how to change the HLS-Stream using a video tag on an i-device without having to close the entire page and open another one? I know that the mobile i

how to play video using html5 videoplayer in android phonegap?

こ雲淡風輕ζ 提交于 2019-12-12 03:19:36
问题 I have created application in android phonegap.I want to play video using html5 video player. My code is: <!DOCTYPE html> <html> <head> <title>Video.js | HTML5 Video Player</title> <link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet" type="text/css"> <script src="http://vjs.zencdn.net/c/video.js"></script> </head> <body> <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264" poster="http://video-js.zencoder.com/oceans-clip

HTML5 Video play once scrolled into view.

十年热恋 提交于 2019-12-12 02:49:59
问题 I've got some fullscreen video backgrounds that I want to play once they're scrolled into view. The code I'm using for the video running is as follows. <video id="video_background" preload="false" autoplay="false" loop="loop" volume="0"> <source src="video.webm" type="video/webm"> <source src="video.mp4" type="video/mp4"> Video not supported </video> The full-screen side works great, the video plays and I'm very happy with how it all looks but I've got a couple of issues. Even at the point I

disable mouse interaction on videojs scrubber

做~自己de王妃 提交于 2019-12-12 02:43:51
问题 Does anyone know how to disable mouse interaction on the progress bar (the 'scrubber') of the videojs default skin ? I want to show it - it's usefull - but since my video's are inside a 'transform:scale', the mouse interaction, dragging and clicking, is incorrect. See a jsbin here http://jsbin.com/qovayule/1/edit I gave up on trying to fix the mouse interaction - its a browser thing, not a videojs thing. See the issue I committed to videojs here: https://github.com/videojs/video.js/issues

HTML5 video - not setting the current time

亡梦爱人 提交于 2019-12-12 02:26:17
问题 This is driving me nuts! video.addEventListener 'ended', (e) => e.target.currentTime = 0 console.log e.target.currentTime # 5.33 seconds NOT 0 The video plays, and the ended event is called, but the currentTime is not changed. 回答1: This may be able to help you: video = document.getElementById('video'); begin_play = 50; play_video_frist = true; //if you want to run only frist time video.addEventListener("play", capture, false); function capture(event) { if (event.type == "play") { if (play

HTML5 video within time frame

别来无恙 提交于 2019-12-12 01:29:22
问题 So I am working on an interactive HTML5 video player, and currently have everything working while using popcorn.js, but I am now trying to go back and make my player work without being dependent on popcorn.js. When working with popcorn.js, you can use code like: popcorn.code(( start: 0, end: 5, onStart: function( options ) { //put code here } }} and your code will be executed when the time of your video spans from 0 through 5. Now, I am trying to have certain blocks of code executed within a

HTML5 video duration infinity while readyState = 4

非 Y 不嫁゛ 提交于 2019-12-12 01:04:43
问题 I am creating a custom html5 video player that can play live stream, record live stream and play regular video files. for recording i am using RecordRTC. everything runs well but i need to create a custom seeking bar. to do that i just simply use var seekerPosition = (video.currentTime * 1000) / (video.duration * 1000); var seekerValue = seekerPosition * 100 + "%"; and add this value to the bar's css width. but my seeker bar starts after some time the video starts to play. from this question

Chromium - “Failed because the user didn't interact with the document first” in chrome?

两盒软妹~` 提交于 2019-12-12 01:00:00
问题 Ok, autoplay on visit used to work on our site. However now, we are getting: play() failed because the user didn't interact with the document first How come autoplay works on Youtube though? For instance on open video in new tab. Using HLS.js it no longer work. What is Youtube doing that we could do here ? 回答1: The latest version of chrome creates a per domain “score” if a user has interacted with media 20 times on a domain, it is allowed to auto play. If the interaction score is lower, it

Video mute/unmute button javaScript

余生长醉 提交于 2019-12-12 00:22:11
问题 JavaScript beginner here! I am trying to make a video player in javaScript for a school project but I am having trouble with my mute button. I want the button to mute the video when clicked and unmute if the button is pressed again. So far I have only been able to mute the video and keep it muted. Here is my current mute button. var button = document.getElementById('mute'); button.onclick = function (){ video.muted = true; }; I tried an if else statement but it was unsuccessful var button =