|
Lines 131-137
Source/WebCore/platform/mac/WebPlaybackSessionInterfaceMac.mm_sec1
|
| 131 |
|
131 |
|
| 132 |
void WebPlaybackSessionInterfaceMac::seekableRangesChanged(const TimeRanges& timeRanges) |
132 |
void WebPlaybackSessionInterfaceMac::seekableRangesChanged(const TimeRanges& timeRanges) |
| 133 |
{ |
133 |
{ |
| 134 |
#if ENABLE(WEB_PLAYBACK_CONTROLS_MANAGER) |
134 |
#if ENABLE(WEB_PLAYBACK_CONTROLS_MANAGER) && USE(APPLE_INTERNAL_SDK) |
| 135 |
[playBackControlsManager() setSeekableTimeRanges:timeRangesToArray(timeRanges).get()]; |
135 |
[playBackControlsManager() setSeekableTimeRanges:timeRangesToArray(timeRanges).get()]; |
| 136 |
#else |
136 |
#else |
| 137 |
UNUSED_PARAM(timeRanges); |
137 |
UNUSED_PARAM(timeRanges); |
|
Lines 140-146
Source/WebCore/platform/mac/WebPlaybackSessionInterfaceMac.mm_sec2
|
| 140 |
|
140 |
|
| 141 |
void WebPlaybackSessionInterfaceMac::audioMediaSelectionOptionsChanged(const Vector<WTF::String>& options, uint64_t selectedIndex) |
141 |
void WebPlaybackSessionInterfaceMac::audioMediaSelectionOptionsChanged(const Vector<WTF::String>& options, uint64_t selectedIndex) |
| 142 |
{ |
142 |
{ |
| 143 |
#if ENABLE(WEB_PLAYBACK_CONTROLS_MANAGER) |
143 |
#if ENABLE(WEB_PLAYBACK_CONTROLS_MANAGER) && USE(APPLE_INTERNAL_SDK) |
| 144 |
[playBackControlsManager() setAudioMediaSelectionOptions:options withSelectedIndex:static_cast<NSUInteger>(selectedIndex)]; |
144 |
[playBackControlsManager() setAudioMediaSelectionOptions:options withSelectedIndex:static_cast<NSUInteger>(selectedIndex)]; |
| 145 |
#else |
145 |
#else |
| 146 |
UNUSED_PARAM(options); |
146 |
UNUSED_PARAM(options); |
|
Lines 150-156
Source/WebCore/platform/mac/WebPlaybackSessionInterfaceMac.mm_sec3
|
| 150 |
|
150 |
|
| 151 |
void WebPlaybackSessionInterfaceMac::legibleMediaSelectionOptionsChanged(const Vector<WTF::String>& options, uint64_t selectedIndex) |
151 |
void WebPlaybackSessionInterfaceMac::legibleMediaSelectionOptionsChanged(const Vector<WTF::String>& options, uint64_t selectedIndex) |
| 152 |
{ |
152 |
{ |
| 153 |
#if ENABLE(WEB_PLAYBACK_CONTROLS_MANAGER) |
153 |
#if ENABLE(WEB_PLAYBACK_CONTROLS_MANAGER) && USE(APPLE_INTERNAL_SDK) |
| 154 |
[playBackControlsManager() setLegibleMediaSelectionOptions:options withSelectedIndex:static_cast<NSUInteger>(selectedIndex)]; |
154 |
[playBackControlsManager() setLegibleMediaSelectionOptions:options withSelectedIndex:static_cast<NSUInteger>(selectedIndex)]; |
| 155 |
#else |
155 |
#else |
| 156 |
UNUSED_PARAM(options); |
156 |
UNUSED_PARAM(options); |
|
Lines 198-205
Source/WebCore/platform/mac/WebPlaybackSessionInterfaceMac.mm_sec4
|
| 198 |
manager.seekableTimeRanges = timeRangesToArray(m_playbackSessionModel->seekableRanges()).get(); |
198 |
manager.seekableTimeRanges = timeRangesToArray(m_playbackSessionModel->seekableRanges()).get(); |
| 199 |
manager.canTogglePlayback = YES; |
199 |
manager.canTogglePlayback = YES; |
| 200 |
manager.playing = m_playbackSessionModel->isPlaying(); |
200 |
manager.playing = m_playbackSessionModel->isPlaying(); |
|
|
201 |
#if USE(APPLE_INTERNAL_SDK) |
| 201 |
[manager setAudioMediaSelectionOptions:m_playbackSessionModel->audioMediaSelectionOptions() withSelectedIndex:static_cast<NSUInteger>(m_playbackSessionModel->audioMediaSelectedIndex())]; |
202 |
[manager setAudioMediaSelectionOptions:m_playbackSessionModel->audioMediaSelectionOptions() withSelectedIndex:static_cast<NSUInteger>(m_playbackSessionModel->audioMediaSelectedIndex())]; |
| 202 |
[manager setLegibleMediaSelectionOptions:m_playbackSessionModel->legibleMediaSelectionOptions() withSelectedIndex:static_cast<NSUInteger>(m_playbackSessionModel->legibleMediaSelectedIndex())]; |
203 |
[manager setLegibleMediaSelectionOptions:m_playbackSessionModel->legibleMediaSelectionOptions() withSelectedIndex:static_cast<NSUInteger>(m_playbackSessionModel->legibleMediaSelectedIndex())]; |
|
|
204 |
#endif |
| 203 |
} |
205 |
} |
| 204 |
|
206 |
|
| 205 |
void WebPlaybackSessionInterfaceMac::updatePlaybackControlsManagerTiming(double currentTime, double anchorTime, double playbackRate, bool isPlaying) |
207 |
void WebPlaybackSessionInterfaceMac::updatePlaybackControlsManagerTiming(double currentTime, double anchorTime, double playbackRate, bool isPlaying) |