X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=automated-tests%2Fsrc%2Fdali-toolkit%2Fdali-toolkit-test-utils%2Ftoolkit-video-player.cpp;h=9909164b661b80168704f70e5f1bd1a067a74e89;hp=6e539eb4062b6618830cf781c7156e9a036e31d6;hb=2f48746387a5d6b993f19fad3756796c8bd95c1c;hpb=ee0a1565d8a52fafc20e2c5beab39db93dcd427b diff --git a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-video-player.cpp b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-video-player.cpp old mode 100644 new mode 100755 index 6e539eb..9909164 --- a/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-video-player.cpp +++ b/automated-tests/src/dali-toolkit/dali-toolkit-test-utils/toolkit-video-player.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ */ #include +#include #include #include #include @@ -34,10 +35,15 @@ class VideoPlayer: public Dali::BaseObject public: VideoPlayer() + : mUrl(), + mVolumeLeft( 0.0f ), + mVolumeRight( 0.0f ), + mFinishedSignal(), + mMuted( false ), + mLooping( false), + mPlayPosition( 0 ), + mDisplyMode( Dali::VideoPlayerPlugin::DisplayMode::DST_ROI ) { - mMuted = false; - mLooping = false; - mPlayPosition = 0; } void SetMuted( bool muted ) @@ -78,6 +84,51 @@ public: mPlayPosition = pos; } + Dali::VideoPlayerPlugin::DisplayMode::Type GetDisplayMode() const + { + return mDisplyMode; + } + + void SetDisplayMode( Dali::VideoPlayerPlugin::DisplayMode::Type mode ) + { + mDisplyMode = mode; + } + + Any GetMediaPlayer() + { + return NULL; + } + + void StartSynchronization() + { + + } + + void FinishSynchronization() + { + + } + + void RaiseAbove(Dali::VideoPlayer target) + { + + } + + void LowerBelow(Dali::VideoPlayer target) + { + + } + + void RaiseToTop() + { + + } + + void LowerToBottom() + { + + } + public: std::string mUrl; @@ -90,6 +141,7 @@ private: bool mMuted; bool mLooping; int mPlayPosition; + Dali::VideoPlayerPlugin::DisplayMode::Type mDisplyMode; }; inline VideoPlayer& GetImplementation( Dali::VideoPlayer& player ) @@ -135,6 +187,13 @@ VideoPlayer VideoPlayer::New() return VideoPlayer( player ); } +VideoPlayer VideoPlayer::New( Dali::Actor actor, Dali::VideoSyncMode syncMode ) +{ + Internal::Adaptor::VideoPlayer* player = new Internal::Adaptor::VideoPlayer(); + + return VideoPlayer( player ); +} + VideoPlayer::VideoPlayer( const VideoPlayer& player ) : BaseHandle( player ) { @@ -261,5 +320,50 @@ Dali::VideoPlayerPlugin::CodecType VideoPlayer::GetCodecType() const return Dali::VideoPlayerPlugin::CodecType::DEFAULT; } +void VideoPlayer::SetDisplayMode( Dali::VideoPlayerPlugin::DisplayMode::Type mode ) +{ + Internal::Adaptor::GetImplementation( *this ).SetDisplayMode( mode ); +} + +Dali::VideoPlayerPlugin::DisplayMode::Type VideoPlayer::GetDisplayMode() const +{ + return Internal::Adaptor::GetImplementation( *this ).GetDisplayMode(); +} + +Any VideoPlayer::GetMediaPlayer() +{ + return Internal::Adaptor::GetImplementation( *this ).GetMediaPlayer(); +} + +void VideoPlayer::StartSynchronization() +{ + Internal::Adaptor::GetImplementation( *this ).StartSynchronization(); +} + +void VideoPlayer::FinishSynchronization() +{ + Internal::Adaptor::GetImplementation( *this ).FinishSynchronization(); +} + +void VideoPlayer::RaiseAbove(Dali::VideoPlayer target) +{ + Internal::Adaptor::GetImplementation( *this ).RaiseAbove(target); +} + +void VideoPlayer::LowerBelow(Dali::VideoPlayer target) +{ + Internal::Adaptor::GetImplementation( *this ).LowerBelow(target); +} + +void VideoPlayer::RaiseToTop() +{ + Internal::Adaptor::GetImplementation( *this ).RaiseToTop(); +} + +void VideoPlayer::LowerToBottom() +{ + Internal::Adaptor::GetImplementation( *this ).LowerToBottom(); +} + } // namespace Dali;