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.

1

Tuesday, April 19th 2016, 5:05am

ADD close/exit button icon

Hello I have the normal videoplayer.xml file and I need :

1)Add a close button in the corner of the pop up

2)Add epigraph that explain the video.

Can you help me?

Thansk

Timescale

Trainee

Posts: 120

Location: Netherlands

Occupation: Archaeologist, Timescale R&D

  • Send private message

2

Tuesday, April 19th 2016, 1:42pm

Layers

If you take a look at the video-player.xml code you can see that it's build up from layers. The background layer which also has the close function is the parent of the video player. You could ad these features you want to the videoplayer_bg layer in a similar fashion. A layer for the button and one for the text.

The Q&D method is to implement it in the video-player.xml itself. I think the nice way to do it, is to make your own video actions that append and extend the videoplayer which will involve a bit more code, but will make upgrading a bit easier perhaps.

3

Thursday, April 21st 2016, 6:23pm

Thanks!, I added :


set(layer[videoplayer_icon].parent, layer[videoplayer_plugin]);
set(layer[videoplayer_icon].url,%SWFPATH%/skin/paso0.png);
set(layer[videoplayer_icon].align,righttop);
set(layer[videoplayer_icon].x,-35);
set(layer[videoplayer_icon].y,-30);
set(layer[videoplayer_icon].onclick, videoplayer_close() );

And it's fine. Now I need a "lightbox" style, I need to learn to do it.

Thanks again