Audio file - playing progress bar

Q&A about the latest versions
Post Reply
sparrow
Posts: 67
Joined: Thu Aug 04, 2016 12:44 pm

Is there a way for a Pano2VR to understand how long an audio file is?

I have a point hotspot which triggers an audio file.
I'd like to create a progress bar to display how far into the audio track a user is.

Image below. Just ignore the actual numbers
https://www.evernote.com/l/ANJZOP1uyW1N ... gFeQoavcFc
User avatar
Hopki
Gnome
Posts: 13021
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Use the seek bar, it does not show numbers but does give a visible indication of length of media.
Please see: https://ggnome.com/doc/props-seekbar/
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
sparrow
Posts: 67
Joined: Thu Aug 04, 2016 12:44 pm

Thanks Hopki. That's brilliant and exactly what I need. :D
Vitaly
Posts: 36
Joined: Thu Oct 06, 2011 9:12 pm
Location: Ukraine
Contact:

Hi Hopki!
Hopki wrote: Wed Jun 17, 2020 11:07 pm Hi,
Use the seek bar, it does not show numbers but does give a visible indication of length of media.
Please see: https://ggnome.com/doc/props-seekbar/
Regards,
Is there the way to get position (time in minutes and seconds or only secons) of played video when it closed by user?
For example: Video duration is 5 minutes. User played first 3 minutes and closed video. I would like to send information about this to my analytics system (Matomo, system is similar to GA) via
Go to URL: javascript:_paq.push(['trackEvent', 'Video is stopped at ', SomeVideoPositionVariable ]);

Is this possible to get "SomeVideoPositionVariable" somehow?
Seekbar has ACTION "Media Ended", but nothing happens on this event.
User avatar
Hopki
Gnome
Posts: 13021
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Have a look at this project.
You can extract the data from the variable.
Regards,
Attachments
timeCode.zip
(3.14 MiB) Downloaded 128 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Vitaly
Posts: 36
Joined: Thu Oct 06, 2011 9:12 pm
Location: Ukraine
Contact:

Hi Hopki!
Thank you very much. Your example project is exactly what I need!
User avatar
Taka
Posts: 51
Joined: Fri May 28, 2021 3:15 pm
Location: Tokyo

Hi.
Thank you all as always.

The data Hopki attached was great!
If I want to change the number of decimal places, where should I change (I want to change it to 2 digits)?

My project places 360 degree panoramic video as a node instead of embedding it.
I would appreciate it if you could tell me how to create the time code of the seek bar in such a case.

I pray for Vitaly safety.
Best regards,
Taka
Post Reply