mediaelement.js

Stopping instead of rewinding at the end of a video in MediaElement.js

余生颓废 提交于 2020-01-03 14:13:23
问题 I'm wondering how to stop the MediaElement.js player at the end of the video. I wondered how to stop the mediaelement.js player at the end of a video. I was hoping to hold on the last frame and not rewind to show the first frame as it does now. Is it possible to change this behaviour? 回答1: I wrote a fix for this problem and John merged in version 2.10.2. There is now an option "autoRewind" that you can set to false to prevent the player from going back to the beginning. The eventlistener is

video is not playing in IE8 by mediaelement.js

安稳与你 提交于 2020-01-03 05:33:12
问题 I am not able to play video in IE8 by using mediaelementjs. I am using HTML5 video tag and I want the video to be played in IE8 and below browsers. I know that IE8 doesn't support HTML5 video tag.Hence I am implementing mediaelement.js to make the video play in IE8. Can anyone tell me how to make the video play in IE8 using mediaelement.js(HTML5 video tag)? 回答1: I guess something's wrong with your <script> tag. IE takes HTML errors more seriously, if you forgot to close it / forgot type="text

mediaelement.js - RTMP support for audio streaming?

风流意气都作罢 提交于 2020-01-01 18:16:10
问题 Is there currently any support for streaming audio via RTMP using either native HTML5 or Flash fallback with MediaElement? I saw what looked like support for Video using the flashStreamer option in the video tag 'data-mejsoptions' attribute. 回答1: I know your question is a year old but I'm going to try and answer it in the hope I can save someone the time and trouble of figuring it out. As far as I'm aware RTMP is not supported in any of the native HTML5 audio/video elements. Luckily

Seeking videos beyond the buffer line in Flash-mode

守給你的承諾、 提交于 2020-01-01 17:09:08
问题 The webserver-modules ngx_http_mp4_module or mod_h264_streaming allow Flash-clients to seek a video beyond the downloaded buffer line, using a "start"-parameter, e.g.: http://server.com/path/to/video.mp4?start=10 Is there a chance to enable this feature in mediaelement.js? 回答1: At the moment, pseudostreaming in Mediaelement flash player is not implemented. Look at this thread: http streamed MP4 vidéo is not randomly seekable in flash. But someone is working on it; hopefully, we'll get the

How are controls sized in mediaelement.js

為{幸葍}努か 提交于 2020-01-01 11:36:38
问题 I'm using mediaelement.js for an audio player that has a limited amount of space available. I need to include custom styling for the controls and have most of the CSS worked out. Where I'm running into trouble is that the mediaelement.js script is applying CSS widths to some of the control elements. I'm willing to modify my CSS to compensate for this, but I'm not sure the process that mediaelement.js goes through to arrive at its calculated widths. So what are the steps mediaelement.js goes

How are controls sized in mediaelement.js

孤街浪徒 提交于 2020-01-01 11:35:07
问题 I'm using mediaelement.js for an audio player that has a limited amount of space available. I need to include custom styling for the controls and have most of the CSS worked out. Where I'm running into trouble is that the mediaelement.js script is applying CSS widths to some of the control elements. I'm willing to modify my CSS to compensate for this, but I'm not sure the process that mediaelement.js goes through to arrive at its calculated widths. So what are the steps mediaelement.js goes

How to make a video fullscreen when it is placed inside an iframe?

懵懂的女人 提交于 2019-12-30 05:43:25
问题 I'm using the default settings for my mediaelement.js player, and my initialization is very basic: $('video').mediaelementplayer(); My question is: Is it possible to fullscreen the player when the video is embedded in an iframe? When I press fullscreen, the video maximizes to the iframe but not to the entire screen however. Is this a limitation of html or is there a way to get around it? The general structure looks like this: <!DOCTYPE html> <html> <head /> <body> <iframe> <!DOCTYPE html>

HTML5 video won't play in Chrome only

风格不统一 提交于 2019-12-29 04:12:24
问题 some background I've tested my video in FF and Safari (including iDevices) and it plays properly, but it will not play in the Chrome browser. As you can see in the code below, I've created mp4, m4v, webM, and ogv files, and I've tested all of them on my computer for any playback issues. the symptoms/issue In Chrome, the video seems to load, and there are no errors in the console log . When the play button is pressed, it loads a portion of the file, but then does not play it. Yet,

HTML5 video element request stay pending forever (on chrome)

笑着哭i 提交于 2019-12-27 16:59:10
问题 I have a weird issue in Chrome. Each time I load a <video> element, chrome will start two HTTP request. The first one will stay pending forever (I guess this is the "meta-data", "partial content" request. But the point is that it stay pending) The second one to the same file is ok and goes on and close after the loading is over. The problem here is that the first request stay pending until I close the browser page. So at some point, if I load multiple video, Chrome will break and stop

Play from an arbitrary position using MediaElement.js for HTML5 video

て烟熏妆下的殇ゞ 提交于 2019-12-25 17:16:47
问题 I need to be able to play an HTML5 video (mp4 format) from any arbitrary location. <script src="{{ STATIC_URL }}mediaelementjs/jquery.js"></script> <script src="{{ STATIC_URL }}mediaelementjs/mediaelement-and-player.min.js"></script> <link rel="stylesheet" href="{{ STATIC_URL }}mediaelementjs/mediaelementplayer.min.css" /> <script> $(document).ready(function(){$('video, audio').mediaelementplayer({ // if the <video width> is not specified, this is the default defaultVideoWidth: 480, // if the