Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mike45 on June 07, 2019, 06:37:20 AM

Title: Read VideoClip in WebGL
Post by: Mike45 on June 07, 2019, 06:37:20 AM
Hello, how to read a video clip in Webgl ?
Title: Re: Read VideoClip in WebGL
Post by: jeanfabre on June 07, 2019, 08:46:11 AM
Hi,

 Can you be more precise with what you mean by read?

Most video players supports webgl including the Unity videoplayer, so maybe it's only a matter of setup?

Bye,

 Jean
Title: Re: Read VideoClip in WebGL
Post by: Mike45 on June 07, 2019, 09:16:33 AM
Yes i want to know how to make it work, I tried a videoclip with unity video player in webGL but the video doesn't play.
I found this :
Quote
In editor create a folder with the name StreamingAssets and put your video files into that folder. The video format that I used is mp4 . Create a VideoPlayer component and attach it to a gameobject. Reference that component in a script and use the following command

videoPlayer.url = System.IO.Path.Combine (Application.streamingAssetsPath,"myFile.mp4");

you can use other videoplayer commands like Video.Play(); to play the video.

Is it possible to do this with playmaker ?
Title: Re: Read VideoClip in WebGL
Post by: djaydino on June 08, 2019, 08:10:21 AM
Hi.
Yes you can!

You can find the action package on the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)

search for "video player full"
Title: Re: Read VideoClip in WebGL
Post by: Mike45 on June 08, 2019, 08:12:48 AM
Thank you, i will try it.