Skip to content
This repository has been archived by the owner on Dec 10, 2020. It is now read-only.

Remove ns.resume() from NetstreamPlayStart #147

Merged
merged 1 commit into from
Apr 2, 2015
Merged

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Apr 2, 2015

This was causing issues with ads and autoplay.
The chain of events look something like:

  • Autoplay starts playback
  • ads's startLinearAdMode calls pause on the player
  • Netstream.Play.Start gets triggered
  • _ns.resume() gets called because we are in autoplay
  • both the content and the ad get called

Removing this line seems to have no affect on regular playback and it doesn't even change the functionality of the autoplay function.
Interesting tidbit: Chrome, Safari, and IE11 do not start playback if autoplay attribute gets set on the video element after load but Firefox does.

@dmlap
Copy link
Member

dmlap commented Apr 2, 2015

LGTM.

dmlap added a commit that referenced this pull request Apr 2, 2015
Remove ns.resume() from NetstreamPlayStart
@dmlap dmlap merged commit fb2e771 into master Apr 2, 2015
@dmlap dmlap deleted the nsresume-in-playstart branch April 2, 2015 20:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants