tobsch / mediaelement_rails Goto Github PK
View Code? Open in Web Editor NEWAn easy as hell mediaelementjs rails integration for asset pipeline enabled apps...
License: MIT License
An easy as hell mediaelementjs rails integration for asset pipeline enabled apps...
License: MIT License
I'm trying to use this gem for m3u8 in rails.
But it doesn't work well chrome and firefox. Safari is working well.
I added gem, application.js and application.css. If I want to use it for m3u8, do I have to do anything more?
Please advise me. Regards
mediaelement works fine on IE8 in dev mode. but once it is precompiled for production, it fails on IE8. javascript unspecified error thrown when you click to play.
I have this player working fine in one Rails 3.2 app but I want the player show up in fancybox, Is this possible? If yes, could you please put the js example?
Hi,
is this possible:
Autoplay by YouTube video?
I try:
<video autoplay ...>
and
Youtube-Link with &autoplay=1
Thanks,
Ingo
After adding:
gem 'sprockets_better_errors'
To my gem file, it is identifying this problem with this gem:
Asset depends on 'mediaelement_rails/bigplay.svg' to generate properly but has not declared the dependency
Please add: `//= depend_on_asset "mediaelement_rails/bigplay.svg"` to '/usr/local/lib/ruby/gems/2.0.0/gems/mediaelement_rails-0.5.1/app/assets/stylesheets/mediaelement_rails/mediaelementplayer.css.erb'
I'm using the gem, and it works smooth in development, but whenever I switch to production it doesn't work. Neither the success nor failure callback is fired when attaching it to a jquery element, however it also doesn't give an error. Messing with the options for how the JS-file is compiled it seems it's related to the compilation and combining of the javascript file, however this doesn't seem to make much sense.
Is this a common error, or what could have caused it?
Safari 5.1.6 and 5.1.7 (current, stable) both hang for about 5 seconds and the Safari nightly build hangs indefinitely - delaying the page load/ready event - with the current gem version (0.3.2) that contains the MediaElement 2.6.5 library. The recent MediaElement 2.9.1 pull request (already applied to master) fixes the issue.
It'd be advisable to release a new gem version, soon.
Hi,
i notice chrome browser: Version 46.0.2490.80 (64-bit) that i have somehow
got updated automatically by Google and now my player does not autoplay anymore for youtube video.
Other browser like Safari and Firefox works with the same auto play code.
On the chrome browser, the code below:
player.load();
player.play();
did not get trigger automatically but other browser auto play the youtube videos.
But when i manually click on the youtube video, it will play on Chrome browser.
I also notice that it will try to auto play the video on chrome but show a gray screen video on the screen instead of playing the youtube video.
Any idea why? or pointers? Thanks again for this awesome open source player :- )
I'm using mediaelement_rails VERSION = '0.8.0'
can someone give an example or demo using this? I installed the gem but don't know how to actually use it in my program.
I am using application.css.scss in my rails application. so I can't require the file.so I used @import. The main js file imported successfully but the file in subfolder ('mediaelement_rails/mejs-skinsv') is not loading..Any remedy?
Please help to build and update the current version to Rubygems. Thank you.
The current version of medielement.js(2.11.0) used by this gem is a year old!
I need this update because of the .remove() function is throwing up the
'Error: mejs.players.splice is not a function' error.
The bug fix for this was released in medielement.js 2.11.1
Please update mediaelement to 2.6.4 :)
2.2.5 is quite old now :(
$ gem install mediaelement_rails -v '0.3.2'
Fetching: mediaelement_rails-0.3.2.gem (100%)
ERROR: Error installing mediaelement_rails:
invalid gem format for /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/cache/mediaelement_rails-0.3.2.gem
deleted /usr/local/Cellar/ruby/1.9.3-p0/lib/ruby/gems/1.9.1/cache/mediaelement_rails-0.3.2.gem few times, same effect.
$ ruby --version
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]
$ gem --version
1.8.12
$ uname -a
Darwin iRuslan 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.