'Swift - Getting AVPlayer from Webview
I have a macOS app that contain WebViewController for playing some musics.
I added to my app a AVRoutePickerView, when I switch to another route, the music continue playing in same, this because I need to pass an AVPlayer to the AVRoutePickerView
How to get the AVPlayer for WKWebView. Is it possible?
Thank you
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
