Log in or register to post comments

Play remote video on Ios BUT with Unity plugin

October 9, 2015 - 12:14am #1

Hi all,

Following this thread https://developer.vuforia.com/forum/ios/play-remote-video-image-use-calayer-sample-code some suggestions to do the same thing for Unity plugin?

I have the script in attachment in Unity included in Vuforia Playback video sample and I think is here I must modify, there are these two methods:

[DllImport("__Internal")]
private static extern bool videoPlayerIsPlayableOnTextureIOS(IntPtr videoPlayerPtr);
[DllImport("__Internal")]
private static extern bool videoPlayerIsPlayableFullscreenIOS(IntPtr videoPlayerPtr);

I think are iOS native but I don't understand how can modify with other methods.

I read in the thread about AVAssetReader to substitute with AVPlayerItemVideoOutput because the first not support a remote file but I totally ignore how can do this.

Thanks

 

AttachmentSize
Package icon VideoPlayerHelper.zip2.98 KB

Play remote video on Ios BUT with Unity plugin

October 9, 2015 - 7:43am #2

After other search I saw in Plugins/iOS folder in my Unity project the VideoPlayerHelper.m.txt that contains many methods, in particular the playVideo method, I think is here where I must modify but I don't know this language, please any help is appreciated.

Thanks

 

AttachmentSize
Binary Data bytes
Package icon VideoPlayerWrapper.mm_.zip12.7 KB
Log in or register to post comments