I did a test and the value of the "ispaused" attribute does not change when using the "togglepause" action
In the test I output this attribute to the console:
trace(ispaused=, hotspot[videoplayer].ispaused);
ispaused
-
-
This is an example
This is the code from the example:Code<hotspot name="videoplayer" url.html5="%FIRSTXML%/plugins/videoplayer.js" videourl="hesaudio.mp3" /> <hotspot name="hs" url="%FIRSTXML%/Audio.png" onclick="hotspot[videoplayer].togglepause(); trace(ispaused=, hotspot[videoplayer].ispaused);" />
When you click on the hotspot, the ispaused (true/false) parameter should change, but this does not happen. What Could be the problem? -
Why use a video plug-in to play music?
Why not use audio plug-ins? ? -
Why use a video plug-in to play music?
Why not use audio plug-ins? ?so you can track the time and make a timeline. But this is not relevant to the
"ispaused" question - does not change the value when there is a stop or playback -
This audio progress bar?
2021
Buy some plugins you develop
These are in my purchase plan -
This audio progress bar?
2021
Buy some plugins you develop
These are in my purchase planThis is an interactive indicator and can be moved to the desired time if necessary
-
-
Hi indexofrefraction, thank you for the answer, but I checked and it does not work even if you set a delay of 1 sec. I updated in the example
This worked well until version 1.19-pr16 -
hm yes.. that seems strange...
i also use the videoplayer but here this does not happen. i just checked. the delayedcall was not needed
your krpano is 1.20.7 and your player from 1.20.8, maybe that is the problem.
or klaus has an idea, but right now he is celebrating christmas -
I installed version 1.20.9 and the player from that version.
This does not work when playing mp3. But it works when playing a video file.
Previously, they also worked when playing audio files -
It is not recommended to use the outdated version,
The outdated version has BUG,
And most of the users are using the latest version -
I'm sorry, but I couldn't solve the question in the test http://novosibpano.ru/t2/ still ispaused always true
Code<hotspot name="hs" url="Audio.png" onclick="hotspot[videoplayer].togglepause(); trace(ispaused=, hotspot[videoplayer].ispaused);" /> <hotspot name="videoplayer" url="videoplayer.js" videourl="hesaudio.mp3" volume="0.5"/>
-
Hi,
i confirm.
in 2015 i made this plugin, audio player, with playlist, using the video player.
It still works fine on 1.19.pr5 (offline)
Unfortunately today, 1.20.9, the ispaused always gives true.. with audio only indeed.
I hope Klaus can sort this out.Tuur
-
Yes, this used to work with audio files and videos. Now it works with video files correctly. This problem is only with audio files, but it may be correct, because it is still a video player.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!