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.

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 158

Location: London

Occupation: Photographer

  • Send private message

1

Tuesday, June 9th 2009, 2:29pm

Compass and video question :)

Hi,

I am working through some of the GREAT new examples and I seem to be having some trouble with the new compass + code. I can make it display but when it does nothing else in my gui shows, also the panorama stays as a preview image and the tiles do not load. I have prepared a test for you http://www.panoraks.co.uk/001-uganda/ in the the test xml there is also a video, but it does not show, this demonstrates the problem I am having.

main xml is here http://www.panoraks.co.uk/001-uganda/test_1.xml and compass xml is here http://www.panoraks.co.uk/001-uganda/compass.xml

Many thanks in advance for any help or advice, I have been playing around with this for a few days, and just cant put my finger on why. I think it has something to do with the code in compass.xml, so have tried lots of other ways of getting the compass to appear in a tour, unssuccesfully which meant having to keep the bulk of the code as like example which is where I am having problems.

Also I am really grateful for the addition of video compatibility, I would like to show video in a text box. Is it possible to implement the video into the html_data using the textfield.swf, or should I make the textfield blank and have the video play over the top with perhaps a delay on it, so it appears to be in text box ?

Many thanks and best wishes,

tom

2

Wednesday, June 10th 2009, 12:14am

Hi,

the problem here is, in the the compass.xml:
http://www.panoraks.co.uk/001-uganda/compass.xml

a new <scene> is loaded, and there is no pano is this scene:

Source code

1
2
3
4
<krpano onstart="action(onstart);">
<action name="onstart">
		loadscene(scene1, null, MERGE);	
	</action>


this causes the problem,
the preview pano should be removed normally in this case, this seems to a bug,
but thats not a common situation,

try removing the <scene> tags the loading scene calls/events,


Quoted

Also I am really grateful for the addition of video compatibility, I would like to show video in a text box. Is it possible to implement the video into the html_data using the textfield.swf, or should I make the textfield blank and have the video play over the top with perhaps a delay on it, so it appears to be in text box ?
the new videoplayer plugin is not designed to work inside a textfield,
but it should be possible to leave the area in the textfield blank, and
place the videoplayer plugin inside it (e.g. with the "parent" usage)

best regards,
Klaus

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 158

Location: London

Occupation: Photographer

  • Send private message

3

Wednesday, June 10th 2009, 4:06am

Hi Klaus,

Doh ! many thanks - I was sure i tried that, but getting rid of the scene tags worked - nice one - thanks *g*

I wonder if you would be able to look into the video/text field for me - I have been trying since your message till 02:47am, and just cant get it right. I nearly have it here http://www.panoraks.co.uk/001-uganda/ but the video just will not appear above the textfield, zorder does not work as the video has the same order as the buttons, which you will notice do appear above the textfield.

I looked into the parent solution, did a quick search on the forum and this is the only post it found. So I looked at the parentchild example and have made this example http://www.panoraks.co.uk/001-uganda/index3.html the xml is here http://www.panoraks.co.uk/001-uganda/test_3.xml and you will notice I have not got it working, but have kind of replicated the parentchild example, but cant figure out how to apply the parent to the action "play_video" I tried set(hotspot[videospot].parent, null, info_video); but no joy *confused*

So I'd be mega grateful if you have time to advise me what to try next. Basically the idea is to have a hotspot that when clicked brings up the video with an attractive text box behind it.

Many thanks and best wishes,

tom *sleeping*

4

Wednesday, June 10th 2009, 8:56am

Hi,

in this case the videoplugin should be included as <plugin>,

e.g. instead of:

Source code

1
<hotspot name="videospot" ...

this:

Source code

1
<plugin name="videospot" ...


and then set in the "parent" attribute of this plugin to "info_video"

Source code

1
2
3
4
5
6
<plugin name="videospot" 
        ...
        parent="info_video"
        align="center"
        ...
        />

best regards,
Klaus

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 158

Location: London

Occupation: Photographer

  • Send private message

5

Wednesday, June 10th 2009, 11:54am

WO HOO ! Thanks Klaus - thats brilliant - It works so I am mega grateful to you - thanks so much for your help - I now have the tools for a big tour that I am doing :)

Thank you, thank you, thanks :)

tom

6

Sunday, May 2nd 2010, 1:46am

Compass and video question :)

Hi tom..

you have a example of code to see "video inside of textfield" ?

thanks!!

tommo77funk

Intermediate

  • "tommo77funk" started this thread

Posts: 158

Location: London

Occupation: Photographer

  • Send private message

7

Monday, May 3rd 2010, 12:29pm

Hi Mnovoa,

Sorry I must of deleted a folder when I used the site for something else, please try http://www.panoraks.co.uk/001-uganda/ again, and look at xml.

Its not perfect as I abandoned doing it ( i found somewhere to embed the video instead) However I believe there to be better ways to what you want now. 1. Would be to make a png overlay like simpleviewer gallery, and display video on top and also use freezeview, to halt the movement of the panorama (it can have an effect on the movie, if the users move the pano) . 2. Would be to display the video out of the panorama, which I believe to be possible now.

I'm sorry I cant be more help, I have been a bit out of the loop lately with KRPano, as I have been working on other things http://bit.ly/b0XpTN and somehow always forget what I have learnt before. So look forward to reworking with KRPano again soon, when i will try and make some better examples.

Hope this helps :)

Best wishes,

tom


Hope this helps

8

Friday, May 7th 2010, 3:26pm

Compass and video question :)

thanks tom

the example work for my purpose *g*

very thanks...

Similar threads