Sie sind nicht angemeldet.

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

1

Sonntag, 24. Oktober 2021, 16:00

Video controls in popup videos

I have tried to get controls for videos using the new video-player.xml
They do appear using this addition to the xml.

However they do not work. The only function you get is a visible view of the length of the video and how far it has played.
You can not scroll it or use any of the other controls.

<action name="videoplayer_plugin_ready">
if(layer[videoplayer_plugin],
set(events[videoplayer_events].onresize, videoplayer_plugin_resize() );
set(layer[videoplayer_plugin].pausedonstart,false);
set(layer[videoplayer_plugin].html5controls,true);

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

2

Sonntag, 24. Oktober 2021, 17:36

Ok searcning the forum I can see that indexofrefraction already asked about this in 2017 and got no answer.

https://krpano.com/forum/wbb/index.php?p…&threadID=14788

The main problem for me is that the viewer has no clue of how long the video is without controls.
In a way the "no function" controls does this job however it looks unprofessional that the visible controls do not work.

ramirox3

Fortgeschrittener

Beiträge: 354

Wohnort: La Ceja, Colombia

Beruf: photographer

  • Nachricht senden

3

Sonntag, 24. Oktober 2021, 23:27

with Add hotspot plugin
»ramirox3« hat folgendes Bild angehängt:
  • Pantallazo 24-10-2021 16.22.49.jpg

HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

4

Montag, 25. Oktober 2021, 02:30

Problem is solved.

Adding the line to the first action solved it. Now all functions are working.
However you have to remove the line with the togglepause option
and instead ad it to your videospot onclick. If not it will not work.
<layer name="videospot1"
url="images/video.png"
scale="0.15"
zoom="false"

x="0" y="120" align="top"
pausedonstart="false"

onclick="looktohotspot(get(name),90);togglepause(); videoplayer_open('video/kunst.mp4', 'video/kunst.jpg', 0.5);"
/>

<action name="videoplayer_open">
addlayer(videoplayer_plugin);
set(layer[videoplayer_plugin].parent, layer[videoplayer_bg]);

set(layer[videoplayer_plugin].align, center);
set(layer[videoplayer_plugin].loop, true);
set(layer[videoplayer_plugin].html5controls,true);

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »HansNyb« (25. Oktober 2021, 11:43)


HansNyb

Profi

  • »HansNyb« ist der Autor dieses Themas

Beiträge: 1 063

Wohnort: Denmark

Beruf: Photographer

  • Nachricht senden

5

Montag, 25. Oktober 2021, 15:40

Unfotunatelly solving one problem get you another.
The controlbar works perfect on ipad and iphone but on ipad you now have fullscreen option for the virtual tour.
Finally after 10 years we have it. And if you are in Fullscreen and use the video controlbar fullscreen option you at locked in fullscreen. Clicking on the video does not give me back the controlbar. You have to get out with the Homebutton.