Skip to content

Conversation

@tjenkinson
Copy link
Contributor

This allows developers to activate the audio element (from a user interaction) so that something can be played later, at a time which is suitable for them.

This is needed because some browsers have a restriction which means playback won't start unless the play() (or load()) call on the media element is from a user interaction.

See #9 (comment) for more information.

Without this developers have to work around the problem by requesting the player for some track, and then calling play() followed by pause(), just to achieve this.

closes #9

@tjenkinson tjenkinson force-pushed the implement-activate-audio-element branch from 461ac8b to 33ec181 Compare November 17, 2017 12:33
@tjenkinson
Copy link
Contributor Author

thanks @bruderstein

@tjenkinson tjenkinson merged commit 8d0960c into master Nov 17, 2017
@tjenkinson tjenkinson deleted the implement-activate-audio-element branch November 17, 2017 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

SC.stream fails every first time on ios

3 participants