html5-video

How to build a simple video streaming server?

寵の児 提交于 2021-02-20 04:46:25
问题 I am a newbie in video streaming and I just build a sample website which plays videos. Here i just give the video file location to the video tag in html5. I just noticed that in youtube the video tag contains the blob url and had a look into this. I found that the video data comes in segments and came across a term called pseudo streaming. Whereas it seems likes the website that i build downloads the whole file and plays the video. I am not trying to do any live streaming, just trying to

How to determine the proper HTML5 video codec attribute for an AV1 file based on the FFMpeg encoding command or output?

家住魔仙堡 提交于 2021-02-20 00:46:59
问题 We have some files encoded in AV1, but we recently noticed that Chrome mobile fails to play the files - but it doesn't fall back to an encoding it can use - it just puts the unplayable AV1 file in there. I'm hoping that if we add a codec attribute we can remedy this - but I'm not sure how to determine the codec for these AV1 files. I've come across this documentation on MDN, but I'm not sure how I would determine the proper codec from that. It starts off simple enough, but some of the values

Video autoplay on Safari 11

半世苍凉 提交于 2021-02-18 19:31:27
问题 Hi have noticed video does not auto play on safari 11 anymore. Below is my code it works on Chrome as it has to be muted. It just shows the poster image. Any Help. <video width="100%" poster="poster_url.png" autoplay muted playsinline> <source src="video_url.mp4" type="video/mp4"> </video> 回答1: The below autoplays for me on Safari 11.1.2 on OSX 10.12.6 <video width="100%" poster="poster_url.png" autoplay muted playsinline> <source src="http://download.blender.org/peach/trailer/trailer_480p

Canvas that created from video raising “Tainted canvases may not be exported.” error when saving

醉酒当歌 提交于 2021-02-16 21:01:50
问题 I'm creating snapshot from HTML5 video, using this example. Video is hosted on 3rd party servers, that I can't control. So I wanted to save image, but toDataURL failing because of security reason. Here is error: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. I guess there is a solution for image. img.crossOrigin = "Anonymous" something like that. Here and here. I tried videoDomElm.crossOrigin = "Anonymous" , but no luck. Is there any solution for

Canvas that created from video raising “Tainted canvases may not be exported.” error when saving

不问归期 提交于 2021-02-16 21:00:58
问题 I'm creating snapshot from HTML5 video, using this example. Video is hosted on 3rd party servers, that I can't control. So I wanted to save image, but toDataURL failing because of security reason. Here is error: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. I guess there is a solution for image. img.crossOrigin = "Anonymous" something like that. Here and here. I tried videoDomElm.crossOrigin = "Anonymous" , but no luck. Is there any solution for

Canvas that created from video raising “Tainted canvases may not be exported.” error when saving

被刻印的时光 ゝ 提交于 2021-02-16 21:00:22
问题 I'm creating snapshot from HTML5 video, using this example. Video is hosted on 3rd party servers, that I can't control. So I wanted to save image, but toDataURL failing because of security reason. Here is error: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. I guess there is a solution for image. img.crossOrigin = "Anonymous" something like that. Here and here. I tried videoDomElm.crossOrigin = "Anonymous" , but no luck. Is there any solution for

Change the video playback speed using video.js

僤鯓⒐⒋嵵緔 提交于 2021-02-16 06:35:51
问题 Is there any existing plugin to change the playback rate of a video using the video.js player? If not, how can I add the new plugin and the new control button for the same? Thanks in advance. 回答1: I've the same issue. I just found that: videojs('my-player', { playbackRates: [0.5, 1, 1.5, 2] }); see videojs docs 回答2: From videojs v.4.6.0 on there is a JSON parameter for data-setup that you can pass to add the playback speed option to the videoplayer: <video id="my_video_1" class="video-js vjs

Change the video playback speed using video.js

我与影子孤独终老i 提交于 2021-02-16 06:34:09
问题 Is there any existing plugin to change the playback rate of a video using the video.js player? If not, how can I add the new plugin and the new control button for the same? Thanks in advance. 回答1: I've the same issue. I just found that: videojs('my-player', { playbackRates: [0.5, 1, 1.5, 2] }); see videojs docs 回答2: From videojs v.4.6.0 on there is a JSON parameter for data-setup that you can pass to add the playback speed option to the videoplayer: <video id="my_video_1" class="video-js vjs

How to play uploaded videos in an iframe on a Mac system

大兔子大兔子 提交于 2021-02-11 18:07:52
问题 I have tried using iframe and also video tag and object tag to play the video. In some cases, it plays only the audio from the video, but video doesn't show up. Secondly, the same video file plays well on a separate tab in the browser, but not within my iframe. This issue is on all browsers on my Mac, but on a windows machine it plays well. 回答1: I finally found it. Apple has a good documentation of its own for this. https://developer.apple.com/library/mac/documentation/quicktime/conceptual

How to play uploaded videos in an iframe on a Mac system

 ̄綄美尐妖づ 提交于 2021-02-11 18:07:26
问题 I have tried using iframe and also video tag and object tag to play the video. In some cases, it plays only the audio from the video, but video doesn't show up. Secondly, the same video file plays well on a separate tab in the browser, but not within my iframe. This issue is on all browsers on my Mac, but on a windows machine it plays well. 回答1: I finally found it. Apple has a good documentation of its own for this. https://developer.apple.com/library/mac/documentation/quicktime/conceptual