playMaker

Author Topic: Read VideoClip in WebGL  (Read 2975 times)

Mike45

  • Playmaker Newbie
  • *
  • Posts: 9
Read VideoClip in WebGL
« on: June 07, 2019, 06:37:20 AM »
Hello, how to read a video clip in Webgl ?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Read VideoClip in WebGL
« Reply #1 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

Mike45

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Read VideoClip in WebGL
« Reply #2 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 ?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Read VideoClip in WebGL
« Reply #3 on: June 08, 2019, 08:10:21 AM »
Hi.
Yes you can!

You can find the action package on the Ecosystem

search for "video player full"

Mike45

  • Playmaker Newbie
  • *
  • Posts: 9
Re: Read VideoClip in WebGL
« Reply #4 on: June 08, 2019, 08:12:48 AM »
Thank you, i will try it.