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

  • 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:

    Code
    <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,


    Zitat

    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

  • 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*

  • Hi,

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

    e.g. instead of:

    Code
    <hotspot name="videospot" ...


    this:

    Code
    <plugin name="videospot" ...

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

    Code
    <plugin name="videospot" 
            ...
            parent="info_video"
            align="center"
            ...
            />


    best regards,
    Klaus

  • 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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!