Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: Mike45 on June 07, 2019, 06:37:20 AM
-
Hello, how to read a video clip in Webgl ?
-
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
-
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 :
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 ?
-
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"
-
Thank you, i will try it.