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.

michel

Professional

  • "michel" started this thread

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

1

Sunday, November 6th 2011, 7:31pm

BUG <plugin ... pausedonstart=true ...

Hi KLAUS,

After playing with the last videoplayer version 1.0.8.14 (build 2011-10-21) it seems that there is a BUG in using the pausedonstart attribute...
As a test, edit the video-hotspot example, changing hotspot by plugin, like this:

Source code

33
34
35
	<!-- note - the url of the video must be always relative to the main krpano swf file -->
	<plugin name="videospot"  onvideoready="trace('ispaused returns = ',ispaused )"
	.....

As the attribute pausedonstart is set to true, the variable ispaused returns true but the video does not show *whistling* ...

A workaround that seems to work, is:

Source code

33
34
35
36
37
38
	<!-- note - the url of the video must be always relative to the main krpano swf file -->
	<plugin name="videospot" 
		 	....
			 pausedonstart="false"
			 onvideoready="stop(); trace('ispaused returns = ',ispaused );"
			 />


SAlut.

2

Monday, November 7th 2011, 9:24pm

Hi,

thanks for the note!

I have tested again and yes there is still a problem with the pausedonstart,

it's not a bug or a new bug in krpano or the videoplayer plugin - it seems to be a problem in the Flashplayer versions 10.1, 10.2, 10.3 and 11.2, the versions 9.0, 10.0 and version 11.0 seem to be fine, and regarding to my tests I would say that problem happens only sometimes, only on some systems and then only with enabled hardware-acceleration,

so far so good - the main problem was that the Flashplayer 'reports' that it already plays the video and that the video frame should be already there, but in reality it is not in every case,

to fix that problem hopefully finally I'm now drawing the video frame into a smaller pixel buffer and checking each individual pixels from that if there is some content - and only when there is really something - then I'm sending the pause call to the Flashplayer video - so getting the first visible frame for the pausedonstart should work now in really very case!

additionally I have fixed a strange problem that can happen in the Flashplayer version 11.2 - there a Flashplayer bug caused that the "onvideoready" event was called two times,

here the fixed videoplayer.swf (it will be also included in the next release of course):
videoplayer-10814-2011-11-07.zip

best regards,
Klaus

michel

Professional

  • "michel" started this thread

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

3

Monday, November 7th 2011, 9:47pm

Great... No Bug now *thumbup* ...
Thanks Klaus...

SAlut.

4

Thursday, December 1st 2011, 6:11am

I was pulling my hair out until I decided to check the forum here. Thanks Klaus

Similar threads