Comments (5)
Can you provide an example of what you are trying to achieve please?
from mediaelement-plugins.
Is there a way to set the audio on the player at 5 or 50% when the player starts in the player settings?
new MediaElementPlayer('audio-player', {
autoRewind: false,
features: ['skipback','playpause','jumpforward','current','progress','duration','speed','volume']
});
from mediaelement-plugins.
You can set it up specifying the number of seconds from which it will start playing using #t
with the number of seconds media should start with:
<video width="640" height="360" controls preload="none">
<source src="http://vodflash.tv5monde.com/focus/legendes/4fils.mp4#t=240" type="video/mp4">
</video>
or you can use the success
callback, and setCurrentTime
method inside of it.
new MediaElementPlayer('audio-player', {
autoRewind: false,
features: ['skipback','playpause','jumpforward','current','progress','duration','speed','volume'],
success: function(media) {
media.setCurrentTime(3); // Time in seconds
}
});
from mediaelement-plugins.
startVolume: 0.5,
found it
from mediaelement-plugins.
I got confused somehow with the position of the player, rather than the audio. My apologies. I'm glad you found it
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.