1 #ifndef __DALI_TOOLKIT_VIDEO_PLAYER_H__
2 #define __DALI_TOOLKIT_VIDEO_PLAYER_H__
5 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/object/base-handle.h>
23 #include <dali/public-api/object/base-object.h>
25 #include <dali/devel-api/adaptor-framework/video-player-plugin.h>
43 * @brief VideoPlayer class is used for video playback.
46 class VideoPlayer: public BaseHandle
52 virtual ~VideoPlayer();
54 static VideoPlayer New();
56 VideoPlayer( const VideoPlayer& player );
58 VideoPlayer& operator=( const VideoPlayer& player );
60 static VideoPlayer DownCast( BaseHandle handle );
62 void SetUrl( const std::string& url );
66 void SetLooping(bool looping);
76 void SetMute( bool mute );
80 void SetVolume( float left, float right );
82 void GetVolume( float& left, float& right );
84 void SetRenderingTarget( Any target );
86 void SetPlayPosition( int millisecond );
88 int GetPlayPosition();
90 void SetDisplayRotation( Dali::VideoPlayerPlugin::DisplayRotation rotation );
92 Dali::VideoPlayerPlugin::DisplayRotation GetDisplayRotation();
94 Dali::VideoPlayerPlugin::VideoPlayerSignalType& FinishedSignal();
98 VideoPlayer( Internal::Adaptor::VideoPlayer* internal );