html5-video

Hide native play button for video in google chrome

孤街浪徒 提交于 2019-11-30 15:38:58
I'm trying to hide the default play button in the center of my video. I have a custom play button but the native play button is displaying underneath it on tablet and mobile. I can't access the CSS for it with either ::--webkit-media-controls-play-button or ::-webkit-media-controls-start-playback-button . I'm having the same issue as https://stackoverflow.com/questions/39602852/disable-download-button-for-google-chrome# = but I'm stuck on finding a similar solution. Hiding the controls completely with the CSS below will work but I only want to hide the play button in this case. video::-webkit

Accessing Multiple camera javascript getusermedia

旧时模样 提交于 2019-11-30 15:32:25
guys i have two cameras that is -the web camera -the laptop camera i want to stream those camera in a website i already have some reference here is some code that is working on jsfiddle here <video id="video" width="640" height="480" autoplay></video> <button id="snap" class="sexyButton">Snap Photo</button> <canvas id="canvas" width="640" height="480"></canvas> <script> // Put event listeners into place window.addEventListener("DOMContentLoaded", function() { // Grab elements, create settings, etc. var canvas = document.getElementById("canvas"), context = canvas.getContext("2d"), video =

Autorotating video played from HTML5 <video> in UIWebView

喜欢而已 提交于 2019-11-30 14:51:48
My app, for some reasons, only supports portrait orientation. However, in some cases I need to display videos from a UIWebView (with video tag) and it would be nice if the user can view it either in portrait or landscape. The controller is configured like this: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { return UIInterfaceOrientationIsPortrait(toInterfaceOrientation); } Result : the video is played only in portrait mode (ok, quite expected). I tried: - setting this to support all orientations when the user starts a video - when the video

Embedded YouTube videos in HTML5 standalone app iOS 8.3 opening YouTube app

放肆的年华 提交于 2019-11-30 13:48:05
Apple recently fixed the error on iOS 8 where YouTube videos would not play on a WebApp ( Why HTML5 video doesn't play in IOS 8 WebApp(webview)? ). This error was fixed in iOS 8.3 but I've come across another problem. When a YouTube video is embedded on the page, the video will be opened in the YouTube app if it is installed on the iPad <!DOCTYPE html> <head> <meta charset="utf-8"> <meta name="apple-mobile-web-app-capable" content="yes" /> <title>HTML5 Video Standalone Test</title> <style> body { margin:0; } </style> </head> <body> <iframe width="700" height="394" src="//www.youtube.com/embed

Crop video in HTML?

时光毁灭记忆、已成空白 提交于 2019-11-30 13:43:24
问题 I want to crop a video in HTML 5. <video id="glass" width="640" height="360" autoplay> <source src="invisible-glass-fill.mp4" type="video/mp4"> </video> The resolution of the video is 640x360, but when I set the width attribute to 200, the video will rescale (retain the aspect ratio). How to crop the video (cut off, say, 220 pixels from both the left and right side) through HTML or Javascript? Is it even possible without cropping the video through video editing software? 回答1: I would

Streaming mp4 in Chrome with rails, nginx and send_file

∥☆過路亽.° 提交于 2019-11-30 13:33:25
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 that is modern web development. Ha. This plays in both Chrome and Firefox, but neither seek and neither

Control start position and duration of play in HTML5 video

泪湿孤枕 提交于 2019-11-30 13:16:59
We have a video (13 minutes long) which we would like to control using HTML5. We want to be able to let our users control and select the parts of the video they want to play. Preferably this control would be through 2 input fields. They would input start time (in seconds) in first box and input duration to play (in seconds) in second box. For example, they might want to start the video 10 seconds in and play for 15 seconds. Any suggestions or guidance on the Javascript needed to do this? Note: I have found the following: Start HTML5 video at a particular position when loading? But it addresses

How to Play FLV Video in HTML Video tags?

て烟熏妆下的殇ゞ 提交于 2019-11-30 13:12:02
问题 I have had a look at a couple of players like Flow Player, JW Player and a couple more but I can't get it to work exactly in PHP code. Is there any way to play FLV within HTML Video Tags? I know MP4 and OGG files will but the thing that I am working on will produce an FLV file. 回答1: You should look at video.js from www.videojs.com I have been using it streaming live video feeds. It mimicks the video tag like this: <video id="example_video_1" class="video-js vjs-default-skin" controls preload=

DIY: Video Streaming Server

只谈情不闲聊 提交于 2019-11-30 11:38:38
问题 I'm looking for any modern resources for setting up a video streaming server. Preferably open source solutions. My searching on this has lead to a lot of dead ends. I also do need to build my own instead of paying for a service. 回答1: To setup your own video streaming server you should get started with the following components: A linux distribution you are familiar with A free and open source server solution such as NaviServer FFMpeg (see the streaming guide) Reeoncode certain files / streams

What's the play event on a video html5 element?

99封情书 提交于 2019-11-30 11:34:28
问题 I have a video html5 tag embedded on page. I need to trigger an action when the user clicks the "Play Button". But I can't find how to bind that to my action. Is there an event for what I need? I'm using jQuery... Thanks! 回答1: Does this W3C demo page help? http://www.w3.org/2010/05/video/mediaevents.html It appears the play event is simply 'play'. For example: $('video').bind('play', function (e) { // do something }); or $('video').on('play', function (e) { // do something }); 回答2: I used