By rthirucs
on Mon, 07/27/2015 - 15:07
Hi,
I wanted to create an app which will play video from URL on recognition of an Image Target which is in Cloud. I imported the Cloud Recognition Prefab and VideoPlayback Prefab into the project.
I created the ImageTarget and add the Video under it. I have also modified the onSearchResult Method in CloudRecoEventHandler to play the video. Following is the code which I modified:
12345678910 | var dict = targetSearchResult.MetaData; VideoPlaybackBehaviour video = ImageTargetTemplate.gameObject.GetComponentInChildren<VideoPlaybackBehaviour>(); if (video != null ) { video.VideoPlayer.Unload(); if (video.VideoPlayer.Load(dict, VideoPlayerHelper.MediaType.ON_TEXTURE, false , 0) == false ) { video.VideoPlayer.Play( false , video.VideoPlayer.GetCurrentPosition()); } } |
Hello.Have you made some
Hello.
Have you made some advance with this trouble?
I'm making the same thing (cloud + video) and I'm facing the same problem.