html5-video

Detect if browser / device can play HTML5 video inline before playing

眉间皱痕 提交于 2019-12-04 02:35:01
I know I can check through navigator.userAgent if the device is an iPhone, but there are other devices and some I'm not aware of which will play the video in it's own player. There can be made a list of all browsers/devices which don't play a video inline, but I wonder if there is another solution. Is it possible in JavaScript to detect if a browser, for example Safari on iPhone, plays a video in it's own player instead of inline? So it can be possible to show an alternative, like an image, instead of the video. avaunt I know this is an old question, but it's a big issue for me and there isn't

Is there no video loading in github pages html?

一曲冷凌霜 提交于 2019-12-04 02:10:58
问题 My video won't load and is hosted on github. Does github not allow videos? I have tried many src="Links" <video width="320" height="240" controls> <source src="../../Websiteland/Twitter/FLT.mp4" type="video/mpeg"> Your browser does not support this awesome video title. </video> Website for video 回答1: As seen here: The 'No video with supported format and MIME type found' error message is about the HTML5 media player. So you do not appear to have support in Windows for playing the media file(s)

Subtitles not showing using WebVTT

我怕爱的太早我们不能终老 提交于 2019-12-04 02:01:44
So I'm trying to add subtitles to a html5 video and found WebVTT. I've done some research on it and have even copied some example code to see if that'll work and yet I have no luck. The subtitles just simply don't show up on the video. Here's the HTML. <video id="video" class="video" controls> <source src="solar.mp4" type="video/mp4"> <source src="client2.ogv" type="video/ogv"> <source src="solar.webm" type="video/webm"> <source src="solar.flv" type="video/flv"> <track label="English Captions" kind="captions" srclang="en" src="english-subtitles.vtt"> </video> and the test VTT file. WEBVTT 1 00

Extract poster image from video

二次信任 提交于 2019-12-04 01:59:31
问题 I want to extract my poster image from the video file itself and wish to use that one on the web page. My technology stack consists of spring mvc, hibernate, jpa, jQuery, jsp, html5, css3. Can anyone guide me how to do that? 回答1: Depends where your wanting to do the processing, heres a couple of options Pre-processing Option If your preprocessing your video, you can use Grunt to generate different video formats/sizes/images with https://github.com/sjwilliams/grunt-responsive-videos Client

ffmpeg transcode to live stream

佐手、 提交于 2019-12-04 01:55:51
问题 I need to display a ip camera stream in an html video tag, i have figured out how to transcode to a file from the rtsp stream like this ffmpeg -i "rtsp://user:password@ip" -s 640x480 /tmp/output.mp4 now i need to be able to be able to live stream the rtsp input in a video tag like this <video id="video" src="http://domain:port/output.mp4" autoplay="autoplay" /> I was trying to do something like this in my server (an ubuntu micro instance on amazon) in order to reproduce the video in the video

get a >24 fps framerate in HTML5 video?

ε祈祈猫儿з 提交于 2019-12-04 01:22:20
问题 So while the DOM, canvas and webgl can hit framerates of up to 60fps, video seems to be stuck at 24fps for the moment. That framerate is more convention than anything I believe, both the codecs and video container formats don't have restrictions there (well, not all of them). I'd love to see a <video> tag showing a clip at like 48 or 60fps. Is this possible, and if so, how can it best be done? 回答1: If the video is encoded at a high frame rate and the browser's media player implementation can

Calculate .m4s segment file suffix in HTML5 video streaming when user seeks to another time

心已入冬 提交于 2019-12-04 00:46:26
I have created fixed length segments for a long MP4 video using Mp4Box. Mp4Box creates a meta info file mv_init.mp4 and segments like mv_1.m4s , mv_2.m4s , … I stream the video using HTML5 Media Source Extensions and the streaming is working properly. The problem is that I am unable to utilize time seeking feature of my HTML5 player . When a user uses the seekbar to seek to another time point, I need to fetch the correct segment file ( mv_{number}.m4s ) for that currentTime . For example: video duration: 2 hours segment size: 10 seconds user seeks to time: 25 minutes 25 minutes = 25 × 60

How to keep a live MediaSource video stream in-sync?

杀马特。学长 韩版系。学妹 提交于 2019-12-03 23:38:01
I have a server application which renders a 30 FPS video stream then encodes and muxes it in real-time into a WebM Byte Stream . On the client side, an HTML5 page opens a WebSocket to the server, which starts generating the stream when connection is accepted. After the header is delivered, each subsequent WebSocket frame consists of a single WebM SimpleBlock. A keyframe occurs every 15 frames and when this happens a new Cluster is started. The client also creates a MediaSource , and on receiving a frame from the WS, appends the content to its active buffer. The <video> starts playback

How to pause html5 video when out of view code (non-statically positioned)

让人想犯罪 __ 提交于 2019-12-03 22:57:28
问题 I am using a html5 video on my website. I want it to play only when in view and pause otherwise. I am also using javascript to have a play/pause button on it. I was able to use both the features on one site easily and the video was the first element on the site. However this time it is the second div I feel like there is a conflict because of the same element being targetted or something going wrong that I just can't seem to understand In this case the video autoplays when I open the site,

JQuery Mobile Open Video link inside page

江枫思渺然 提交于 2019-12-03 22:48:46
I am using JQuery Mobile version 1.1.1 I have a list of links when link to youTube videos. <ul> <li><a href="link to youtube video">See Video</a></li> </ul> My problem is that when it opens the video page I cannot get back to the page as there's no Back button and it's no longer inside a JQM page. How can I open it so that it either has a back button to return to the page of has a way of closing so I can return to the app without restarting it? I'd suggest using the IFRAME embed method from YouTube: It can be as easy as setting up an <iframe> like this: <iframe id="player" type="text/html"