Sie sind nicht angemeldet.

1

Montag, 18. Dezember 2017, 18:40

ContentUris support when using expansion files in Android app

Hi,

What is the correct way to link to assets contained in an uncompressed Android expansion file

I have videos, hotspot icons and panorama tiles in the expansion file but only the videos work. When using a regular website instead of a krpano app assets have no problem loading in the way I'm trying to use them with krpano.

I have made the following changes:


video sample:

from:

<scene name="pano1234"
...
scenevideourl="%FIRSTXML%/pano1234/video.mp4"
...
>

to:
<scene name="pano1234"
...
scenevideourl="content://com.domain.myapp/main_expansion/video.mp4"
...
>

and in the case of the hotspot:
from:
<style name="icon"
...
url="%FIRSTXML%/spots/spot.png"
...
/>

to:

<style name="icon"
...
url="content://com.domain.myapp/main_expansion/spot.png"
...
/>


I'm using cordova 7.1
android 6 to 8
and this plugin: https://github.com/agamemnus/cordova-plugin-xapkreader

Thanks in advance :)

2

Dienstag, 19. Dezember 2017, 10:03

Hi,

that shouldn't matter, krpano basically passes these urls as they are forward to the browsers (or webview)...

Best regards,
Klaus

3

Mittwoch, 20. Dezember 2017, 20:58

Thank you

The issue was the content security policy in the html file, nothing to do with krpano :)

Best regards