Coder Social home page Coder Social logo

Autoplay and autostop about adapt-audio HOT 5 CLOSED

oghmios avatar oghmios commented on September 26, 2024
Autoplay and autostop

from adapt-audio.

Comments (5)

moloko avatar moloko commented on September 26, 2024

Yes but you'll have to modify articleBlockSlider a fair bit to get it to work.

Also note that autoplay is disabled at an OS level on iOS so it could be challenging getting that to work... you need to make sure the code to start the audio is directly associated with the user clicking something or it will be blocked.

from adapt-audio.

oghmios avatar oghmios commented on September 26, 2024

Thank you for all

from adapt-audio.

oghmios avatar oghmios commented on September 26, 2024

I understand that you are saying me, but I don't know how call any method of audio.js from blockslider.js. Do I need to create an instance or how i can call a, for example, function play() from blockslider.js?

I'm beginner in javascript and i'm learning now.

from adapt-audio.

oliverfoster avatar oliverfoster commented on September 26, 2024

As Matt has said, auto-play is a very bad idea. You can get the player to stop any time by putting Adapt.trigger("audio:stop"); at the point in the blockslider where you want the audio to stop. It is recommended to have the user hit the play button themselves and not do auto play. The support for auto play is bad.

from adapt-audio.

oghmios avatar oghmios commented on September 26, 2024

Ok, I know that auto-play is a bad idea, but I was asked to do so.

Thank you for all

from adapt-audio.

Related Issues (9)

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.