Changeset 183782 in webkit
- Timestamp:
- May 4, 2015 5:08:28 PM (9 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r183781 r183782 1 2015-05-04 Eric Carlson <eric.carlson@apple.com> 2 3 [Mac] Audio-only files should not have a device picker 4 https://bugs.webkit.org/show_bug.cgi?id=144606 5 <rdar://problem/20806387> 6 7 Reviewed by Dean Jackson. 8 9 * Modules/mediacontrols/mediaControlsApple.js: 10 (Controller.prototype.hasVideo): New. 11 (Controller.prototype.updateFullscreenButtons): Use hasVideo. 12 (Controller.prototype.updateHasVideo): Ditto. 13 (Controller.prototype.updateWirelessTargetAvailable): Don't show the target picker button 14 unless a file has video. 15 1 16 2015-05-04 Chris Dumez <cdumez@apple.com> 2 17 -
trunk/Source/WebCore/Modules/mediacontrols/mediaControlsApple.js
r183751 r183782 987 987 }, 988 988 989 hasVideo: function() 990 { 991 return this.video.videoTracks && this.video.videoTracks.length; 992 }, 993 989 994 updateFullscreenButtons: function() 990 995 { 991 var hasVisualMedia = this.video.videoTracks && this.video.videoTracks.length > 0; 992 var shouldBeHidden = !this.video.webkitSupportsFullscreen || !hasVisualMedia; 996 var shouldBeHidden = !this.video.webkitSupportsFullscreen || !this.hasVideo(); 993 997 this.controls.fullscreenButton.classList.toggle(this.ClassNames.hidden, shouldBeHidden); 994 998 this.controls.optimizedFullscreenButton.classList.toggle(this.ClassNames.hidden, shouldBeHidden); … … 1726 1730 updateHasVideo: function() 1727 1731 { 1728 if (this. video.videoTracks.length)1732 if (this.hasVideo()) 1729 1733 this.controls.panel.classList.remove(this.ClassNames.noVideo); 1730 1734 else … … 1839 1843 wirelessPlaybackTargetsAvailable = false; 1840 1844 1841 if (wirelessPlaybackTargetsAvailable && this.isPlayable() )1845 if (wirelessPlaybackTargetsAvailable && this.isPlayable() && this.hasVideo()) 1842 1846 this.controls.wirelessTargetPicker.classList.remove(this.ClassNames.hidden); 1843 1847 else
Note: See TracChangeset
for help on using the changeset viewer.