<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>157173</bug_id>
          
          <creation_ts>2016-04-29 03:36:26 -0700</creation_ts>
          <short_desc>webkitShowPlaybackTargetPicker does not show available devices on iPhones</short_desc>
          <delta_ts>2016-06-30 08:41:47 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>Safari 9</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 9.3</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>159161</dup_id>
          
          <bug_file_loc>https://jsfiddle.net/8gd83urs/embedded/result</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rick Smit">rick</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>eric.carlson</cc>
    
    <cc>jonlee</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1188577</commentid>
    <comment_count>0</comment_count>
    <who name="Rick Smit">rick</who>
    <bug_when>2016-04-29 03:36:26 -0700</bug_when>
    <thetext>On Safari in iOS, the webkitplaybacktargetavailabilitychanged fires, but when I call the webkitShowPlaybackTargetPicker it opens the dialog, but it doesn&apos;t show my Apple TV. I&apos;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

Actual result:
The TargetPicker Dialog opens, but it doesn&apos;t show available devices.

Expected result:
That the TargetPicker Dialog shows the available devices and lets me stream video content to them.

Build Date &amp; Platform:
Safari in iOS: WebKit version 601.1.46
WKWebView in IOS: WebKit version 601.1.46</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1188650</commentid>
    <comment_count>1</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2016-04-29 09:37:56 -0700</bug_when>
    <thetext>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&apos;m guessing that&apos;s iOS 9?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1188681</commentid>
    <comment_count>2</comment_count>
    <who name="Rick Smit">rick</who>
    <bug_when>2016-04-29 10:20:31 -0700</bug_when>
    <thetext>Hi Jon, thanks for your reply.

I can see my Apple TV in the control center and I&apos;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&apos;s still a work in progress: https://github.com/WebKit/webkit/commit/c6ef2c91f6dee37eee0c65c755daf4aa20f4b1e1#diff-d3dfe0e4202ffdbbf57f4ce53ee922b6

(In reply to comment #1)
&gt; We are not in control of the items in the popover. Is your AppleTV available
&gt; in the AirPlay picker when you bring up Control Center?
&gt; 
&gt; Based on your WebKit version I&apos;m guessing that&apos;s iOS 9?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1188857</commentid>
    <comment_count>3</comment_count>
    <who name="Jon Lee">jonlee</who>
    <bug_when>2016-04-29 16:29:15 -0700</bug_when>
    <thetext>Is this happening to you on iPhone only?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1188865</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2016-04-29 16:47:14 -0700</bug_when>
    <thetext>&lt;rdar://problem/26017691&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1189346</commentid>
    <comment_count>5</comment_count>
    <who name="Rick Smit">rick</who>
    <bug_when>2016-05-02 01:18:05 -0700</bug_when>
    <thetext>I was unable to test this on iPad, but I&apos;ve tested it Mac OS (El Capitan) Safari 9 and there it works.

Will update the issue when I&apos;ve tested this on an iPad as well.

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1190005</commentid>
    <comment_count>6</comment_count>
    <who name="Rick Smit">rick</who>
    <bug_when>2016-05-04 00:56:27 -0700</bug_when>
    <thetext>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!

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1206732</commentid>
    <comment_count>7</comment_count>
    <who name="Eric Carlson">eric.carlson</who>
    <bug_when>2016-06-30 08:41:47 -0700</bug_when>
    <thetext>This was fixed by the changes for 159161. Forwarding duping to that bug.

*** This bug has been marked as a duplicate of bug 159161 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>