GithubHelp home page GithubHelp logo

mediaelement / mediaelement Goto Github PK

View Code? Open in Web Editor NEW
8.1K 312.0 1.6K 73.33 MB

HTML5 <audio> or <video> player with support for MP4, WebM, and MP3 as well as HLS, Dash, YouTube, Facebook, SoundCloud and others with a common HTML5 MediaElement API, enabling a consistent UI in all browsers.

Home Page: http://mediaelementjs.com/

License: MIT License

JavaScript 92.10% CSS 6.26% HTML 1.64%
html5-audio html5-video hls video streaming html5 flash dash mp4 mp3

mediaelement's People

Contributors

albell avatar andyfowler avatar digitas-git avatar dmongrel avatar garrettjohnson avatar jeffreyatw avatar jimmywarting avatar johndyer avatar kabel avatar karawitan avatar latzt avatar lereskp avatar lucash avatar mangui avatar marcobiedermann avatar markomarkovic avatar milax avatar odnamrataizem avatar olivierjaquemet avatar olypros avatar peterh-capella avatar rafa8626 avatar ron666 avatar rylan avatar sapientpants avatar sdiemer avatar simonschuh avatar stevemayhew avatar svoynow avatar tennety avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mediaelement's Issues

Flash methods (play and pause) do not work

This is a great plugin and is working well for us in development at the moment. However, one minor issue I've noticed is that the play() and pause() methods don't work against the Flash player. We are encoding just H.264 files and use mediaelement to support HTML5 or Flash for current Firefox and non-HTML5 browsers.

A new development involves a playlist with a click on a video thumbnail in the list to start the video playing in the main player window so .play() will be really useful.

Player does not get activated if one of the file in multiple videos are non playable

Hi,
First of all thanks for the plugin. It's one of the best html5 player available. I have recently noticed on the current build that if one of the file is not playable, In a group of multiple videos on same page, The player does not get activated on any other videos following the non playable video. I have all the video on the page using a list of

It is happening with the current trunk. I will appreciate your thoughts on it.

Regards
Brajesh

mp3 pauses after 2 seconds

I've run into an issue where the player pauses on an audio file after 2 seconds of play in FireFox 2.5 and Safari 5 on a mac. Chrome is unaffected. This happens generated by http://oldspicevoicemail.com/. For and example see http://dev.innovatingtomorrow.net/files/message.mp3.

I have a feeling there is something wrong with the mp3 file that is causing this. I've seen this problem in the past.

But, is there a way to get around this bug in the file? I know some flash players play the file without an issue (I tested in 1pixelout). Though, I know safari is not using flash so that would not be helpful there.

With <audio> tag, trying to display iTunes previews, doesn't work:

Given this source:

<audio src="http://a1.phobos.apple.com/us/r1000/023/Music/0b/f7/f8/mzm.dehsezty.aac.p.m4a" type="audio/mp4" controls="controls">
<source src="http://a1.phobos.apple.com/us/r1000/023/Music/0b/f7/f8/mzm.dehsezty.aac.p.m4a" type="audio/mp4">
</audio>

with mediaelementplayer.js I get an error that the type isn't supported (disabled player), without it, I just get the normal browser behavior.

Tried in Safari 5.0.1 and Firefox 3.6.8 on Mac.

It looks like you're just starting on audio support, so I thought I'd throw that test case out.

Not playing in Chrome [2.0.1]

The mediaelement is not playing in google chrome. It shows javascript contents but when play is pressed, nothing happens. using H264 file with flash fallback

The same code works on Safari and Firefox. Problem was also in 2.0.0 - I haven't tried earlier versions.

Thanks John, we selected your library to use in a large project, looking forward to your updates!

Failing in IE 7/8

The audio player is failing in IE 7/8. Video works though.

You can see this in action on the mediaelementjs.com website.

Cannot read property 'length' of undefined

In chrome I get the error of:

Uncaught TypeError: Cannot read property 'length' of undefined

The error is in mediaelementplayer.js line 569. The script is looking for t.tracks.length which is undefined.

To reproduce go to the mediaelement homepage with the console open in Chrome.

"ended" event firing before actual stream end

While the stream is still active and downloading data, the "ended" event is firing.

I found that the correct way to determine stream end is to only set a flag in NetStream.Play.Stop event and handle stream end in NetStream.Buffer.Empty event only if
the flag is set.

So here is the problem and the fix: http://stackoverflow.com/questions/2134450/anyone-run-into-this-bug-rtmp-streaming-videos-ending-3-4-secs-too-early

Moreover, I think Stop handler has to also set a timeout to handle the opposite situation: Buffer.Empty has fired before Stop and won't fire once again after Stop. What do you think of this?

How do I change multiple sources?

I have 3 different sources in my video element (mp4, ogg, webm). How do I change all 3 of them with JS? src setter only allows 1 parameter.

Missing MediaElement API documentation

You’ve done a nice job revamping the home page but I miss the table of all supported MediaElement properties/methods that used to be on the former version. I think this table was important to emphasize on the killer feature of your library (imho) and to mention the trick with property setters… Plus, I kinda need it to finish the documentation on my SMIL/Timesheets project page. -_-'

Did you completely remove this section or did you move it to another page? Worst case, is the old home page available somewhere? I haven’t had any luck with web.archive.org…

Thanks, and keep up the good work!

No ended event sent

Tested on : Mac - FF

At the end of the playback the pause button does not turn back to a play button as it does on Chrome
Note that the timeupdate is sent forever.

