Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Douglas Rhiner

Fortgeschrittener

  • »Douglas Rhiner« ist der Autor dieses Themas

Beiträge: 141

Wohnort: San Anselmo, CA

Beruf: Code-Slave

  • Nachricht senden

1

Sonntag, 15. August 2021, 20:03

Windows 360video seek(100%) issue

Got a fun one, I think.

Consider a simple action that fast-forwards a 360video to 100% via .seek(100%)

<action name="gotoend">
callwhen(plugin[videoplayer].loaded,
trace('goto end');
plugin[videoplayer].seek(100%);
);
</action>


Using OS X, under any browser, this fires off seamlessly, the trace traces & the seek seeks to 100%.
Using Windows 10 Pro, under any browser, the trace traces BUT the seek does not seek. It stays at the current position ( beginning / 0% ), with no error being thrown.


Anyone else notice this?

2

Sonntag, 15. August 2021, 20:13

plugin[videoplayer].loaded does not say the video is ready, only that the plugin was loaded.

i'd try this :

set(plugin[videoplayer].onvideoready,"trace('ready, goto end');plugin[videoplayer].seek(100%);");

Douglas Rhiner

Fortgeschrittener

  • »Douglas Rhiner« ist der Autor dieses Themas

Beiträge: 141

Wohnort: San Anselmo, CA

Beruf: Code-Slave

  • Nachricht senden

3

Sonntag, 15. August 2021, 20:47

Sadly to say, I've already gone down that path. More than anything, the plugin[videoplayer].loaded is more of a fault-catch. Plus the action can't be called up-stream until the video is ready, which is what it needs to do, allow the user to get to the last frame of the 360video at-will, once it is ready.

4

Sonntag, 15. August 2021, 21:09

what do you mean by "the action can't be called up-stream " ?
its logical, that the player cant seek until it has the video ready.
onvideoready is an event, you set it beforehand and it will fire by itself when the video is loaded / ready.

Douglas Rhiner

Fortgeschrittener

  • »Douglas Rhiner« ist der Autor dieses Themas

Beiträge: 141

Wohnort: San Anselmo, CA

Beruf: Code-Slave

  • Nachricht senden

5

Sonntag, 15. August 2021, 23:47

I mean the action cant be called until plugin[videoplayer].isvideoready == true, in the logic train. It is just not represented in this example.

What gets me here is that it works just fine on OS X but not on Windows.

6

Montag, 16. August 2021, 09:34

maybe you should set up an online example...

Douglas Rhiner

Fortgeschrittener

  • »Douglas Rhiner« ist der Autor dieses Themas

Beiträge: 141

Wohnort: San Anselmo, CA

Beruf: Code-Slave

  • Nachricht senden

7

Montag, 16. August 2021, 20:34

Ok, got a test scenario set up:

https://test.xplorit.com/viewer/krpano.h…o/videopano.xml

I have modified the videopano example provided with the viewer.

  • The VR button has been replaced with the Fast-Froward icon.
  • OnClick has been modified to: onclick="plugin[video].seek(100%);"

To check this out, go to the link, and then click the FastForward icon, where the VR icon would normally be in this example.
On Windows you will see that the progress bar advances to the end, but the video stays at the beginning.

I have tried this under OS X and Windows 10 on multiple browsers.

The error still occurs on Windows in all browsers, but behaves as-expected on OS X

*confused*

8

Montag, 16. August 2021, 22:38

might be also a question of video formats and codecs...
i'm not a pro here but for my videos i always provide mp4+webm and it matters what settings you use for them.

Douglas Rhiner

Fortgeschrittener

  • »Douglas Rhiner« ist der Autor dieses Themas

Beiträge: 141

Wohnort: San Anselmo, CA

Beruf: Code-Slave

  • Nachricht senden

9

Montag, 16. August 2021, 23:24

All the video we use is mp4 with fairly standard encoding params.

Since the link is a simple mod of the example provided w/KRPano our mp4 encoding is not a factor here, which what I was thinking at first.

10

Dienstag, 17. August 2021, 16:05

hmm.. tested and i dont see a difference on firefox mac or windows here

setting 100% triggers the player to immediately jump to 0%, no matter playing or paused.
most likely setting 100% probably works if loop=false and setting 99.9% probably works if not playing

you could do loop=false and onvideoend check if playing, then loop. otherwise not.

Dieser Beitrag wurde bereits 6 mal editiert, zuletzt von »indexofrefraction« (17. August 2021, 17:48)