mediaelement.js

mediaelement.js - RTMP support for audio streaming?

…衆ロ難τιáo~ 提交于 2019-12-04 17:23: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. 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 mediaelement.js seems to support this protocol in here Flash version It seems this protocol is used more commonly for

mediaelement.js video doesn't play in IE8

青春壹個敷衍的年華 提交于 2019-12-04 13:19:26
I've looked through all the other questions posed here, and nothing has really solved my problem. At present the video will load and play in Chrome, Safari, FF, and IE9, but NOT IE8 which is the last browser I need to support. You can view the page here . I have been trying to use the Debug option, but not getting any help from that either. Here is what the debugger is telling me: Initializing... stage: 0x560 file: path/to/video.mp4 autoplay:true preload:true isvideo:true smoothing:false timerrate:250 displayState:true ExternalInterface.available:true ExternalInterface.objectID: me_flash_0

Pause mediaelement.js using jquery

☆樱花仙子☆ 提交于 2019-12-04 11:41:23
问题 I have initialised the element using: $('video').mediaelementplayer(); Now I would like to target that video and pause it when a link is pressed: $('.page_button').live('click', function() { $('video').pause(); }); Thanks. 回答1: Each element with a media player element has a player property defined. This is where all the methods reside. You can access it with either of the following methods: $('video')[0].player.pause(); // Be sure the video element exists. $('video').each(function(){this

How are controls sized in mediaelement.js

陌路散爱 提交于 2019-12-04 07:32:57
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 through to calculate the size of its controls? Found the thing I needed to solve my problem: It's not

Autoplay MediaElementPlayer

浪子不回头ぞ 提交于 2019-12-03 19:15:21
问题 I want that when web site page loaded play video automatically. I referenced to jquery.js, mediaelementplayer.js and mediaelementplayar.min.css on my page and added video tag. I tried so many ways, e.g. autoplay = true and use javascript code but I couldn't get it to work. I'm using BlogEngine.Net 2.0. How can I do that? 回答1: This is a bug in MediaElementJS, autoplay works for native and silverlight, but needs a little help with Flash. You can listen for canPlay event and start playing as

How do I edit the Default Volume?

这一生的挚爱 提交于 2019-12-03 17:31:11
I'd like to set the default audio volume on the wordpress mediaelement.js player to be at 100% volume. It appears that the default is somewhere around 80%. Can anyone tell me which bit of code I need to change in order to do this? It'd be great if future versions of Wordpress come with a basic 'Settings' function for the now native player so we can alter thing like default volume and colours. Got interested too with that question. So you have to go to your folder like: /wordpress/wp-includes/js/mediaelement/ File name: mediaelement-and-player.min.js Ctrl+F and search for - startVolume It found

How can i get HTML5 audio playlist with mediaelement.js ?

时光总嘲笑我的痴心妄想 提交于 2019-12-03 15:58:09
I tried to search the example of audio playlist in mediaelement.js. But i found none, is mediaelement.js supports audio playlist? If so, please kindly support me the sample code or links. Thank you very much. Allan I managed to get a super basic (read: hacky) demo of a playlist working in a WordPress theme I’ve got going. All you have to do is setup multiple media elements using a set of IDs, a class or in this case the <audio> tag. Then you can use JS to see when a player has ended (stopped playing music) and run some basic conditionals to see which player is playing, what player should play

mediaelement.js - play another video at end of 1st video

拟墨画扇 提交于 2019-12-03 14:41:26
问题 Referred by Kroc @ Video for Everyone. I'd like to be able to automatically play a second video after first one ends, and then display a static image after the second one ends. After a set period of time, loop back to the first video. Thanks 回答1: $(function(){ $('audio,video').mediaelementplayer({ success: function(player, node) { player.addEventListener('ended', function(e){ player.src = 'media/somefile.mp4'; player.load(); player.play(); }); } }); }); That should do it. 回答2: to change src

Videos no longer streaming with mediaelement.js in Chrome

混江龙づ霸主 提交于 2019-12-03 14:38:52
Over the past few days, we noticed that our videos quit streaming using MediaElement.js Version 2.11.3 and Chrome Version 50.0.2661.94 (64-bit) Videos still play in Firefox and Safari without a problem. The error we receive in the Chrome Dev Tools is: Uncaught (in promise) DOMException: The element has no supported sources. The markup on the rendered page looks like this: <video height="150" poster="https://xxxxxxxxxx.cloudfront.net/123423_1_thumb.jpg" preload="auto" width="200" src="" hidden-source="https://xxxxxxx.cloudfront.net/123423_1_wm.webm"> <object data="flashmediaelement.swf" height=

mediaelement.js - play another video at end of 1st video

点点圈 提交于 2019-12-03 04:37:19
Referred by Kroc @ Video for Everyone. I'd like to be able to automatically play a second video after first one ends, and then display a static image after the second one ends. After a set period of time, loop back to the first video. Thanks $(function(){ $('audio,video').mediaelementplayer({ success: function(player, node) { player.addEventListener('ended', function(e){ player.src = 'media/somefile.mp4'; player.load(); player.play(); }); } }); }); That should do it. to change src of video you have to use setSrc API method. otherwise is wouldn't work for flash in browsers which don't support