FullscreenVideoControllerEfl.cpp revision 5ddde30071f639962dd557c453f2ad01f8f0fd00
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}
95
96void FullscreenVideoController::play()
97{
98    notImplemented();
99}
100
101void FullscreenVideoController::pause()
102{
103    notImplemented();
104}
105
106void FullscreenVideoController::playStateChanged()
107{
108    notImplemented();
109}
110
111void FullscreenVideoController::togglePlay()
112{
113    notImplemented();
114}
115
116float FullscreenVideoController::volume() const
117{
118    notImplemented();
119    return 0;
120}
121
122bool FullscreenVideoController::muted() const
123{
124    notImplemented();
125    return false;
126}
127
128void FullscreenVideoController::setVolume(float volume)
129{
130    notImplemented();
131}
132
133void FullscreenVideoController::volumeChanged()
134{
135    notImplemented();
136}
137
138void FullscreenVideoController::muteChanged()
139{
140    notImplemented();
141}
142
143float FullscreenVideoController::currentTime() const
144{
145    notImplemented();
146    return 0;
147}
148
149void FullscreenVideoController::setCurrentTime(float value)
150{
151    notImplemented();
152}
153
154float FullscreenVideoController::duration() const
155{
156    notImplemented();
157    return 0;
158}
159
160float FullscreenVideoController::percentLoaded() const
161{
162    notImplemented();
163    return 0;
164}
165
166void FullscreenVideoController::beginSeek()
167{
168    notImplemented();
169}
170
171void FullscreenVideoController::doSeek()
172{
173    notImplemented();
174}
175
176void FullscreenVideoController::endSeek()
177{
178    notImplemented();
179}
180
181static String timeToString(float time)
182{
183    notImplemented();
184}
185
186bool FullscreenVideoController::updateHudProgressBar()
187{
188    notImplemented();
189    return false;
190}
191
192void FullscreenVideoController::createHud()
193{
194    notImplemented();
195}
196
197#endif
198