playMaker

Author Topic: Video player get a url video's length[SOLVED]  (Read 4245 times)

Lunahalo

  • Playmaker Newbie
  • *
  • Posts: 3
Video player get a url video's length[SOLVED]
« on: March 07, 2018, 12:05:39 PM »
I've worked on the video player element and created a track bar using a set up in the attached image.  this gave me an easy way to give the user standard controls of the video.

it works when it reference a video clip contained within the application but when i tried to switch it over to reference a url it no longer works.  the action that stops functioning is "video clip get length" and i haven't been able to fine an action that gets me this number for a url video.  i could just hard code the length of each video but who the hell wants to do that?

ps i've also tried using "video player get frame count" and that act really weird, i've attached images of what it looks like before and after i hit play.
« Last Edit: March 08, 2018, 07:34:11 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Video player get a url video's length
« Reply #1 on: March 08, 2018, 07:33:59 AM »
Hi,

 d'oh!, I fixed the action, please update the from the ecosystem.

VideoPlayerGetAudioTrackCount
VideoPlayerGetControlledAudioTrackMaxCount
VideoPlayerGetCurrentFrameIndex
VideoPlayerGetFrameRate

 Bye,

 Jean

Gaz

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Video player get a url video's length[SOLVED]
« Reply #2 on: October 10, 2018, 06:24:46 AM »
Hi Jean,

I'm having the same problem, I've updated the "video clip get length" action from the eco system, and it's still not getting a length.

It was working fine when using "Video Clip" but using a URL is returning 0 on the clip (the clip has loaded and is playing fine).

Edit:
Turns out that "Get video clip length" won't work for URL, and Jean updated the script "Video Player Get Frame Count"

For a URL video clip, to work out the length I did the following:
« Last Edit: October 10, 2018, 08:25:02 AM by Gaz »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Video player get a url video's length[SOLVED]
« Reply #3 on: October 11, 2018, 05:04:17 AM »
Hi,

 cool, thanks for the tip! maybe you should report that to Unity, seems odd that length is missing when coming from a url

 Bye,

 Jean