mediaelement.js

MediaElement.js - force Chrome to use flash player?

我的梦境 提交于 2019-12-18 17:06:13
问题 We're having problems with Chrome crashing, and it seems to be related to the html5 video player, is there any way to force MediaElement.js to use the flash player even if html5 is supported? I can do a browser test in jQuery if I can figure out what setting to pass to mediaelement. I've seen a few tantalizing suggestions in blogs and forums that this can be done, but I'm not seeing a specific option in the documentation. Any help would be very much appreciated! 回答1: Here you go: new

Flash in mediaelement.js only shows “download file”

拥有回忆 提交于 2019-12-18 16:31:49
问题 I would like to get the Flash fallback for mediaelement.js to work, but it only shows a black area saying "download file" in the upper left. The video markup I generate looks very much like this. I just modified some paths for privacy reasons: <video width="1024" height="576" preload="none" style="display: none; "> <object width="1024" height="576" type="application/x-shockwave-flash" data="flashmediaelement.swf"> <param name="movie" value="/wp-content/themes/my_theme/js/vendor/mediaelement

Mediaelement.js malfunction in IE, no flashback works

大憨熊 提交于 2019-12-18 04:54:22
问题 I used the mediaelement.js in my site, I used for the example a .mp4 file with H.264 codec, works well in all browsers, but it doesn't works in any version of Internet Explorer when I publish the site. On my localhost, it doesn't have any problems (the flash fallback works well), but in my server it doesn't works. The code I used is: <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>VIDEO HTML5</title> <script type="text/javascript" src

How do I get mediaelement.js player state (paused, volume, etc.)?

天大地大妈咪最大 提交于 2019-12-18 04:22:03
问题 According to what is stated on mediaelement.js website it should be easy to get player state. But I cannot figure out how to do it. I'm creating player like this and trying to read properties (the player itself is working without problems). var player = new MediaElementPlayer('.player_1') player.play(); player.pause(); log(player.paused); log(player.volume); But this fails - both paused and volume are undefined . I'm using latest 2.8.2 version. jsfiddle example: http://jsfiddle.net

How to track events on mediaelement.js with Google Analytics

醉酒当歌 提交于 2019-12-13 18:41:27
问题 I'm using mediaelement.js for my audio player and I've been trying to track events in Analytics for weeks now to no avail. I know it comes with a plugin for Analytics but I haven't been able to get it to work. Here's my html <!DOCTYPE html> <html> <head> <link type="text/css" href="http://icd10monitor.com/js/mediaelementplayer.min.css" rel="stylesheet" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> <script type="text/javascript"

Access MediaElement.js Player Attributes

柔情痞子 提交于 2019-12-13 05:13:39
问题 I need to access the properties of a MediaElementPlayer object, how can I do this? The website mentions you can access properties like currentTime and paused from the MediaElement object, but doesn't mention MediaElementPlayer . An example of what I'd like to do: var mejsplayer = new MediaElementPlayer($("#myplayer"), mejsOptions); setInterval(debug, 1000); function debug() { console.log("Duration is " + mejsplayer.duration); console.log("Current time is " + mejsplayer.currentTime); console

Mediaelements.js: override features attributes

心已入冬 提交于 2019-12-12 03:04:16
问题 I need to override "features" attribute of mediaelements.js component. The scenario is this: - start first promotional video with small control (only volume) - when video is ended, content video starts and more control must be shown. This the code: <video width="640" height="360" src="promo.mp4" type="video/mp4" id="player1" poster="../media/echo-hereweare.jpg" controls="controls" preload="true"></video> <script> $(function () { promoVideo(); }); function promoVideo() { $("#player1")

How to add events to flash fallback for medialemetn and what evets are available?

♀尐吖头ヾ 提交于 2019-12-11 20:07:17
问题 I am using mediaelement.js, the player is working as intended with chrome but for firefox the events are not firing. Are there any specific events that don't work on firefox? Which events are available? I have tried both the loadeddata and progress events, but neither are getting called in firefox. player.addEventListener('loadeddata', function() { jQuery('.mejs-overlay-button').trigger('click'); }, false); 回答1: Are you adding the events inside the success function of your mediaelementplayer(

translations using mediaelementjs

不羁岁月 提交于 2019-12-11 14:14:16
问题 How does the auto translations:['es','ar','yi','zh-cn'] work with mediaelement player I tried the suggestion - $('audio,video').mediaelementplayer({ // automatically create these translations on load translations:['es','ar','yi','zh-cn'], // allow the user to add additional translations translationSelector: true, // start with English automatically turned on startLanguage: 'en' }); 回答1: Sorry, Google has removed their translation API so this was pulled from MediaElement.js 来源: https:/

What are the options for the mediaelement player's “preload” setting?

爱⌒轻易说出口 提交于 2019-12-11 12:30:52
问题 The only setting I've come across for "preload" is "none" - what are the alternetives? I have a long-ish movie that takes a while to start (because of the size, I assume) and I'd like to be able to get it to play more quickly. I reckon that making the video start loading immediately the page loads would give the viewer a quicker response... 回答1: The preload attribute is part of the HTML 5 spec. Steve Souders blog post discusses the allowable values and explains how each browser handles the