1/* 2 * Copyright (C) 2010 Igalia S.L 3 * Copyright (C) 2010 Samsung Electronics 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Library General Public 7 * License as published by the Free Software Foundation; either 8 * version 2 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library General Public License 16 * along with this library; see the file COPYING.LIB. If not, write to 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * Boston, MA 02110-1301, USA. 19 */ 20 21#include "config.h" 22 23#if ENABLE(VIDEO) 24 25#include "FullscreenVideoControllerEfl.h" 26 27#include "MediaPlayer.h" 28#include "NotImplemented.h" 29 30#include <gst/gst.h> 31 32using namespace std; 33using namespace WebCore; 34 35FullscreenVideoController::FullscreenVideoController() 36 : m_hudTimeoutId(0) 37 , m_progressBarUpdateId(0) 38 , m_seekLock(false) 39 , m_window(0) 40 , m_hudWindow(0) 41{ 42} 43 44FullscreenVideoController::~FullscreenVideoController() 45{ 46 exitFullscreen(); 47} 48 49void FullscreenVideoController::setMediaElement(HTMLMediaElement* mediaElement) 50{ 51 if (mediaElement == m_mediaElement) 52 return; 53 54 m_mediaElement = mediaElement; 55 if (!m_mediaElement) { 56 // Can't do full-screen, just get out 57 exitFullscreen(); 58 } 59} 60 61void FullscreenVideoController::showHud(bool autoHide) 62{ 63 notImplemented(); 64} 65 66void FullscreenVideoController::hideHud() 67{ 68 notImplemented(); 69} 70 71void FullscreenVideoController::enterFullscreen() 72{ 73 notImplemented(); 74} 75 76void FullscreenVideoController::updateHudPosition() 77{ 78 notImplemented(); 79} 80 81void FullscreenVideoController::exitOnUserRequest() 82{ 83 notImplemented(); 84} 85 86void FullscreenVideoController::exitFullscreen() 87{ 88 notImplemented(); 89} 90 91bool FullscreenVideoController::canPlay() const 92{ 93 notImplemented(); 94 return false; 95} 96 97void FullscreenVideoController::play() 98{ 99 notImplemented(); 100} 101 102void FullscreenVideoController::pause() 103{ 104 notImplemented(); 105} 106 107void FullscreenVideoController::playStateChanged() 108{ 109 notImplemented(); 110} 111 112void FullscreenVideoController::togglePlay() 113{ 114 notImplemented(); 115} 116 117float FullscreenVideoController::volume() const 118{ 119 notImplemented(); 120 return 0; 121} 122 123bool FullscreenVideoController::muted() const 124{ 125 notImplemented(); 126 return false; 127} 128 129void FullscreenVideoController::setVolume(float volume) 130{ 131 notImplemented(); 132} 133 134void FullscreenVideoController::volumeChanged() 135{ 136 notImplemented(); 137} 138 139void FullscreenVideoController::muteChanged() 140{ 141 notImplemented(); 142} 143 144float FullscreenVideoController::currentTime() const 145{ 146 notImplemented(); 147 return 0; 148} 149 150void FullscreenVideoController::setCurrentTime(float value) 151{ 152 notImplemented(); 153} 154 155float FullscreenVideoController::duration() const 156{ 157 notImplemented(); 158 return 0; 159} 160 161float FullscreenVideoController::percentLoaded() const 162{ 163 notImplemented(); 164 return 0; 165} 166 167void FullscreenVideoController::beginSeek() 168{ 169 notImplemented(); 170} 171 172void FullscreenVideoController::doSeek() 173{ 174 notImplemented(); 175} 176 177void FullscreenVideoController::endSeek() 178{ 179 notImplemented(); 180} 181 182bool FullscreenVideoController::updateHudProgressBar() 183{ 184 notImplemented(); 185 return false; 186} 187 188void FullscreenVideoController::createHud() 189{ 190 notImplemented(); 191} 192 193#endif 194