You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

martyhr

Intermediate

  • "martyhr" started this thread

Posts: 333

Location: CZ

  • Send private message

1

Thursday, November 2nd 2017, 12:02pm

Controls for video?

Any working example for controls in video plugin - distorted video preferably?

https://krpano.com/plugins/videoplayer/#html5controls

Marty

Sergey74

Trainee

Posts: 127

Location: Russia, Chelyabinsk

Occupation: professional noob

  • Send private message

2

Thursday, November 2nd 2017, 7:05pm

Here are examples
https://krpano.com/video/
translation difficulties *huh*

3

Thursday, November 2nd 2017, 8:43pm

Hi,

just add html5controls="true" and for hotspots also renderer="css3d" to the videoplayer plugin.

Here an example:
https://krpano.com/examples/119/krpano.h….renderer=css3d

Best regards,
Klaus

martyhr

Intermediate

  • "martyhr" started this thread

Posts: 333

Location: CZ

  • Send private message

4

Thursday, November 2nd 2017, 9:41pm

Hi,

just add html5controls="true" and for hotspots also renderer="css3d" to the videoplayer plugin.

Here an example:
https://krpano.com/examples/119/krpano.h….renderer=css3d

Best regards,
Klaus
Thanks Klaus,
seeking button does not work for me, sound control does not work and fullscreen button also does not work. Testing onW7/64bit and FF 56.0.2.
Even worse in Chrome :-(

I can only start and stop with these controls. Not enough. I need seeking feature :-(

martyhr

Intermediate

  • "martyhr" started this thread

Posts: 333

Location: CZ

  • Send private message

5

Thursday, November 2nd 2017, 10:17pm

Hi,

just add html5controls="true" and for hotspots also renderer="css3d" to the videoplayer plugin.

Here an example:
https://krpano.com/examples/119/krpano.h….renderer=css3d

Best regards,
Klaus
There is no "controls", there is only an "indicator" if video plays or not.
Any mouse click on "controls" does not affect , every click just plays and pauses the video.
Look:
https://youtu.be/2U_nGdXbAak


How to force the "controls" to behave like controls??

Mael B.

Trainee

Posts: 135

Location: France, Montpellier

  • Send private message

6

Wednesday, November 21st 2018, 11:00am

Any some news from this lack of control ?

7

Wednesday, November 21st 2018, 11:40am

Any some news from this lack of control ?


Hello,
I implemented the control panel, added a timeline and a slider for which you can move the video, but it is implemented in the plugin
Example here , click play
The panel also opens to play audio files.

This post has been edited 1 times, last edit by "San7" (Nov 21st 2018, 11:54am)


Mael B.

Trainee

Posts: 135

Location: France, Montpellier

  • Send private message

8

Wednesday, November 21st 2018, 12:02pm

Any some news from this lack of control ?


Hello,
I implemented the control panel, added a timeline and a slider for which you can move the video, but it is implemented in the plugin
Example here , click play
The panel also opens to play audio files.
Nice implementation *smile*
Actually, I asked the question to know if i need to to the same for my own plugin. (i'm currently working to add video support...)

9

Wednesday, November 21st 2018, 12:14pm

Do you want to play a video in the photo gallery?

Mael B.

Trainee

Posts: 135

Location: France, Montpellier

  • Send private message

10

Wednesday, November 21st 2018, 11:56pm

yes exactly ;-) (as an improvement of my photo gallery plugin)

11

Thursday, November 22nd 2018, 9:57am

video player control panel

Klaus has an example with a control panel, I did it a little in my own way, thanks to him

I want to share this with forum users and I hope this will be useful to someone. The code is open.
Download the archive and place it in the root folder.
connect

Source code

1
<include url="video_player/open_video.xml" /> 

Source code

1
videoplayer_open(%CURRENTXML%/video/video.mp4,%CURRENTXML%/video/video.webm,%CURRENTXML%/video/video-poster.jpg,0.5,0.9,0.9,true);


1 - video ( %CURRENTXML%/video/video.mp4).
2 - alternative video ( %CURRENTXML%/video/video.webm).
3 - poster (%CURRENTXML%/video/video-poster.jpg).
4 - volume ( 0.5).
5 - open video width (1 is the width of the screen, 0.5 is half the width of the screen) (0.9).
6 - open video height ( 0.9 ).
7 - loop video (true).
San7 has attached the following file:
  • video_player.rar (31.06 kB - 30 times downloaded - latest: Sep 10th 2019, 11:34am)

This post has been edited 1 times, last edit by "San7" (Nov 23rd 2018, 4:55am)


Mael B.

Trainee

Posts: 135

Location: France, Montpellier

  • Send private message

12

Thursday, November 22nd 2018, 11:28am

Thanks a lot !! *thumbup*

I totally forget this example from Klaus... it will be a good basics for my use *smile*

Reggie

Trainee

Posts: 90

Location: Seymour, TN US

Occupation: Virtual Tour Photographer

  • Send private message

13

Monday, December 10th 2018, 2:24pm

Videopano

videoplayer_open(%CURRENTXML%/video/video.mp4,%CURRENTXML%/video/video.webm,%CURRENTXML%/video/video-poster.jpg,0.5,0.9,0.9,true);
San,

Thank you for sharing this. It is a very useful tool! Is there a way to play a panovideo (360 video) inside of the viewer? When I try, it plays as the 360 video flat. I noticed in your example earlier in the string that the Klaus panovideo example was playing in the TV on the wall. But it, too, was playing only as a flat video with no interactivity. Thank you again - Reggie

14

Tuesday, December 11th 2018, 5:30am

Hello,
Maybe I did not quite understand, but above there is an example from Klaus with video playback 360.
Yes, the video on the wall in the example without the control panel.

15

Tuesday, August 13th 2019, 5:11pm

How to Realize Hot Pop Video and Close Other Sound Effects in Scene

This post has been edited 1 times, last edit by "uktoo" (Aug 15th 2019, 3:17am)