Comments (9)
var player= new MediaElementPlayer('reproductor', {
stretching: 'stretching',
alwaysShowControls: true,
defaultSpeed: 0.5,
tracksText:'Acordes y Notas de la cancion',
startLanguage:'en',
features: ['playpause', 'current', 'progress', 'duration', 'speed', 'skipback', 'jumpforward', 'tracks',
'markers', 'volume', 'chromecast', 'ads', 'vast', 'contextmenu'],
success: function (media) {
media.addEventListener('timeupdate', function () {
procesarAcorde(media.currentTime);
});
media.addEventListener('error', function (e) {
console.log(e.message);
});
}
});
and you MUST add the player; otherwise, it won't work
<script src="https://cdn.jsdelivr.net/mediaelement/latest/mediaelement-and-player.min.js"></script>
<script src="<?=base_url()?>mediajs/plugins/speed/speed.min.js"></script>
<script src="<?=base_url()?>mediajs/plugins/speed/speed-i18n.js"></script>
Let me know if this worked for you
from mediaelement-plugins.
yes, already added, only that I do not showed the code
<script src="<?=base_url()?>mediajs/mediaelement-and-player.min.js"></script> <script src="<?=base_url()?>mediajs/renderers/dailymotion.min.js"></script> <script src="<?=base_url()?>mediajs/renderers/facebook.min.js"></script> <script src="<?=base_url()?>mediajs/renderers/soundcloud.min.js"></script> <script src="<?=base_url()?>mediajs/renderers/twitch.min.js"></script> <script src="<?=base_url()?>mediajs/renderers/vimeo.min.js"></script> <script src="<?=base_url()?>mediajs/plugins/speed/speed.min.js"></script> <script src="<?=base_url()?>mediajs/plugins/speed/speed-i18n.js"></script> <script src="<?=base_url()?>mediajs/demo.js"></script>
the parameter in player
pluginPath: '../mediajs/plugins/',
it is necessary?
from mediaelement-plugins.
That parameter is only if you need to support Flash; if not, it's not really needed. If you are good with this answer, can you please star both https://github.com/mediaelement/mediaelement and https://github.com/mediaelement/mediaelement-plugins to continue improving the package and giving it more popularity? Also, tell your friends/coworkers/etc. that have a GitHub account to do the same to support the project, if you don't mind. It would be greatly appreciated it.
from mediaelement-plugins.
Not working yet, still with the that you said me, already added the js files of speed plugin and css style files, and added the parameter
defaultSpeed: 0.5,
I am testing in the Opera, Firefox an Chrome browsers, in lasted versions, Do you have any example? please.
I am going to promove your project, i am making a work synchronising the player video with chords of guitar using canvas html5
from mediaelement-plugins.
Please share a URL so I can take a look
from mediaelement-plugins.
I am working in localhost mode, but I will upload in a hosting server, and I will pass the url, thanks for your help
from mediaelement-plugins.
OK thanks let me know when you have the URL ready
from mediaelement-plugins.
Any updates with this?
from mediaelement-plugins.
Closing this issue since no answers have been posted in more than a week; if you like this to be reopened, please let us know. Thanks
from mediaelement-plugins.
Related Issues (20)
- mediaelementjs marker plugins not working with youtube link or embed HOT 1
- how do i add a subtitle in a11y plugin HOT 1
- Picture-in-Picture plugin isn't build like other plugins ? HOT 1
- Add audio track switcher HOT 1
- Picture-in-Picture don't work when Player is load m3u8 LiveBroadcast
- Quality plugin plays mp4 first by default (2nd <source>) and only switches source once. HOT 2
- Error on building Player using playlist plugin on safari
- Quality switch doesn't work with m3u8 file HOT 1
- Audio description in a11y not working for external YouTube videos
- End behavior differs depending on during-play action
- Broken Controls display
- Timeslider disappearing with individual settings
- Audio file storage
- mediaelement Web site problems HOT 1
- Help in Ads plugin to run on specific event HOT 10
- Player SBS, TaB (3D) to anaglyph or VR
- Playlist plugin fails at the end of playlist run
- Playlist fails to play next audio after first ends HOT 1
- Change color of audio player
- HLS Quality Selection
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediaelement-plugins.