(I recreated this issue cause I closed it, but didn't mean to...)

Autoplay not working.

Hello,

Using the latest wordpress plugin. I have the autoplay="true" attribute in an audio link but the file(s) is not automatically playing. This previously worked but hasn't since the 1.1.5 upgrade.

MediaElement JS-object's 'src' property is not propagated/updated from Flash and Silverlight

'src' property is present in the docs but missing from MediaElement JS-object (Flash fallback - tested, Silverlight - discovered in the code). 'setSrc' method exists and works as expected.

In sendEvent JSON (both audio and video mediaelements in _.as files; the code shows that the same refers to Silverlight) - _missing*:
",src:" + _currentUrl +

In me-mediaelements.js, mejs.PluginMediaElement.prototype, section // HTML5 get/set properties, but only set (updated by event handlers) - missing:
, src: ''

invalid opacity value

in mediaelementplayer.css

.mejs-controls .mejs-time-rail .mejs-time-total {
margin: 5px;
background: #333;
background: rgba(50,50,50,50.8);
}

Should be 0.8 ?

thanks!

Removing duration controls

Hi John,

I would like to remove the duration controls in the Wordpress player. In just looking around in mediaelementplayer.js I removed...

    var time = controls.find('.mep-time');
    var currentTime = controls.find('.mep-currenttime').html('00:00');
    var duration = controls.find('.mep-duration').html('00:00');

...which certainly had the intended result but also borked the layout of the player. On a side note is there an option for repeat?

License information?

The source code mentions that the license is MIT/GPLv2 dual-licensed. That should really be more prominent, both on the README file (or better yet a LICENSE.txt) and on the web site: http://mediaelementjs.com/

I'm really excited to see this project emerge, but wide-spread adoption will need the licensing to be clearly stated up front.

Fullscreen with additional hires videofile

Hi
(sorry, this isn´t a bug, but I could not find another place to ask.)

I have a small video (160x300px) which should be played inside the side´s div for low bandwidth users.
High bandwidth users shuld get the option to switch to fullscreen, where a large 720p hd file is used.

How can I achieve this?
Maybe there is a workaround to hide the fullscreen button and add a link 'go fullscren' below the player which starts another instance using the hd file?

Greetings
Al

Android and Audio bug

In android phones (tested on Android 2.2) if you click play on an audio field it starts to play but the button goes back to a play button instead of a pause button. If you click play again it switches to a pause button but you hear the audio playing twice.

Silverlight player: volumechange event before the new value is set

The w3c spec says:

volumechangeEventEither the volume attribute or the muted attribute has changed. Fired **after** the relevant attribute's setter has returned.

but the Silverlight version of the player seems to send volumechange event before the new value is actually set:
// src/silverlight/MainPage.xaml.cs:318
public void setVolume(Double volume) {
...
SendEvent("volumechange");
media.Volume = volume;
and
// src/silverlight/MainPage.xaml.cs:327
public void setMuted(bool isMuted) {
...
SendEvent("volumechange");
media.IsMuted = isMuted;

Audio Wont Play 2

My audio will play natively, but won't play in the code, it's strange because video will.

<script type="text/javascript" src="../build/jquery.js"></script>
<script type="text/javascript" src="../build/mediaelement-and-player.min.js"></script> 
<link rel="stylesheet" href="../build/mediaelementplayer.min.css">

that's how I have the scripts in there, among other scripts..

The Forever Demo

Originally by Chris Brown

Your browser leaves much to be desired.

<script> $('audio,video').mediaelementplayer({enablePluginDebug: true}); </script>

That's how I have it in my body.

http://klossal.com/projects/music/demo/

this is the actual page that it's on to see it in full.

soooo that's my

More explicit Error message

Hi,

MediaElement.js is working well on a vast majority of platform, but there is still old configs out there, or peoples who do not install flash. It would be great to lead those peoples to solutions, like saying "You need to install the flash plugin" or "your config is too old, this player can't do anything about that, but you still can download the media file here".
Just "Error" is not explicit enough in most cases.

Here is a list of error scenarios I can think of :

  • no flash installed
  • too old flash version
  • javascript not enable
  • too old or slow browser (IE6 and previous at least...)

Thanks,
yagraph

Problems with Amazon S3 query authentication string in SRC

I've run into a problem when using an Amazon S3 query authentication string appended to my video source URL. In short, the video doesn't play. Is it possible that the authentication string is throwing off the plugins ability to parse the file type?

Here's an example of the code I'm having problems with:

ua parsing neccesssary?

you have this big ua object parsing up the useragent.
is that neccessary? from a quick glance i don't see a reason to use it.

(the ie sniff will break in ie9 btw)

Opera 10.60 not working

I've tested your website with Opera 10.60 on OSX but it doesn't work.
Apart from the background (not showed, so the white text is on white bg) the video tag still remains and is not played (of course, is H264) but there is no flash replacement.

Flash and Silverlight plugins avaible (both last version).
Opera 10.60, build 8402, Mac OS X 10.6.4

Aspect ratio problem (16:9 vs. 4:3) with the Flash fallback

Hi, and thanks for your work !

We start using MediaElement.js on a Wordpress podcast website with success (http://podcast.grenet.fr/), and I only encounter a small problem with
aspect ratio (16:9 vs. 4:3) if the Flash fallback is used, and cannot solve it on my side.
See for example this video (you may have to wait to see it) with Firefox :
http://podcast.grenet.fr/non-classe/ceremonie-de-signature-de-la-convention-enepsvinci/
a video with a 16:9 aspect ratio is stretched to 4:3.
I can't assure consistency because my videos come from multiples sources, so I am looking for a way to obtain black borders instead of stretching...
but I can't figure out how !

Thanks,
yagraph

<audio> not working on FF or Safari on Mac

At first I thought it was my config, but I've noticed the example on the project homepage also do not play in FF or Safari on the mac. I don't think I have silverlight installed, but it should fall back to Flash, right?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.