void HTMLMediaSession::showPlaybackTargetPicker(const HTMLMediaElement& element) { LOG(Media, "HTMLMediaSession::showPlaybackTargetPicker"); if (!showingPlaybackTargetPickerPermitted(element)) return; #if PLATFORM(IOS) element.document().frame()->page()->chrome().client().showPlaybackTargetPicker(element.hasVideo()); #endif }
void HTMLMediaSession::showPlaybackTargetPicker(const HTMLMediaElement& element) { LOG(Media, "HTMLMediaSession::showPlaybackTargetPicker"); if (!showingPlaybackTargetPickerPermitted(element)) return; #if ENABLE(PLUGIN_PROXY_FOR_VIDEO) if (element.shouldUseVideoPluginProxy()) { MediaPlayer* player = element.player(); if (!player) return; player->showPlaybackTargetPicker(); return; } #endif #if PLATFORM(IOS) element.document().frame()->page()->chrome().client().showPlaybackTargetPicker(element.hasVideo()); #endif }