Git Product home page Git Product logo

Comments (7)

jbuck avatar jbuck commented on July 29, 2024

Unfortunately we cannot work around that; I'd recommend putting the Popcorn.play() command in a touch or click event handler.

If you're writing an iOS app that uses UIWebViews, then there is a property you can set on the Web View to ignore that... I need to find that again.

from popcorn-js.

lchenneberg avatar lchenneberg commented on July 29, 2024

UIWebView.allowsInlineMediaPlayback = YES;
UIWebView.mediaPlaybackRequiresUserAction = NO;

from popcorn-js.

lchenneberg avatar lchenneberg commented on July 29, 2024

Is it possible to simulate that touch or click event by the programmatic way?

from popcorn-js.

rwaldron avatar rwaldron commented on July 29, 2024

@lchenneberg no, it will still be prevented.

from popcorn-js.

lchenneberg avatar lchenneberg commented on July 29, 2024

Is there is an other way to force the Play without requiring the action of the End User?
I'm programming a slideshow that content iframes, songs and videos... this limitation prevent the automation of the slideshow. I can't play automatically songs in my iFrame, because the src attribute is modified on every slide change and the medias are contained in that iframe.

from popcorn-js.

jbuck avatar jbuck commented on July 29, 2024

I don't think so, no. There's even limitations on the number of simultaneous audio streams you can play at once... You'll crash Safari Mobile if you play more than one!

from popcorn-js.

lchenneberg avatar lchenneberg commented on July 29, 2024

I'm not trying to play simutaneous audio stream. I'm loading dynamically each page in an iframe by changing the src attribute. the medias are incorporated in the page loaded in the iFrame and are using popcorn.js

from popcorn-js.

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.