<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[182631] trunk/Source/WebCore</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/182631">182631</a></dd>
<dt>Author</dt> <dd>roger_fong@apple.com</dd>
<dt>Date</dt> <dd>2015-04-10 10:22:51 -0700 (Fri, 10 Apr 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Update wireless player placard for OSX.
https://bugs.webkit.org/show_bug.cgi?id=143585.
&lt;rdar://problem/12067439&gt;

Reviewed by Eric Carlson.

* Modules/mediacontrols/mediaControlsApple.css:
Adjust button positioning and svg.
(audio::-webkit-media-controls-wireless-playback-picker-button):
(audio::-webkit-media-controls-wireless-playback-picker-button.playing):
Style the wireless playback status placard, small and big versions.
(audio::-webkit-media-controls-wireless-playback-status):
(audio::-webkit-media-controls-wireless-playback-text):
(audio::-webkit-media-controls-wireless-playback-text-top):
(audio::-webkit-media-controls-wireless-playback-text-bottom):
(audio::-webkit-media-controls-wireless-playback-status.small):
(audio::-webkit-media-controls-wireless-playback-text-top.small):
(audio::-webkit-media-controls-wireless-playback-text-bottom.small):
* Modules/mediacontrols/mediaControlsApple.js:
Add new wireless player placard elements.
(Controller.prototype.createControls):
(Controller.prototype.configureInlineControls):
Make sure to switch between small and big placards when switching between fullscreen and small videos.
(Controller.prototype.configureFullScreenControls):
(Controller.prototype.handleFullscreenChange):
(Controller.prototype.updateWirelessPlaybackStatus):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreModulesmediacontrolsmediaControlsApplecss">trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css</a></li>
<li><a href="#trunkSourceWebCoreModulesmediacontrolsmediaControlsApplejs">trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (182630 => 182631)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-04-10 14:31:48 UTC (rev 182630)
+++ trunk/Source/WebCore/ChangeLog        2015-04-10 17:22:51 UTC (rev 182631)
</span><span class="lines">@@ -1,3 +1,32 @@
</span><ins>+2015-04-09  Roger Fong  &lt;roger_fong@apple.com&gt;
+
+        Update wireless player placard for OSX.
+        https://bugs.webkit.org/show_bug.cgi?id=143585.
+        &lt;rdar://problem/12067439&gt;
+
+        Reviewed by Eric Carlson.
+
+        * Modules/mediacontrols/mediaControlsApple.css:
+        Adjust button positioning and svg.
+        (audio::-webkit-media-controls-wireless-playback-picker-button):
+        (audio::-webkit-media-controls-wireless-playback-picker-button.playing):
+        Style the wireless playback status placard, small and big versions.
+        (audio::-webkit-media-controls-wireless-playback-status):
+        (audio::-webkit-media-controls-wireless-playback-text):
+        (audio::-webkit-media-controls-wireless-playback-text-top):
+        (audio::-webkit-media-controls-wireless-playback-text-bottom):
+        (audio::-webkit-media-controls-wireless-playback-status.small):
+        (audio::-webkit-media-controls-wireless-playback-text-top.small):
+        (audio::-webkit-media-controls-wireless-playback-text-bottom.small):
+        * Modules/mediacontrols/mediaControlsApple.js:
+        Add new wireless player placard elements.
+        (Controller.prototype.createControls):
+        (Controller.prototype.configureInlineControls):
+        Make sure to switch between small and big placards when switching between fullscreen and small videos.
+        (Controller.prototype.configureFullScreenControls):
+        (Controller.prototype.handleFullscreenChange):
+        (Controller.prototype.updateWirelessPlaybackStatus):
+
</ins><span class="cx"> 2015-04-10  Eric Carlson  &lt;eric.carlson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         [Mac] Refactor MediaPlaybackTarget
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediacontrolsmediaControlsApplecss"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css (182630 => 182631)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css        2015-04-10 14:31:48 UTC (rev 182630)
+++ trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.css        2015-04-10 17:22:51 UTC (rev 182631)
</span><span class="lines">@@ -296,14 +296,14 @@
</span><span class="cx"> 
</span><span class="cx"> video::-webkit-media-controls-wireless-playback-picker-button,
</span><span class="cx"> audio::-webkit-media-controls-wireless-playback-picker-button {
</span><del>-    background-image: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 16 15&quot; stroke=&quot;rgba(255,255,255,0.68)&quot;&gt;&lt;defs&gt; &lt;clipPath fill-rule=&quot;evenodd&quot; id=&quot;cut-hole&quot;&gt;&lt;path d=&quot;M 0,0 L 16,0 L 16,15 L 0,15 z M 0,14 L 16,14 L 8,4.5 z&quot;/&gt;&lt;/clipPath&gt;&lt;/defs&gt;&lt;rect fill=&quot;none&quot; clip-path=&quot;url(#cut-hole)&quot; x=&quot;0.5&quot; y=&quot;1.5&quot; width=&quot;15&quot; height=&quot;8&quot;/&gt;&lt;path fill=&quot;rgba(255,255,255,0.68)&quot; d=&quot;M 4.25,12.75 L 11.75,12.75 L 8,8.25 z&quot;/&gt;&lt;/svg&gt;');
</del><ins>+    background-image: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 16 15&quot; stroke=&quot;rgba(255,255,255,0.68)&quot;&gt;&lt;defs&gt; &lt;clipPath fill-rule=&quot;evenodd&quot; id=&quot;cut-hole&quot;&gt;&lt;path d=&quot;M 0,0.5 L 16,0.5 L 16,15.5 L 0,15.5 z M 0,14.5 L 16,14.5 L 8,5 z&quot;/&gt;&lt;/clipPath&gt;&lt;/defs&gt;&lt;rect fill=&quot;none&quot; clip-path=&quot;url(#cut-hole)&quot; x=&quot;0.5&quot; y=&quot;2&quot; width=&quot;15&quot; height=&quot;8&quot;/&gt;&lt;path stroke=&quot;none&quot; fill=&quot;rgba(255,255,255,0.68)&quot; d=&quot;M 3.5,13.25 L 12.5,13.25 L 8,8 z&quot;/&gt;&lt;/svg&gt;');
</ins><span class="cx">     margin-right: 16px;
</span><span class="cx">     width: 16px;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> video::-webkit-media-controls-wireless-playback-picker-button.playing,
</span><span class="cx"> audio::-webkit-media-controls-wireless-playback-picker-button.playing {
</span><del>-    background-image: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 16 15&quot; stroke=&quot;rgb(0,172,245)&quot;&gt;&lt;defs&gt; &lt;clipPath fill-rule=&quot;evenodd&quot; id=&quot;cut-hole&quot;&gt;&lt;path d=&quot;M 0,0 L 16,0 L 16,15 L 0,15 z M 0,14 L 16,14 L 8,4.5 z&quot;/&gt;&lt;/clipPath&gt;&lt;/defs&gt;&lt;rect fill=&quot;none&quot; clip-path=&quot;url(#cut-hole)&quot; x=&quot;0.5&quot; y=&quot;1.5&quot; width=&quot;15&quot; height=&quot;8&quot;/&gt;&lt;path fill=&quot;rgb(0,172,245)&quot; d=&quot;M 4.25,12.75 L 11.75,12.75 L 8,8.25 z&quot;/&gt;&lt;/svg&gt;');
</del><ins>+    background-image: url('data:image/svg+xml,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 16 15&quot; stroke=&quot;rgb(0,172,245)&quot;&gt;&lt;defs&gt; &lt;clipPath fill-rule=&quot;evenodd&quot; id=&quot;cut-hole&quot;&gt;&lt;path d=&quot;M 0,0.5 L 16,0.5 L 16,15.5 L 0,15.5 z M 0,14.5 L 16,14.5 L 8,5 z&quot;/&gt;&lt;/clipPath&gt;&lt;/defs&gt;&lt;rect fill=&quot;none&quot; clip-path=&quot;url(#cut-hole)&quot; x=&quot;0.5&quot; y=&quot;2&quot; width=&quot;15&quot; height=&quot;8&quot;/&gt;&lt;path stroke=&quot;none&quot; fill=&quot;rgb(0,172,245)&quot; d=&quot;M 3.5,13.25 L 12.5,13.25 L 8,8 z&quot;/&gt;&lt;/svg&gt;');
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> video::-webkit-media-controls-toggle-closed-captions-button,
</span><span class="lines">@@ -743,10 +743,10 @@
</span><span class="cx"> video:-webkit-full-screen::-webkit-media-controls-status-display {
</span><span class="cx">     width: 440px;
</span><span class="cx">     position: absolute;
</span><del>-    bottom: 27px;
</del><ins>+    bottom: 25px;
</ins><span class="cx">     text-align: center;
</span><span class="cx">     padding: 0;
</span><del>-    left: 20;
</del><ins>+    left: 20px;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> video:-webkit-full-screen::-webkit-media-controls-toggle-closed-captions-button,
</span><span class="lines">@@ -832,14 +832,77 @@
</span><span class="cx"> video::-webkit-media-controls-wireless-playback-status,
</span><span class="cx"> audio::-webkit-media-controls-wireless-playback-status {
</span><span class="cx">     display: block;
</span><ins>+    position: absolute;
+    left: 0px;
+    top: 0px;
</ins><span class="cx">     width: 100%;
</span><span class="cx">     height: 100%;
</span><ins>+    background-image: url('data:image/svg+xml;utf8,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 131 90&quot;&gt;&lt;g fill=&quot;none&quot; stroke=&quot;rgb(146,146,146)&quot; stroke-width=&quot;4&quot;&gt;&lt;rect x=&quot;2&quot; y=&quot;2&quot; width=&quot;127&quot; height=&quot;76&quot;/&gt;&lt;line x1=&quot;30&quot; y1=&quot;88&quot; x2=&quot;101&quot; y2=&quot;88&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;');
</ins><span class="cx">     background-color: black;
</span><span class="cx">     background-repeat: no-repeat;
</span><del>-    background-position: 50% 50%;
-    background-size: 100% 50%;
</del><ins>+    background-position: 50% calc(.5 * (100% - 25px) - 21pt);
+    background-size: 131px auto;
+    color: rgb(145,145,145);
+    font: -webkit-small-control;
+    vertical-align: text-bottom;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+video::-webkit-media-controls-wireless-playback-text,
+audio::-webkit-media-controls-wireless-playback-text {
+    cursor: default;
+    position: absolute;
+    width: 100%;
+    top: calc(.5 * (100% - 25px) + (.5 * (90px + 42pt) - 42pt));
+    -webkit-user-select: none;
+    margin: 0px;
+    height: 42pt;
+}
+
+video::-webkit-media-controls-wireless-playback-text-top,
+audio::-webkit-media-controls-wireless-playback-text-top {
+    position: absolute;
+    top: 15pt;
+    width: 100%;
+    line-height: 12pt;
+    height: 12pt;
+    font-size: 12pt;
+    text-align: center;
+    margin: 0px;
+}
+
+video::-webkit-media-controls-wireless-playback-text-bottom,
+audio::-webkit-media-controls-wireless-playback-text-bottom {
+    position: absolute;
+    bottom: 0;
+    left: 5%;
+    width: 90%;
+    line-height: 10pt;
+    height: 10pt;
+    font-size: 10pt;
+    text-align: center;
+    white-space: nowrap;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    margin: 0px;
+}
+
+video::-webkit-media-controls-wireless-playback-status.small,
+audio::-webkit-media-controls-wireless-playback-status.small {
+    background-image: url('data:image/svg+xml;utf8,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 62 43&quot;&gt;&lt;g fill=&quot;none&quot; stroke=&quot;rgb(146,146,146)&quot; stroke-width=&quot;2&quot;&gt;&lt;rect x=&quot;1&quot; y=&quot;1&quot; width=&quot;60&quot; height=&quot;36&quot;/&gt;&lt;line x1=&quot;14&quot; y1=&quot;42&quot; x2=&quot;48&quot; y2=&quot;42&quot;/&gt;&lt;/g&gt;&lt;/svg&gt;');
+    background-position: 50% calc(.5 * (100% - 25px) - 5pt);
+    background-size: 62px auto;
+}
+
+video::-webkit-media-controls-wireless-playback-text-top.small,
+audio::-webkit-media-controls-wireless-playback-text-top.small {
+    top: 4pt;
+}
+
+video::-webkit-media-controls-wireless-playback-text-bottom.small,
+audio::-webkit-media-controls-wireless-playback-text-bottom.small {
+    display: none;
+}
+
</ins><span class="cx"> video::-webkit-media-controls-wireless-playback-status.hidden,
</span><span class="cx"> audio::-webkit-media-controls-wireless-playback-status.hidden {
</span><span class="cx">     display: none;
</span></span></pre></div>
<a id="trunkSourceWebCoreModulesmediacontrolsmediaControlsApplejs"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js (182630 => 182631)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js        2015-04-10 14:31:48 UTC (rev 182630)
+++ trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js        2015-04-10 17:22:51 UTC (rev 182631)
</span><span class="lines">@@ -47,7 +47,6 @@
</span><span class="cx"> Controller.PauseAfterSeeking = 1;
</span><span class="cx"> 
</span><span class="cx"> /* Globals */
</span><del>-Controller.gWirelessImage = 'data:image/svg+xml;utf8,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 200 245&quot;&gt;&lt;g fill=&quot;#1060FE&quot;&gt;&lt;path d=&quot;M193.6,6.3v121.6H6.4V6.3H193.6 M199.1,0.7H0.9v132.7h198.2V0.7L199.1,0.7z&quot;/&gt;&lt;path d=&quot;M43.5,139.3c15.8,8,35.3,12.7,56.5,12.7s40.7-4.7,56.5-12.7H43.5z&quot;/&gt;&lt;/g&gt;&lt;g text-anchor=&quot;middle&quot; font-family=&quot;Helvetica Neue&quot;&gt;&lt;text x=&quot;100&quot; y=&quot;204&quot; fill=&quot;white&quot; font-size=&quot;24&quot;&gt;##DEVICE_TYPE##&lt;/text&gt;&lt;text x=&quot;100&quot; y=&quot;234&quot; fill=&quot;#5C5C5C&quot; font-size=&quot;21&quot;&gt;##DEVICE_NAME##&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;';
</del><span class="cx"> Controller.gSimulateWirelessPlaybackTarget = false; // Used for testing when there are no wireless targets.
</span><span class="cx"> Controller.gSimulateOptimizedFullscreenAvailable = false; // Used for testing when optimized fullscreen is not available.
</span><span class="cx"> 
</span><span class="lines">@@ -97,6 +96,7 @@
</span><span class="cx">         playing: 'playing',
</span><span class="cx">         selected: 'selected',
</span><span class="cx">         show: 'show',
</span><ins>+        small: 'small',
</ins><span class="cx">         thumbnail: 'thumbnail',
</span><span class="cx">         thumbnailImage: 'thumbnail-image',
</span><span class="cx">         thumbnailTrack: 'thumbnail-track',
</span><span class="lines">@@ -455,6 +455,15 @@
</span><span class="cx">         if (!Controller.gSimulateOptimizedFullscreenAvailable)
</span><span class="cx">             inlinePlaybackPlaceholder.classList.add(this.ClassNames.hidden);
</span><span class="cx">         inlinePlaybackPlaceholder.setAttribute('aria-label', this.UIString('Display Optimized Full Screen'));
</span><ins>+        
+        var inlinePlaybackPlaceholderText = this.controls.inlinePlaybackPlaceholderText = document.createElement('div');
+        inlinePlaybackPlaceholderText.setAttribute('pseudo', '-webkit-media-controls-wireless-playback-text');
+        
+        var inlinePlaybackPlaceholderTextTop = this.controls.inlinePlaybackPlaceholderTextTop = document.createElement('p');
+        inlinePlaybackPlaceholderTextTop.setAttribute('pseudo', '-webkit-media-controls-wireless-playback-text-top');
+        
+        var inlinePlaybackPlaceholderTextBottom = this.controls.inlinePlaybackPlaceholderTextBottom = document.createElement('p');
+        inlinePlaybackPlaceholderTextBottom.setAttribute('pseudo', '-webkit-media-controls-wireless-playback-text-bottom');
</ins><span class="cx"> 
</span><span class="cx">         var wirelessTargetPicker = this.controls.wirelessTargetPicker = document.createElement('button');
</span><span class="cx">         wirelessTargetPicker.setAttribute('pseudo', '-webkit-media-controls-wireless-playback-picker-button');
</span><span class="lines">@@ -510,6 +519,9 @@
</span><span class="cx"> 
</span><span class="cx">     configureInlineControls: function()
</span><span class="cx">     {
</span><ins>+        this.controls.inlinePlaybackPlaceholder.appendChild(this.controls.inlinePlaybackPlaceholderText);
+        this.controls.inlinePlaybackPlaceholderText.appendChild(this.controls.inlinePlaybackPlaceholderTextTop);
+        this.controls.inlinePlaybackPlaceholderText.appendChild(this.controls.inlinePlaybackPlaceholderTextBottom);
</ins><span class="cx">         this.controls.panel.appendChild(this.controls.panelBackgroundContainer);
</span><span class="cx">         this.controls.panelBackgroundContainer.appendChild(this.controls.panelBackground);
</span><span class="cx">         this.controls.panelBackgroundContainer.appendChild(this.controls.panelTint);
</span><span class="lines">@@ -544,6 +556,9 @@
</span><span class="cx"> 
</span><span class="cx">     configureFullScreenControls: function()
</span><span class="cx">     {
</span><ins>+        this.controls.inlinePlaybackPlaceholder.appendChild(this.controls.inlinePlaybackPlaceholderText);
+        this.controls.inlinePlaybackPlaceholderText.appendChild(this.controls.inlinePlaybackPlaceholderTextTop);
+        this.controls.inlinePlaybackPlaceholderText.appendChild(this.controls.inlinePlaybackPlaceholderTextBottom);
</ins><span class="cx">         this.controls.panel.appendChild(this.controls.panelBackground);
</span><span class="cx">         this.controls.panel.appendChild(this.controls.panelTint);
</span><span class="cx">         this.controls.panel.appendChild(this.controls.volumeBox);
</span><span class="lines">@@ -553,6 +568,7 @@
</span><span class="cx">         this.controls.panel.appendChild(this.controls.seekBackButton);
</span><span class="cx">         this.controls.panel.appendChild(this.controls.playButton);
</span><span class="cx">         this.controls.panel.appendChild(this.controls.seekForwardButton);
</span><ins>+        this.controls.panel.appendChild(this.controls.wirelessTargetPicker);
</ins><span class="cx">         this.controls.panel.appendChild(this.controls.captionButton);
</span><span class="cx">         if (!this.isAudio())
</span><span class="cx">             this.controls.panel.appendChild(this.controls.fullscreenButton);
</span><span class="lines">@@ -720,6 +736,7 @@
</span><span class="cx">     {
</span><span class="cx">         this.updateBase();
</span><span class="cx">         this.updateControls();
</span><ins>+        this.updateWirelessPlaybackStatus();
</ins><span class="cx"> 
</span><span class="cx">         if (this.isFullScreen()) {
</span><span class="cx">             this.controls.fullscreenButton.classList.add(this.ClassNames.exit);
</span><span class="lines">@@ -1724,8 +1741,6 @@
</span><span class="cx"> 
</span><span class="cx">     updateWirelessPlaybackStatus: function() {
</span><span class="cx">         if (this.currentPlaybackTargetIsWireless()) {
</span><del>-            var backgroundImageSVG = &quot;url('&quot; + Controller.gWirelessImage + &quot;')&quot;;
-
</del><span class="cx">             var deviceName = &quot;&quot;;
</span><span class="cx">             var deviceType = &quot;&quot;;
</span><span class="cx">             var type = this.host.externalDeviceType;
</span><span class="lines">@@ -1737,14 +1752,19 @@
</span><span class="cx">                 deviceName = this.UIString('##TVOUT_DEVICE_NAME##');
</span><span class="cx">             }
</span><span class="cx"> 
</span><del>-            backgroundImageSVG = backgroundImageSVG.replace('##DEVICE_TYPE##', deviceType);
-            backgroundImageSVG = backgroundImageSVG.replace('##DEVICE_NAME##', deviceName);
-
-            this.controls.inlinePlaybackPlaceholder.style.backgroundImage = backgroundImageSVG;
</del><ins>+            this.controls.inlinePlaybackPlaceholderTextBottom.innerText = deviceName;
</ins><span class="cx">             this.controls.inlinePlaybackPlaceholder.setAttribute('aria-label', deviceType + &quot;, &quot; + deviceName);
</span><del>-
</del><span class="cx">             this.controls.inlinePlaybackPlaceholder.classList.remove(this.ClassNames.hidden);
</span><span class="cx">             this.controls.wirelessTargetPicker.classList.add(this.ClassNames.playing);
</span><ins>+            if (!this.isFullScreen() &amp;&amp; (this.video.offsetWidth &lt;= 250 || this.video.offsetHeight &lt;= 200)) {
+                this.controls.inlinePlaybackPlaceholder.classList.add(this.ClassNames.small);
+                this.controls.inlinePlaybackPlaceholderTextTop.classList.add(this.ClassNames.small);
+                this.controls.inlinePlaybackPlaceholderTextBottom.classList.add(this.ClassNames.small);
+            } else {
+                this.controls.inlinePlaybackPlaceholder.classList.remove(this.ClassNames.small);
+                this.controls.inlinePlaybackPlaceholderTextTop.classList.remove(this.ClassNames.small);
+                this.controls.inlinePlaybackPlaceholderTextBottom.classList.remove(this.ClassNames.small);
+            }
</ins><span class="cx">         } else {
</span><span class="cx">             this.controls.inlinePlaybackPlaceholder.classList.add(this.ClassNames.hidden);
</span><span class="cx">             this.controls.wirelessTargetPicker.classList.remove(this.ClassNames.playing);
</span></span></pre>
</div>
</div>

</body>
</html>