Log in or register to post comments

Unity IOS Play a downloaded video on a texture

September 18, 2015 - 3:46am #4

Hello,

I have started from Unity video playback example where (on IOS) a demo video is correctly played on a texture.

Video is stored into streaming assets folder.

Everything worked fine.

 

Then I have tried to download a video into a local IOS folder and play it on a texture.

Unfortunately I can't use Streaming Assets folder I can't write on it.

I have found a way to download file into Application.persistentDataPath.

It worked.

 

Then to Video Prefab path I wrote: "file://" +  path.Combine(Application.persistentDataPath, filename);

(Note: without "file://" Video Prefab was not able to play downloaded video)

With  "file://" +  path.Combine(Application.persistentDataPath, filename)

Video correctly plays but always fullscreen.

 

When I log "isPlayableOnTexture" property into VideoPlaybackBehaviour class

it is false even if file is local (downloaded) while it is true for demo video

into Streaming assets folder.

 

I supposed that if video file was local I could be able to play it on a texture.

- Is it possible what I am trying to do?

- Or only videos that are included into app have this feature?

 

Thank you.

 

Davide

 

 

 

 

 

Unity IOS Play a downloaded video on a texture

September 18, 2015 - 11:39am #3

Unity IOS Play a downloaded video on a texture

September 23, 2015 - 3:06am #2

Hello,

I read link you reported but sorry I could not found answer to my question.

As I understood it refers to play files from Internet and I found it is not possible

to play into a texture while it is possible to play it fullscreen but there are some 

external packages that allow this.

 

My question is, if file is downloaded (so local into device) and it is into PersistentData folder,

is there a way to play it on a texture?

Probably the same external packages can manage this feature?

 

Please help me to understand better this issue.

 

Thanks in advance.

 

Davide

Unity IOS Play a downloaded video on a texture

September 30, 2015 - 11:05am #1

There are other threads in the site touching this subject, for example:

https://developer.vuforia.com/forum/unity-3-extension-technical-discussion/video-playback-issue-unityandroid

Have you searched for them? Have you tried them?

Log in or register to post comments