Code Monkey home page Code Monkey logo

Comments (3)

zhw2590582 avatar zhw2590582 commented on May 24, 2024

问题一是浏览器自身的限制,视频或者音频在用户发生交互(如点击)前,都不允许播放声音的。
问题二是因为性能考虑使用了requestAnimationFrame的缘故,其实只要用setTimeout就可以解决,我后续想想怎么把这个写成可选的选项

from flvplayer.

massive688 avatar massive688 commented on May 24, 2024

感谢作者的解惑,关于问题二能后续改进那真是太好了:)。关于问题一,希望可以交流一下。一般视频网站的广告视频打开页面会自动播放音视频。可能会使用到flash技术。是不是像大型的主流视频网站(如优酷,爱奇艺,腾讯)都是这么做的使用了flash

from flvplayer.

zhw2590582 avatar zhw2590582 commented on May 24, 2024

不是的,只是因为大型视频网站(如B站)在google chrome的内置白名单里,允许这样做

from flvplayer.

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.