Skip to content

Instantly share code, notes, and snippets.

@AmitaiB
Last active December 22, 2020 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AmitaiB/6491dbd12de896e515bc65b77cd35d7a to your computer and use it in GitHub Desktop.
Save AmitaiB/6491dbd12de896e515bc65b77cd35d7a to your computer and use it in GitHub Desktop.
One possible way to call `cast` in the onConnected delegate method (https://developer.jwplayer.com/)
func onConnected(to device: JWCastingDevice) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.1) {
self.castController.cast()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment