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

Monday, November 14th 2022, 12:37pm

360 Video won't load

Hi all,

I programmed a tour and there are two 360° Videos embedded, I simply took the code from the examples page, it worked perfectly fine before, but now it suddenly doesn't load anymore. It just stays black and says loading.... for a long time, so something seems to be happening that it won't load.

I would appreciate help!

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<scene name="videopano-motorbike" title="Motorbike 360° Video" onstart="" >


		<!-- include the videoplayer plugin -->
		<plugin name="video"
		        url.html5="plugins/videoplayer.js"
		        url.flash="plugins/videoplayer.swf"
		        pausedonstart="true"
		        loop="false"
		        volume="1.0"
		        onloaded="add_video_sources();"
		        />

		<!-- use the videoplayer plugin as panoramic image source -->
		<image>
			<sphere url="plugin:video" />
		</image>

		<!-- set the default view -->
		<view hlookat="0" vlookat="0" fovtype="DFOV" fov="130" fovmin="75" fovmax="150" distortion="0.0" />
		
		<action name="add_video_sources" >
			videointerface_addsource('motorbike', '%FIRSTXML%/videos/KTM_360-Video_60mbits_60fps.mp4', '');
			videointerface_play('motorbike');
		</action>

	</scene>


I call the scene via a click action:

Source code

1
onclick="loadscene(videopano-motorbike);"


Thanks in advance!

Tuur

Sage

Posts: 3,822

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Monday, November 14th 2022, 12:44pm

Hi,

it would help to have an url we can see to help.
Can you try putting the plugin code outside the scene and add keep="true" ..
and perhaps also put that action outside of the scene.

Do you get any error in the log (press §) ?
perhaps the path is wrong?

Tuur *thumbsup*

3

Monday, November 14th 2022, 1:43pm

Thanks for your fast reply, unfortunately nothing seems to help. I changed the code as follows:

Source code

1
2
3
4
5
6
    <!-- include the videoplayer plugin -->  <plugin name="video"  url.html5="plugins/videoplayer.js"  url.flash="plugins/videoplayer.swf"  pausedonstart="true"  loop="false"  volume="1.0"  onloaded="add_video_sources();"  keep="true"            />  <action name="add_video_sources" >  videointerface_addsource('motorbike', '%FIRSTXML%/videos/KTM_360-Video_60mbits_60fps.mp4', '');  videointerface_play('motorbike');  </action>
  <!--........................ VIDEO PANOS ............................-->
  <scene name="videopano-motorbike" title="Motorbike 360° Video" onstart="sidebar_verstecken(); autorotate.stop();" >
    <!-- use the videoplayer plugin as panoramic image source -->    <image>      <sphere url="plugin:video" />    </image>
    <!-- set the default view -->    <view hlookat="0" vlookat="0" fovtype="DFOV" fov="130" fovmin="75" fovmax="150" distortion="0.0" />
  </scene>



Url to check would be: https://360perspektiven.com/projekte/ktm_beta2/index-de.html

No error messages in the log concerning the video pano.

Thanks again!

Tuur

Sage

Posts: 3,822

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Monday, November 14th 2022, 4:17pm

Hi,

I see quite some errors in the log and also in the js console.
The fact that they perhapse not all are 360 video related .. some are though.. they can make problems also for your 360 video part.

I would strongly recommend to make a bare bone set up with 2-3 scenes and make that work.
Then go from there and implement in your project.

I would also take the toolbox out to see if that is the issue... can be.
You use the old toolbox..(4 years od at least..)
Better use the new one:
https://krpano.com/forum/wbb/index.php?p…88585#post88585

Tuur *thumbsup*