Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo is no working in mobile's chrome browser #16

Closed
fomenyesu opened this issue Oct 3, 2016 · 2 comments
Closed

demo is no working in mobile's chrome browser #16

fomenyesu opened this issue Oct 3, 2016 · 2 comments

Comments

@fomenyesu
Copy link

hi,
I am checking your example, and it can't work in mobile chrome . Here is the error in console:

Uncaught TypeError: Array.from is not a function
85 videocontext.js:641 Uncaught TypeError: Array.from is not a function

Am I missing something ? Or it's no support in mobile yet?

thank you !

@fomenyesu fomenyesu changed the title chrome in mobile is no working demo is no working in mobile's chrome browser Oct 3, 2016
@emshotton
Copy link
Contributor

Hi,

Thank you for raising this. That error looks like it's due to a missing polyfill for "Array.from" in the es6 to es5 conversion step.That specific error should be fixed in commit 808f6b6 which is published to npm as version 0.23.0.

We don't currently actively support mobile. A discussion about this can be found in issue #14 . It boils down to the requirements on mobile for a video element to have its play method called by a user initiated action. This means the VideoContext is unable to automatically trigger video playback in normal operation. There is a discussion in issue #14 about a potential work-around which involves creating a number of video elements which don't have any src attribute set up front and calling "play()" on all of them during the initial user action to start the video context playback. This puts the elements into a state where they can be controlled automatically, then passing those elements in when calling createVideoSourceNode().

Kind regards,
Matt

@emshotton
Copy link
Contributor

VideoContext should now work with chrome on mobile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants