google-code-export / flowplayer-core

Automatically exported from code.google.com/p/flowplayer-core
2 stars 0 forks source link

Pause on cuepoint returns infinite cuepoint execution #607

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Setting a cuepoint that puts the video in pause state leads me to infinite 
cuepoint execution. 
Here is my code, that shows exactly this problem: 

flowplayer_settings.clip.onCuepoint = [config.de, function(clip, point) {
   this.pause();
   this.hide();

   $("#question").show();

   $.ajax({
     url: config.qp,
     success: function(data) {
       $("#question").html(data);
       $('#advance').click(function() {
         $f().show();                                                                                                                                                                                                                  
         $f().resume();
       });
     },
     dataType: 'html'
   });
 }];

I expekt the cuepoint to be called once, but it was called an infinite number 
of times.
I am using flowplayer 3.2.10. This behaviour is verified on IE, Safari, Chrome, 
Firefox.

Original issue reported on code.google.com by darioghi...@gmail.com on 18 Jul 2012 at 9:49

GoogleCodeExporter commented 9 years ago
hi this is not easily testable, show a page perhaps and trap for errors as js 
wont return it within functions. 

Original comment by electrot...@gmail.com on 24 Jul 2012 at 5:12

GoogleCodeExporter commented 9 years ago
hi this is not easily testable, show a page perhaps and trap for errors as js 
wont return it within functions. 

Original comment by electrot...@gmail.com on 24 Jul 2012 at 5:12

GoogleCodeExporter commented 9 years ago
any luck with an example page ?

Original comment by electrot...@gmail.com on 28 Jul 2012 at 11:19

GoogleCodeExporter commented 9 years ago
Hi this is expected with the code because once you resume its in the same cue 
time still, and the interval check to restrict refiring the cuepoints of 2 
seconds has passed. 

Here is a work around 

onCuepoint: [[1000,2000,3000,4000,5000,6000], function(clip, cue) {
                if (cuetime == cue) {
                    console.log("cuepoint already fired", cue);
                    return;
                }
                //this.pause();

                console.log("cuepoint", cue);
                cuetime = cue;
            }]

Original comment by electrot...@gmail.com on 10 Aug 2012 at 12:16

GoogleCodeExporter commented 9 years ago
let me know if this resolves this thanks. 

Original comment by electrot...@gmail.com on 13 Aug 2012 at 2:18

GoogleCodeExporter commented 9 years ago
Hi there doesn't seem an issue im afraid closing this for now but update if 
needed. 

Original comment by electrot...@gmail.com on 15 Aug 2012 at 4:44