2 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include "video-view-impl.h"
22 #include <dali/devel-api/actors/actor-devel.h>
23 #include <dali/devel-api/adaptor-framework/window-devel.h>
24 #include <dali/devel-api/scripting/scripting.h>
25 #include <dali/integration-api/debug.h>
26 #include <dali/public-api/adaptor-framework/native-image-source.h>
27 #include <dali/public-api/animation/constraint.h>
28 #include <dali/public-api/object/type-registry-helper.h>
29 #include <dali/public-api/object/type-registry.h>
30 #include <dali/devel-api/rendering/texture-devel.h>
34 #include <dali-toolkit/devel-api/controls/control-devel.h>
35 #include <dali-toolkit/internal/graphics/builtin-shader-extern-gen.h>
36 #include <dali-toolkit/internal/visuals/visual-factory-cache.h>
37 #include <dali-toolkit/public-api/controls/video-view/video-view.h>
38 #include <dali/integration-api/adaptor-framework/adaptor.h>
50 return Toolkit::VideoView::New();
53 DALI_TYPE_REGISTRATION_BEGIN(Toolkit::VideoView, Toolkit::Control, Create);
55 DALI_PROPERTY_REGISTRATION(Toolkit, VideoView, "video", MAP, VIDEO)
56 DALI_PROPERTY_REGISTRATION(Toolkit, VideoView, "looping", BOOLEAN, LOOPING)
57 DALI_PROPERTY_REGISTRATION(Toolkit, VideoView, "muted", BOOLEAN, MUTED)
58 DALI_PROPERTY_REGISTRATION(Toolkit, VideoView, "volume", MAP, VOLUME)
59 DALI_PROPERTY_REGISTRATION(Toolkit, VideoView, "underlay", BOOLEAN, UNDERLAY)
60 DALI_PROPERTY_REGISTRATION(Toolkit, VideoView, "playPosition", INTEGER, PLAY_POSITION)
61 DALI_PROPERTY_REGISTRATION(Toolkit, VideoView, "displayMode", INTEGER, DISPLAY_MODE)
63 DALI_SIGNAL_REGISTRATION(Toolkit, VideoView, "finished", FINISHED_SIGNAL)
65 DALI_ACTION_REGISTRATION(Toolkit, VideoView, "play", ACTION_VIDEOVIEW_PLAY)
66 DALI_ACTION_REGISTRATION(Toolkit, VideoView, "pause", ACTION_VIDEOVIEW_PAUSE)
67 DALI_ACTION_REGISTRATION(Toolkit, VideoView, "stop", ACTION_VIDEOVIEW_STOP)
68 DALI_ACTION_REGISTRATION(Toolkit, VideoView, "forward", ACTION_VIDEOVIEW_FORWARD)
69 DALI_ACTION_REGISTRATION(Toolkit, VideoView, "backward", ACTION_VIDEOVIEW_BACKWARD)
71 DALI_TYPE_REGISTRATION_END()
73 const char* const VOLUME_LEFT("volumeLeft");
74 const char* const VOLUME_RIGHT("volumeRight");
76 // 3.0 TC uses RENDERING_TARGET. It should be removed in next release
77 const char* const RENDERING_TARGET("renderingTarget");
78 const char* const WINDOW_SURFACE_TARGET("windowSurfaceTarget");
79 const char* const NATIVE_IMAGE_TARGET("nativeImageTarget");
81 const char* const CUSTOM_SHADER("shader");
82 const char* const CUSTOM_VERTEX_SHADER("vertexShader");
83 const char* const CUSTOM_FRAGMENT_SHADER("fragmentShader");
84 const char* const DEFAULT_SAMPLER_TYPE_NAME("sampler2D");
85 const char* const CUSTOM_SAMPLER_TYPE_NAME("samplerExternalOES");
87 const char* const IS_VIDEO_VIEW_PROPERTY_NAME = "isVideoView";
91 VideoView::VideoView(Dali::VideoSyncMode syncMode)
92 : Control(ControlBehaviour(ACTOR_BEHAVIOUR_DEFAULT | DISABLE_STYLE_CHANGE_SIGNALS)),
93 mCurrentVideoPlayPosition(0),
102 VideoView::~VideoView()
106 Toolkit::VideoView VideoView::New(VideoSyncMode syncMode)
108 VideoView* impl = new VideoView(syncMode);
109 Toolkit::VideoView handle = Toolkit::VideoView(*impl);
111 impl->mVideoPlayer = Dali::VideoPlayer::New(impl->Self(), syncMode);
116 void VideoView::OnInitialize()
119 mVideoPlayer.FinishedSignal().Connect(this, &VideoView::EmitSignalFinish);
121 DevelControl::SetAccessibilityConstructor(self, [](Dali::Actor actor) {
122 return std::unique_ptr<Dali::Accessibility::Accessible>(
123 new DevelControl::AccessibleImpl(actor, Dali::Accessibility::Role::VIDEO));
126 //update self property
127 self.RegisterProperty(IS_VIDEO_VIEW_PROPERTY_NAME, true, Property::READ_WRITE);
130 void VideoView::SetUrl(const std::string& url)
133 mPropertyMap.Clear();
135 mVideoPlayer.SetUrl(mUrl);
138 void VideoView::SetPropertyMap(Property::Map map)
142 Property::Value* target = map.Find(RENDERING_TARGET);
143 std::string targetType;
145 if(target && target->Get(targetType) && targetType == WINDOW_SURFACE_TARGET)
148 SetWindowSurfaceTarget();
150 else if(target && target->Get(targetType) && targetType == NATIVE_IMAGE_TARGET)
153 SetNativeImageTarget();
157 Property::Value* shaderValue;
160 shaderValue = map.Find(CUSTOM_SHADER);
164 Property::Map* shaderMap = shaderValue->GetMap();
167 mEffectPropertyMap = *shaderMap;
172 if(mTextureRenderer && !mEffectPropertyMap.Empty())
174 Dali::Shader shader = CreateShader();
175 mTextureRenderer.SetShader(shader);
181 std::string VideoView::GetUrl()
186 void VideoView::SetLooping(bool looping)
188 mVideoPlayer.SetLooping(looping);
191 bool VideoView::IsLooping()
193 return mVideoPlayer.IsLooping();
196 void VideoView::Play()
202 void VideoView::Pause()
204 mVideoPlayer.Pause();
208 void VideoView::Stop()
214 void VideoView::Forward(int millisecond)
216 int curPos = mVideoPlayer.GetPlayPosition();
218 int nextPos = curPos + millisecond;
220 mVideoPlayer.SetPlayPosition(nextPos);
223 void VideoView::Backward(int millisecond)
225 int curPos = mVideoPlayer.GetPlayPosition();
227 int nextPos = curPos - millisecond;
228 nextPos = (nextPos < 0) ? 0 : nextPos;
230 mVideoPlayer.SetPlayPosition(nextPos);
233 void VideoView::SetMute(bool mute)
235 mVideoPlayer.SetMute(mute);
238 bool VideoView::IsMuted()
240 return mVideoPlayer.IsMuted();
243 void VideoView::SetVolume(float left, float right)
245 mVideoPlayer.SetVolume(left, right);
248 void VideoView::GetVolume(float& left, float& right)
250 mVideoPlayer.GetVolume(left, right);
253 Dali::Toolkit::VideoView::VideoViewSignalType& VideoView::FinishedSignal()
255 return mFinishedSignal;
258 void VideoView::EmitSignalFinish()
260 if(!mFinishedSignal.Empty())
262 Dali::Toolkit::VideoView handle(GetOwner());
263 mFinishedSignal.Emit(handle);
267 bool VideoView::DoAction(BaseObject* object, const std::string& actionName, const Property::Map& attributes)
271 Dali::BaseHandle handle(object);
272 Toolkit::VideoView videoView = Toolkit::VideoView::DownCast(handle);
279 VideoView& impl = GetImpl(videoView);
281 if(strcmp(actionName.c_str(), ACTION_VIDEOVIEW_PLAY) == 0)
286 else if(strcmp(actionName.c_str(), ACTION_VIDEOVIEW_PAUSE) == 0)
291 else if(strcmp(actionName.c_str(), ACTION_VIDEOVIEW_STOP) == 0)
296 else if(strcmp(actionName.c_str(), ACTION_VIDEOVIEW_FORWARD) == 0)
299 if(attributes["videoForward"].Get(millisecond))
301 impl.Forward(millisecond);
305 else if(strcmp(actionName.c_str(), ACTION_VIDEOVIEW_BACKWARD) == 0)
308 if(attributes["videoBackward"].Get(millisecond))
310 impl.Backward(millisecond);
318 bool VideoView::DoConnectSignal(BaseObject* object, ConnectionTrackerInterface* tracker, const std::string& signalName, FunctorDelegate* functor)
320 Dali::BaseHandle handle(object);
322 bool connected(true);
323 Toolkit::VideoView videoView = Toolkit::VideoView::DownCast(handle);
325 if(0 == strcmp(signalName.c_str(), FINISHED_SIGNAL))
327 videoView.FinishedSignal().Connect(tracker, functor);
331 // signalName does not match any signal
338 void VideoView::SetPropertyInternal(Property::Index index, const Property::Value& value)
342 case Toolkit::VideoView::Property::VIDEO:
344 std::string videoUrl;
347 if(value.Get(videoUrl))
351 else if(value.Get(map))
357 case Toolkit::VideoView::Property::LOOPING:
360 if(value.Get(looping))
366 case Toolkit::VideoView::Property::MUTED:
375 case Toolkit::VideoView::Property::VOLUME:
381 Property::Value* volumeLeft = map.Find(VOLUME_LEFT);
382 Property::Value* volumeRight = map.Find(VOLUME_RIGHT);
383 if(volumeLeft && volumeLeft->Get(left) && volumeRight && volumeRight->Get(right))
385 SetVolume(left, right);
390 case Toolkit::VideoView::Property::UNDERLAY:
393 if(value.Get(underlay))
395 SetUnderlay(underlay);
399 case Toolkit::VideoView::Property::PLAY_POSITION:
404 SetPlayPosition(pos);
408 case Toolkit::VideoView::Property::DISPLAY_MODE:
413 SetDisplayMode(mode);
420 void VideoView::SetProperty(BaseObject* object, Property::Index index, const Property::Value& value)
422 Toolkit::VideoView videoView = Toolkit::VideoView::DownCast(Dali::BaseHandle(object));
426 VideoView& impl = GetImpl(videoView);
428 impl.SetPropertyInternal(index, value);
430 if(index != Toolkit::VideoView::Property::UNDERLAY)
433 // These values will be used when underlay mode is changed.
434 impl.mPropertyBackup[index] = value;
439 Property::Value VideoView::GetProperty(BaseObject* object, Property::Index propertyIndex)
441 Property::Value value;
442 Toolkit::VideoView videoView = Toolkit::VideoView::DownCast(Dali::BaseHandle(object));
446 VideoView& impl = GetImpl(videoView);
448 switch(propertyIndex)
450 case Toolkit::VideoView::Property::VIDEO:
452 if(!impl.mUrl.empty())
456 else if(!impl.mPropertyMap.Empty())
458 value = impl.mPropertyMap;
462 case Toolkit::VideoView::Property::LOOPING:
464 value = impl.IsLooping();
467 case Toolkit::VideoView::Property::MUTED:
469 value = impl.IsMuted();
472 case Toolkit::VideoView::Property::VOLUME:
477 impl.GetVolume(left, right);
478 map.Insert(VOLUME_LEFT, left);
479 map.Insert(VOLUME_RIGHT, right);
483 case Toolkit::VideoView::Property::UNDERLAY:
485 value = impl.IsUnderlay();
488 case Toolkit::VideoView::Property::PLAY_POSITION:
490 value = impl.GetPlayPosition();
493 case Toolkit::VideoView::Property::DISPLAY_MODE:
495 value = impl.GetDisplayMode();
504 void VideoView::SetDepthIndex(int depthIndex)
508 mTextureRenderer.SetProperty(Renderer::Property::DEPTH_INDEX, depthIndex);
512 void VideoView::OnSceneConnection(int depth)
517 mSiblingOrder = self.GetProperty<int>(Dali::DevelActor::Property::SIBLING_ORDER);
518 DevelActor::ChildOrderChangedSignal(self.GetParent()).Connect(this, &VideoView::OnChildOrderChanged);
519 SetWindowSurfaceTarget();
522 Control::OnSceneConnection(depth);
525 void VideoView::OnSceneDisconnection()
527 Control::OnSceneDisconnection();
530 void VideoView::OnSizeSet(const Vector3& targetSize)
532 if(mIsUnderlay && mSyncMode == Dali::VideoSyncMode::ENABLED)
534 SetFrameRenderCallback();
535 mVideoPlayer.StartSynchronization();
537 Control::OnSizeSet(targetSize);
540 void VideoView::OnChildOrderChanged(Actor actor)
543 int currentSiblingOrder = self.GetProperty<int>(Dali::DevelActor::Property::SIBLING_ORDER);
544 if(currentSiblingOrder != mSiblingOrder)
546 Actor parent = self.GetParent();
551 int numChildren = static_cast<int>(parent.GetChildCount());
552 for(int i = 0; i < numChildren; i++)
554 child = parent.GetChildAt(i);
555 if(!IsVideoView(child))
565 if(i < currentSiblingOrder)
569 else if(i > currentSiblingOrder)
578 Toolkit::VideoView lowerView = Toolkit::VideoView::DownCast(lower);
579 mVideoPlayer.RaiseAbove(GetImpl(lowerView).GetVideoPlayer());
584 Toolkit::VideoView upperView = Toolkit::VideoView::DownCast(upper);
585 mVideoPlayer.LowerBelow(GetImpl(upperView).GetVideoPlayer());
587 mSiblingOrder = currentSiblingOrder;
591 Vector3 VideoView::GetNaturalSize()
594 size.x = mVideoSize.GetWidth();
595 size.y = mVideoSize.GetHeight();
597 if(size.x > 0 && size.y > 0)
599 size.z = std::min(size.x, size.y);
604 return Control::GetNaturalSize();
608 float VideoView::GetHeightForWidth(float width)
610 if(mVideoSize.GetWidth() > 0 && mVideoSize.GetHeight() > 0)
612 return GetHeightForWidthBase(width);
616 return Control::GetHeightForWidthBase(width);
620 float VideoView::GetWidthForHeight(float height)
622 if(mVideoSize.GetWidth() > 0 && mVideoSize.GetHeight() > 0)
624 return GetWidthForHeightBase(height);
628 return Control::GetWidthForHeightBase(height);
632 void VideoView::SetWindowSurfaceTarget()
636 if(!self.GetProperty<bool>(Actor::Property::CONNECTED_TO_SCENE))
638 // When the control is off the stage, it does not have Window.
642 Dali::Window window = DevelWindow::Get(self);
643 window.ResizeSignal().Connect(this, &VideoView::OnWindowResized);
645 int curPos = mVideoPlayer.GetPlayPosition();
649 mVideoPlayer.Pause();
652 mPositionUpdateNotification = self.AddPropertyNotification(Actor::Property::WORLD_POSITION, StepCondition(1.0f, 1.0f));
653 mSizeUpdateNotification = self.AddPropertyNotification(Actor::Property::SIZE, StepCondition(1.0f, 1.0f));
654 mScaleUpdateNotification = self.AddPropertyNotification(Actor::Property::WORLD_SCALE, StepCondition(0.1f, 1.0f));
655 mPositionUpdateNotification.NotifySignal().Connect(this, &VideoView::UpdateDisplayArea);
656 mSizeUpdateNotification.NotifySignal().Connect(this, &VideoView::UpdateDisplayArea);
657 mScaleUpdateNotification.NotifySignal().Connect(this, &VideoView::UpdateDisplayArea);
661 self.RemoveRenderer(mTextureRenderer);
664 // Note VideoPlayer::SetRenderingTarget resets all the options. (e.g. url, mute, looping)
665 mVideoPlayer.SetRenderingTarget(Dali::Adaptor::Get().GetNativeWindowHandle(self));
667 ApplyBackupProperties();
669 if(!mOverlayRenderer)
671 // For underlay rendering mode, video display area have to be transparent.
672 Geometry geometry = VisualFactoryCache::CreateQuadGeometry();
673 Shader shader = Shader::New(SHADER_VIDEO_VIEW_VERT, SHADER_VIDEO_VIEW_FRAG);
674 mOverlayRenderer = Renderer::New(geometry, shader);
675 mOverlayRenderer.SetProperty(Renderer::Property::BLEND_MODE, BlendMode::OFF);
677 Self().AddRenderer(mOverlayRenderer);
686 mVideoPlayer.SetPlayPosition(curPos);
690 void VideoView::SetNativeImageTarget()
692 if(mVideoPlayer.IsVideoTextureSupported() == false)
694 DALI_LOG_ERROR("Platform doesn't support decoded video frame images\n");
701 mVideoPlayer.Pause();
708 self.RemoveRenderer(mOverlayRenderer);
710 mOverlayRenderer.Reset();
713 self.RemovePropertyNotification(mPositionUpdateNotification);
714 self.RemovePropertyNotification(mSizeUpdateNotification);
715 self.RemovePropertyNotification(mScaleUpdateNotification);
717 int curPos = mVideoPlayer.GetPlayPosition();
720 Dali::NativeImageSourcePtr nativeImageSourcePtr = Dali::NativeImageSource::New(source);
721 mNativeTexture = Dali::Texture::New(*nativeImageSourcePtr);
723 if(!mTextureRenderer)
725 Dali::Geometry geometry = VisualFactoryCache::CreateQuadGeometry();
726 Dali::Shader shader = CreateShader();
727 Dali::TextureSet textureSet = Dali::TextureSet::New();
728 textureSet.SetTexture(0u, mNativeTexture);
730 mTextureRenderer = Renderer::New(geometry, shader);
731 mTextureRenderer.SetTextures(textureSet);
735 Dali::TextureSet textureSet = mTextureRenderer.GetTextures();
736 textureSet.SetTexture(0u, mNativeTexture);
738 Self().AddRenderer(mTextureRenderer);
740 // Note VideoPlayer::SetRenderingTarget resets all the options. (e.g. url, mute, looping)
741 mVideoPlayer.SetRenderingTarget(nativeImageSourcePtr);
743 ApplyBackupProperties();
752 mVideoPlayer.SetPlayPosition(curPos);
756 void VideoView::UpdateDisplayArea(Dali::PropertyNotification& source)
758 // If mSyncMode is enabled, Video player's size and poistion is updated in Video player's constraint.
759 // Because video view and player should be work syncronization.
760 if(!mIsUnderlay || mSyncMode == Dali::VideoSyncMode::ENABLED)
767 bool positionUsesAnchorPoint = self.GetProperty(Actor::Property::POSITION_USES_ANCHOR_POINT).Get<bool>();
768 Vector3 actorSize = self.GetCurrentProperty<Vector3>(Actor::Property::SIZE) * self.GetCurrentProperty<Vector3>(Actor::Property::SCALE);
769 Vector3 anchorPointOffSet = actorSize * (positionUsesAnchorPoint ? self.GetCurrentProperty<Vector3>(Actor::Property::ANCHOR_POINT) : AnchorPoint::TOP_LEFT);
771 Vector2 screenPosition = self.GetProperty(Actor::Property::SCREEN_POSITION).Get<Vector2>();
773 mDisplayArea.x = screenPosition.x - anchorPointOffSet.x;
774 mDisplayArea.y = screenPosition.y - anchorPointOffSet.y;
775 mDisplayArea.width = actorSize.x;
776 mDisplayArea.height = actorSize.y;
778 mVideoPlayer.SetDisplayArea(mDisplayArea);
781 void VideoView::SetUnderlay(bool set)
783 if(set != mIsUnderlay)
789 SetWindowSurfaceTarget();
793 SetNativeImageTarget();
800 bool VideoView::IsUnderlay()
805 void VideoView::SetSWCodec(bool on)
807 // If setting SW or HW type is failed , video-view shows video by default codec type.
808 // The default codec type is selected by platform.
811 mVideoPlayer.SetCodecType(Dali::VideoPlayerPlugin::CodecType::SW);
815 mVideoPlayer.SetCodecType(Dali::VideoPlayerPlugin::CodecType::HW);
819 int VideoView::GetPlayPosition()
821 return mVideoPlayer.GetPlayPosition();
824 void VideoView::SetPlayPosition(int pos)
826 mVideoPlayer.SetPlayPosition(pos);
829 void VideoView::SetDisplayMode(int mode)
831 mVideoPlayer.SetDisplayMode(static_cast<Dali::VideoPlayerPlugin::DisplayMode::Type>(mode));
834 int VideoView::GetDisplayMode() const
836 return static_cast<int>(mVideoPlayer.GetDisplayMode());
839 Any VideoView::GetMediaPlayer()
841 return mVideoPlayer.GetMediaPlayer();
844 void VideoView::OnAnimationFinished(Animation& animation)
847 SetFrameRenderCallback();
850 void VideoView::OnWindowResized(Dali::Window winHandle, Dali::Window::WindowSize size)
852 Dali::VideoPlayerPlugin::DisplayRotation videoAngle = mVideoPlayer.GetDisplayRotation();
853 int windowAngle = (DevelWindow::GetPhysicalOrientation(winHandle) / 90);
855 if(windowAngle != videoAngle)
857 mVideoPlayer.SetDisplayRotation(static_cast<Dali::VideoPlayerPlugin::DisplayRotation>(windowAngle));
861 void VideoView::PlayAnimation(Dali::Animation animation)
863 if(mIsUnderlay && mSyncMode == Dali::VideoSyncMode::ENABLED)
865 mVideoPlayer.StartSynchronization();
866 animation.FinishedSignal().Connect(this, &VideoView::OnAnimationFinished);
871 Dali::Shader VideoView::CreateShader()
873 std::string fragmentShader;
874 std::string vertexShader;
875 std::string customFragmentShader;
876 bool checkShader = false;
878 if(!mEffectPropertyMap.Empty())
880 Property::Value* vertexShaderValue = mEffectPropertyMap.Find(CUSTOM_VERTEX_SHADER);
881 if(vertexShaderValue)
883 checkShader = GetStringFromProperty(*vertexShaderValue, vertexShader);
886 if(!vertexShaderValue || !checkShader)
888 vertexShader = SHADER_VIDEO_VIEW_TEXTURE_VERT.data();
891 Property::Value* fragmentShaderValue = mEffectPropertyMap.Find(CUSTOM_FRAGMENT_SHADER);
892 if(fragmentShaderValue)
894 checkShader = GetStringFromProperty(*fragmentShaderValue, customFragmentShader);
898 fragmentShader = customFragmentShader;
902 if(!fragmentShaderValue || !checkShader)
904 fragmentShader = SHADER_VIDEO_VIEW_TEXTURE_FRAG.data();
905 DevelTexture::ApplyNativeFragmentShader(mNativeTexture, fragmentShader);
910 vertexShader = SHADER_VIDEO_VIEW_TEXTURE_VERT.data();
911 fragmentShader = SHADER_VIDEO_VIEW_TEXTURE_FRAG.data();
912 DevelTexture::ApplyNativeFragmentShader(mNativeTexture, fragmentShader);
915 return Dali::Shader::New(vertexShader, fragmentShader);
918 bool VideoView::GetStringFromProperty(const Dali::Property::Value& value, std::string& output)
920 bool extracted = false;
921 if(value.Get(output))
929 void VideoView::ApplyBackupProperties()
931 Property::Map::SizeType pos = 0;
932 Property::Map::SizeType count = mPropertyBackup.Count();
934 for(; pos < count; pos++)
936 KeyValuePair property = mPropertyBackup.GetKeyValue(pos);
938 SetPropertyInternal(property.first.indexKey, property.second);
942 void VideoView::FrameRenderCallback(int frameID)
945 if(frameID == mFrameID)
947 mVideoPlayer.FinishSynchronization();
952 void VideoView::SetFrameRenderCallback()
955 DevelWindow::AddFrameRenderedCallback(DevelWindow::Get(Self()),
956 std::unique_ptr<CallbackBase>(MakeCallback(this, &VideoView::FrameRenderCallback)),
960 bool VideoView::IsVideoView(Actor actor) const
962 // Check whether the actor is a VideoView
963 bool isVideoView = false;
967 Property::Index propertyIsVideoView = actor.GetPropertyIndex(IS_VIDEO_VIEW_PROPERTY_NAME);
968 if(propertyIsVideoView != Property::INVALID_INDEX)
970 isVideoView = actor.GetProperty<bool>(propertyIsVideoView);
977 VideoPlayer VideoView::GetVideoPlayer()
982 } // namespace Internal
984 } // namespace Toolkit