Bug 143585

Summary: Wireless player placard for OSX
Product: WebKit Reporter: Roger Fong <roger_fong>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch eric.carlson: review+

Description Roger Fong 2015-04-09 15:44:05 PDT
This covers both big and small versions.

rdar://problem/12067439
Comment 1 Roger Fong 2015-04-09 16:19:15 PDT
Created attachment 250485 [details]
patch
Comment 2 Eric Carlson 2015-04-10 07:14:10 PDT
Comment on attachment 250485 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=250485&action=review

r=me with the minor changes noted.

> Source/WebCore/Modules/mediacontrols/mediaControlsApple.js:463
> +        inlinePlaybackPlaceholderTextTop.innerText = 'AirPlay';

This string should go into mediaControlsLocalizedStrings.js

> Source/WebCore/Modules/mediacontrols/mediaControlsApple.js:467
> +        inlinePlaybackPlaceholderTextBottom.innerText = 'This video is playing on "AppleTV"'

Ditto.

> Source/WebCore/Modules/mediacontrols/mediaControlsApple.js:1757
> +        console.log(deviceName);

Please remove this.
Comment 3 Roger Fong 2015-04-10 10:19:39 PDT
(In reply to comment #2)
> Comment on attachment 250485 [details]
> patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=250485&action=review
> 
> r=me with the minor changes noted.
> 
> > Source/WebCore/Modules/mediacontrols/mediaControlsApple.js:463
> > +        inlinePlaybackPlaceholderTextTop.innerText = 'AirPlay';
> 
> This string should go into mediaControlsLocalizedStrings.js
> 
> > Source/WebCore/Modules/mediacontrols/mediaControlsApple.js:467
> > +        inlinePlaybackPlaceholderTextBottom.innerText = 'This video is playing on "AppleTV"'
> 
> Ditto.

Actually I'll just get rid of those two altogether.
We always run the updateWirelessPlaybackStatus method on initialization which initializes those values with the appropriate strings anyways.

> 
> > Source/WebCore/Modules/mediacontrols/mediaControlsApple.js:1757
> > +        console.log(deviceName);
> 
> Please remove this.
Comment 4 Roger Fong 2015-04-10 10:34:49 PDT
http://trac.webkit.org/changeset/182631