On Safari in iOS, the webkitplaybacktargetavailabilitychanged fires, but when I call the webkitShowPlaybackTargetPicker it opens the dialog, but it doesn't show my Apple TV. I'm having the same issue in my WKWebView app.
Steps to reproduce:
1) Access this example page: https://jsfiddle.net/8gd83urs/embedded/result from your iOS device on the same network as your Apple TV.
2) Click the custom Airplay control button
The TargetPicker Dialog opens, but it doesn't show available devices.
That the TargetPicker Dialog shows the available devices and lets me stream video content to them.
Build Date & Platform:
Safari in iOS: WebKit version 601.1.46
WKWebView in IOS: WebKit version 601.1.46
We are not in control of the items in the popover. Is your AppleTV available in the AirPlay picker when you bring up Control Center?
Based on your WebKit version I'm guessing that's iOS 9?
Hi Jon, thanks for your reply.
I can see my Apple TV in the control center and I'm on iOS 9 yes.
Is it maybe disabled for WKWebView and therefore not a bug? I came across this commit where it looks like it's still a work in progress: https://github.com/WebKit/webkit/commit/c6ef2c91f6dee37eee0c65c755daf4aa20f4b1e1#diff-d3dfe0e4202ffdbbf57f4ce53ee922b6
(In reply to comment #1)
> We are not in control of the items in the popover. Is your AppleTV available
> in the AirPlay picker when you bring up Control Center?
> Based on your WebKit version I'm guessing that's iOS 9?
Is this happening to you on iPhone only?
I was unable to test this on iPad, but I've tested it Mac OS (El Capitan) Safari 9 and there it works.
Will update the issue when I've tested this on an iPad as well.
Hi John, tested it on iPad as well now, and to my surprise it also works on my iPad running iOS 9.4.3. Hope it helps!
This was fixed by the changes for 159161. Forwarding duping to that bug.
*** This bug has been marked as a duplicate of bug 159161 ***