Last active
December 22, 2020 15:10
-
-
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/)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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