What is the recommended way of debugging in the pano xml? Is there a way of putting in log statements to get info out onto the console easily?
Beiträge von glenohumorous
-
-
I think I asked this question before. Below is the answer I got.
ZitatHi,
the problem is iOS itself!
See here:
https://krpano.com/ios/bugs/ios8-webgl-video-performance/and here:
https://bugs.webkit.org/show_bug.cgi?id=129626According the bugreport above Apple has already fixed that, but there is no iOS version available with that fix yet. Maybe this will come with iOS 10 or iOS 11...
Best regards,
Klaus -
For short videos (in my case a 31s video) I've noticed that seeking to say 5s (.call('plugin[video].seek(5)')) seems to take the video not to 5s, but to 0s; randomly, seeking at 14s, results in the video being taken to the 12s mark (as retrieved by .get('plugin[video].time')). This issue extends to the default seek bar, which has low accuracy on click. This seems odd, why is this? I am using krpano 1.19.
This was asked over here : seek accuracy in 2012, but there was no answer there, and it seemed to see greater accuracy than what I'm seeing.
I would like to basically skip to a specific frame (ideally by time or percent, but any other way is fine too) in the video
-
As above, I would like the video to peek or show the first frame of the video after loading or seeking (load the image), instead of relying on an image overlay. How would this be done properly? By playing and then pausing?
-
I was wondering how to listen to krpano events outside of the xml, so I can set javascript functions to run on, for example a click of a video interface button.
-
I see; thank you.
-
I've been noticing substantial lag with video on iOS (9.2.1), even using lower resolutions. I'm sure I'm missing something, but what is it?
Below is my xml file:
<krpano version="1.19" bgcolor="0x000000">
<!-- the videoplayer interface skin -->
<include url="%SWFPATH%/videointerface/videointerface.xml" /><!-- include the videoplayer plugin and load the video (use a low res video for iOS) -->
<plugin name="video"
url.flash="%SWFPATH%/plugins/videoplayer.swf"
url.html5="%SWFPATH%/plugins/videoplayer.js"videourl.ios="../video/video.mp4"
videourl.no-ios="../video/video.mp4"
pausedonstart="true"
loop="true"
enabled="false"
zorder="0"
align="center" ox="0" oy="0"width.no-panovideosupport="100%"
height.no-panovideosupport="prop"onloaded="videointerface_setup_interface(get(name)); setup_video_controls();"
onvideoready="videointerface_videoready();"
/><plugin name="gyro" devices="html5" keep="true"
url="gyro2.js"
enabled="true"
camroll="true"
friction="0.0"
touch_mode="full"
sensor_mode="1"
autocalibration="true"
onavailable=""
onunavailable=""
onenable=""
ondisable=""
/><!-- custom control setup - add items for selecting videos with a different resolution/quality -->
<action name="setup_video_controls">
<!-- add items to the control menu of the videointerface skin -->
videointerface_addmenuitem(configmenu, vqtitle, 'Select Video Quality', true, videointerface_toggle_configmenu() );
videointerface_addmenuitem(configmenu, q1, '1024x512', false, change_video_file(q1, '../video/video-1024x512.mp4|../video/video-1024x512.webm'); );
videointerface_addmenuitem(configmenu, q2, '1920x960', false, change_video_file(q2, '../video/video-1920x960.mp4|../video/video-1920x960.webm'); );<!-- select/mark the current video (see the initial videourl attribute) -->
if(device.ios,
videointerface_selectmenuitem(configmenu, q1);
,
videointerface_selectmenuitem(configmenu, q2);
);
</action><!-- change the video file, but try keeping the same playback position -->
<action name="change_video_file">
plugin[video].playvideo('%CURRENTXML%/%2', null, get(plugin[video].ispaused), get(plugin[video].time));
videointerface_deselectmenuitem(configmenu, q1);
videointerface_deselectmenuitem(configmenu, q2);
videointerface_selectmenuitem(configmenu, %1);
</action><!-- the panoramic video image -->
<image devices="panovideosupport">
<sphere url="plugin:video" />
</image></krpano>
-
There seems to be an xml-accessible function `seek` (looking at the seekbar implementation in the example), but how would I access that through `set` outside in javascript?
`.set('plugin[video].time', .1)` doesn't seem to work.
EDIT:: Apparently it's `.get('plugin[video]').seek(1)`
-
Not sure how to delete posts........ so apologies for the double post (in beginner). I thought this might be somewhat of a feature request and is more appropriate for this part of the forum.
I was wondering if there was a way to play backwards. I'm trying to setup a background video that would loop by playing the full video in one direction and then going back. Any help would be appreciated!Thank you in advance.