GithubHelp home page GithubHelp logo

Comments (5)

rafa8626 avatar rafa8626 commented on May 28, 2024

Can you provide an example of what you are trying to achieve please?

from mediaelement-plugins.

openbayou avatar openbayou commented on May 28, 2024

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.

rafa8626 avatar rafa8626 commented on May 28, 2024

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.

openbayou avatar openbayou commented on May 28, 2024

startVolume: 0.5,

found it

from mediaelement-plugins.

rafa8626 avatar rafa8626 commented on May 28, 2024

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)

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.