Posts by ecasasin

    Okey, problem solved.

    We have seen the new "copy" option to the image.reset function and the attribute is now preserved.

    Here is the current code:

    Code
    image.reset("copy");
    set(image.sphere.url, get(image.imgalt));
    loadpanoimage(KEEPPLUGINS|KEEPVIEW);

    Thanks for your replies, hope this can help someone in the future and we hope we don't need to use more this thread, that will be good news.

    Here is the code for the parenting:

    Code
    if(get(image) != null,
        set(layer[get(layerName)].parent, image);
    );


    For the custom attribute (we use customatt on the previous post for be clear but we let the actually name here just in case this is a reserved one) here is how we have it (this code was working on krpano 1.20.11 version):

    Code
    image.reset();
    set(image.sphere.url, get(image.imgalt));
    
    loadpanoimage(KEEPPLUGINS|KEEPVIEW);


    Even when we ask for image.imgalt from the browser console we get null too:

    Code
    krpano.get('image.imgalt');

    But if we ask from the browser console for the xml.content we can check that the image tag have our custom attribute (imgalt):

    Code
    "[...] <image imgalt='URL.tiles/l%l/%0v/l%l_%0v_%0h.jpg'>
       <sphere url='plugin:video' multires='512,1536x768,3072x1536,6144x3072,12288x6144'>    		   
       </sphere>
    </image> [...]"

    Hi and again thanks for your advices,

    We discovered that we were setting a parent to that layer. We are parenting it to the image element so this broke this (maybe a element with a parent doesn't trigger the onloaded event or is just that is not possible to parent a layer to the image element)


    With this mystery resolved we found something more related to the tag image behaviour.

    We are using a "custom" attribute on the image tag of the xml, some thing like this:

    Code
    <image customatt='URL.tiles/l%l/%0v/l%l_%0v_%0h.jpg'>
       <sphere url='plugin:video' multires='512,1536x768,3072x1536,6144x3072,12288x6144'>    		   
       </sphere>
    </image>

    Previously we can access this with:

    Code
    get(image.customatt)

    Now we are getting null.

    What is the cause of this and what is the solution to save the data in the xml for later changes at runtime?

    Hi, Klaus, thanks for your quick response.

    Our situation is:

    we dynamically create a layer

    we dynamically create a hotspot (with renderer = "html")

    we attach an onloaded event to the layer and to the hotspot

    Even a simple trace() on the onloaded event of the layer is never called. We are sure that the preload of the layer is false.

    The event on the hotspot gets called, but throws an error in the browser console: Converting circular structure to JSON


    Exactly the same code is working on the v. 1.20.11 (if we go back to that version)

    another point. We have found that when doing caller.sprite, we get a Converting circular structure to JSON error type. In fact, the caller object has a sprite property which has itself as a vaule (kobject), that has as a sprite property with itself as a value and so on. Truly circular

    Hi,

    we have a development in which we add some values (id, class, a custom attribute) to some layer.sprite objects via a javascript action. It worked OK using krpano v. 1.20

    Now, when upgrading the krpano version to 1.21, this section of our code fails. We have read in the docs that in this version the layer.sprite object is read-only. Is there any other way to attach values to the underlying dom object? Or getting the dom object associated to the sprite?


    Here, simplified, our code:

    it was working with krpano v. 1.20, and fails with 1.21

    Code
        <action name="setColorProperties" type="Javascript">
            caller.sprite.id = args[1];
            caller.sprite.className = args[2];
            settingColorSprite(caller.sprite, args[3]);
        </action>

    Hi,

    I have developed a webplayer that features some video playback (the video si some 5 minutes long). On my client's iPhone (12) the phone enters into sleep mode while playing back the video (this doesn't happen on my iPhone SE second gen or 11 Pro Max). I understand that this shouldn't be happening, as the OS should prevent entering into sleeping mode while playing back a video, but still

    Has anyone of you had a similar experience? Is there some explanation?

    Thnaks

    Thnaks Tuut,

    yeah, I know that it needs a touch event to trigger the sound, but on my iPhone SE 2 (iOS 14.2) and other 6S (iOS 13.3) there is no sound on this example, no matter how many times you touch the screen. The weird thing is that it plays nicely on my iPad

    HI,

    have found this weird issue: a simple sound, played via soundinterface, doesn't play on iPhone (iOS 14.2 or 13.3, tested on several devices). You can test simply on the background sound sample provided by Klaus:

    https://krpano.com/releases/1.20.…groundsound.xml


    The weird thing is that it plays on iPad (14.2) and that the soundinterface plugin, works. I have added an oncomple event on my test, and it gets fired, although the sound is not audible.

    Any hint?

    I have been playing with the method to add hotspot videos with an AlphaChannel as this example:

    https://krpano.com/releases/1.20.…tml5=only+webgl


    it works perfect, but I have discover a problem. If I try to play the 360 photo on a phone and using a cardboard on the VR mode, the hotspot is misaligned and seems to be over the photo... this is problem of stereo disparity... I guess the players shifts the left and right view of the pano but not the hotspot..

    there is any solution to that??

    thanks

    Hi,

    I think that by default, on desktop, you use the low res version of your video. The 1024x512. that is why you get a poor quality rendering. I have checked your hd video on kolor eyes (now gopro vr) and its quality is the same with the one you get on krpano

    Had the same problem with crosswalk and 360 videos played by krpano.
    My guess is the best way now that android 5 or higher is used on most of the mobiles now would be to build a native webview app in android studio.

    thanks for your answer. So, as I see it, it is not safe to use crosswalk. Does anybody know how safe it is to go for native webview for playing 360 videos? is this dependent on the android version, the manufacturer's skin, or something else?

    as a follow up to my previous message. I have discovered that if I compile the cordova app without the crosswalk libs (forcing it to use the webview present in the phone), on my Samsung s6 with android 6.0.1, my app plays well and smoothly my 360 videos. But without crosswalk I may find many incompatibility issues, am I right?

    So, what is the problem with crosswalk? has anybody else had this issue?

    Hi all,

    I am fooling around with a phonegap + krpano android app. I am using crosswalk version 19 and phone gap version 6.2.0. krpano version is 19.8. When trying to play a panoramic video, all I get is a black screen (audio plays, though), that means that the file is found.

    The video shows and plays when accessed from the browser, so it is not a problem with the encoding.

    I thought that using crosswalk would eliminate this kind of problems.


    Any hints?

    Hi all,

    I am trying to build a vr virtual tour using 360 videos. I know of the touch problem for auto playing videos on mobile, for that matter, my first video is triggered when touching the ENTER VR button, and everything is fine. The problem comes when passing from one video to another, which is done inside the VR interface, where no touching is possible (the phone is in the cardboard). Videos don't play at all unless the screen receives a touch event. I can't find a solution with android devices. Is there any?