<!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.
<rdar://problem/12067439>
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 <roger_fong@apple.com>
+
+ Update wireless player placard for OSX.
+ https://bugs.webkit.org/show_bug.cgi?id=143585.
+ <rdar://problem/12067439>
+
+ 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 <eric.carlson@apple.com>
</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,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15" stroke="rgba(255,255,255,0.68)"><defs> <clipPath fill-rule="evenodd" id="cut-hole"><path d="M 0,0 L 16,0 L 16,15 L 0,15 z M 0,14 L 16,14 L 8,4.5 z"/></clipPath></defs><rect fill="none" clip-path="url(#cut-hole)" x="0.5" y="1.5" width="15" height="8"/><path fill="rgba(255,255,255,0.68)" d="M 4.25,12.75 L 11.75,12.75 L 8,8.25 z"/></svg>');
</del><ins>+ background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15" stroke="rgba(255,255,255,0.68)"><defs> <clipPath fill-rule="evenodd" id="cut-hole"><path d="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"/></clipPath></defs><rect fill="none" clip-path="url(#cut-hole)" x="0.5" y="2" width="15" height="8"/><path stroke="none" fill="rgba(255,255,255,0.68)" d="M 3.5,13.25 L 12.5,13.25 L 8,8 z"/></svg>');
</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,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15" stroke="rgb(0,172,245)"><defs> <clipPath fill-rule="evenodd" id="cut-hole"><path d="M 0,0 L 16,0 L 16,15 L 0,15 z M 0,14 L 16,14 L 8,4.5 z"/></clipPath></defs><rect fill="none" clip-path="url(#cut-hole)" x="0.5" y="1.5" width="15" height="8"/><path fill="rgb(0,172,245)" d="M 4.25,12.75 L 11.75,12.75 L 8,8.25 z"/></svg>');
</del><ins>+ background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 15" stroke="rgb(0,172,245)"><defs> <clipPath fill-rule="evenodd" id="cut-hole"><path d="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"/></clipPath></defs><rect fill="none" clip-path="url(#cut-hole)" x="0.5" y="2" width="15" height="8"/><path stroke="none" fill="rgb(0,172,245)" d="M 3.5,13.25 L 12.5,13.25 L 8,8 z"/></svg>');
</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,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 131 90"><g fill="none" stroke="rgb(146,146,146)" stroke-width="4"><rect x="2" y="2" width="127" height="76"/><line x1="30" y1="88" x2="101" y2="88"/></g></svg>');
</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,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 62 43"><g fill="none" stroke="rgb(146,146,146)" stroke-width="2"><rect x="1" y="1" width="60" height="36"/><line x1="14" y1="42" x2="48" y2="42"/></g></svg>');
+ 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,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 245"><g fill="#1060FE"><path d="M193.6,6.3v121.6H6.4V6.3H193.6 M199.1,0.7H0.9v132.7h198.2V0.7L199.1,0.7z"/><path d="M43.5,139.3c15.8,8,35.3,12.7,56.5,12.7s40.7-4.7,56.5-12.7H43.5z"/></g><g text-anchor="middle" font-family="Helvetica Neue"><text x="100" y="204" fill="white" font-size="24">##DEVICE_TYPE##</text><text x="100" y="234" fill="#5C5C5C" font-size="21">##DEVICE_NAME##</text></g></svg>';
</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 = "url('" + Controller.gWirelessImage + "')";
-
</del><span class="cx"> var deviceName = "";
</span><span class="cx"> var deviceType = "";
</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 + ", " + 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() && (this.video.offsetWidth <= 250 || this.video.offsetHeight <= 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>