Giter Site home page Giter Site logo

Comments (11)

starock avatar starock commented on July 22, 2024

调了一晚上,iOS上始终不正常T_T 只好暂时放弃了。

from aplayer.

journey-ad avatar journey-ad commented on July 22, 2024

因为移动设备本来就无法在没有用户操作的情况下自动播放,安卓端某些应用内置浏览器除外

from aplayer.

journey-ad avatar journey-ad commented on July 22, 2024

因为移动设备本来就无法在没有用户操作的情况下自动播放,安卓端某些应用内置浏览器除外

from aplayer.

DIYgod avatar DIYgod commented on July 22, 2024

@journey-ad 正解,规范规定移动端不能自动播放,所以移动端浏览器做了限制,这个问题无解

from aplayer.

walterjunjun avatar walterjunjun commented on July 22, 2024

可以看一下这个讨论:http://stackoverflow.com/questions/25023211/html5-audio-why-not-working-on-ios-no-autoplay-involved

好像是code可以解决的。 期待你能更新。

from aplayer.

DIYgod avatar DIYgod commented on July 22, 2024

@walterjunjun 请仔细看:To play audio/video on mobile devices you need direct, physical and synchronous interaction from the user.

目前不可能做到做自动播放,因为W3C规范有规定。

from aplayer.

walterjunjun avatar walterjunjun commented on July 22, 2024

对,这个是我忽视了。我还有一个问题,就是我播放几首歌曲时候,iphone不会自动播下一首歌,而电脑chrome用起来自动播放下一首是可以。这个你知道如何解决吗

from aplayer.

walterjunjun avatar walterjunjun commented on July 22, 2024

那个webpage只有一个player,我试了你的demo,也是不能自动播放下一首。

from aplayer.

DIYgod avatar DIYgod commented on July 22, 2024

@walterjunjun 同样的问题啊,移动端不能自动播放,无解

from aplayer.

walterjunjun avatar walterjunjun commented on July 22, 2024

http://kolber.github.io/audiojs/demos/test6.html
iphone can autoplay next song

from aplayer.

DIYgod avatar DIYgod commented on July 22, 2024

SoundJS使用Flash实现了移动端的自动播放

有兴趣可以参考下

自动播放体验很差,特别是移动端,我这里不打算支持了

from aplayer.

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.