You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

autoBuffering -> onStart issue Created Nov 28, 2008

This thread is solved

Views: 10281     Replies: 19     Last reply Aug 8, 2011  
You must login first before you can use this feature

muckwarrior

Posts: 4

Registered:
Nov 28, 2008

autoBuffering -> onStart issue

Posted: Nov 28, 2008

I need to perform an action when a user plays a video (onStart I assume?) and I also want to autoBuffer my video. The problem is that the autoBuffering seems to call the onstart event which means that my action is being called when the player loads instead of when the user clicks play. Is there a way I can use these two features together?

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» autoBuffering -> onStart issue

Posted: Nov 28, 2008

Reply to: autoBuffering -> onStart issue, from aaron
this shouldn't happen. have you tried autoPlay: false, autoBuffering: true combination?

muckwarrior

Posts: 4

Registered:
Nov 28, 2008

» » autoBuffering -> onStart issue

Posted: Dec 1, 2008

Reply to: » autoBuffering -> onStart issue, from tipiirai
Indeed I have, this is my code...


flowplayer("player", "/VideoplayerResources/flowplayer-3.0.0.swf",  { 
    clip:{ 
        url: '/test.flv', 
         
        autoPlay: false,  
        autoBuffering: true,
        onStart: function(){
			alert("started");
		}  
     }
}); 
...which will result in an alert when the page loads. However if I leave out the 'autoBuffering:true' the alert doesn't happen till I click play.

jhoannarel

Posts: 1

Registered:
Aug 31, 2010

» » » autoBuffering -> onStart issue

Posted: Aug 31, 2010

Reply to: » » autoBuffering -> onStart issue, from aaron
I tried it and my chrome always crash.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » » autoBuffering -> onStart issue

Posted: Aug 31, 2010

Reply to: » » » autoBuffering -> onStart issue, from jhoannarel
Does not crash here.

Flowplayer forum example

HTML setup for the player

<!-- include latest Flowplayer javascript file -->
<script language="javascript" src="path/to/flowplayer-3.2.6.js"></script>

<!-- player container with optional splash image -->
<a href="path/to/video_file" id="playerContainer">
	<img src="path/to/splash_image" />
</a>


JavaScript coding

Following script will install Flowplayer into our player container


<script language="javascript">
// our custom configuration is given in third argument
flowplayer("playerContainer", "path/tohttp://releases.flowplayer.org/swf/flowplayer-3.2.7.swf",{
clip:{ 
        autoPlay: false,  
        autoBuffering: true,
        onStart: function(){
			alert("started");
		}  
     }
});
</script>


muckwarrior

Posts: 4

Registered:
Nov 28, 2008

» » autoBuffering -> onStart issue

Posted: Dec 1, 2008

Reply to: » autoBuffering -> onStart issue, from tipiirai
In fact, curiously, the alert pops up twice when autoBuffering is on (when the page loads), but doesn't pop up at all when the play button is pressed.

Tero
Author of jQuery Tools and this website + JavaScript developer of Flowplayer.

Posts: 1867

Registered:
Nov 16, 2007

» » » autoBuffering -> onStart issue

Posted: Dec 1, 2008

Reply to: » » autoBuffering -> onStart issue, from aaron
I'll debug this tomorrow.

muckwarrior

Posts: 4

Registered:
Nov 28, 2008

» » » » autoBuffering -> onStart issue

Posted: Dec 1, 2008

Reply to: » » » autoBuffering -> onStart issue, from tipiirai
Much appreciated.

bitman

Posts: 43

Registered:
Sep 26, 2008

» » » » » autoBuffering -> onStart issue

Posted: Dec 5, 2008

Reply to: » » » » autoBuffering -> onStart issue, from aaron
I have the same issue with the new audio plugin (which ROCKS by the way... cheers api!). I'm trying to start the buffer but NOT the playback when the page loads. My mp3 files are hosted "in the cloud" so I'm trying to have the audio files buffered by the time users read the intros and hit the play button. I've tried two approaches. In both cases, the mp3 begins playing automatically when the page loads:

Approach #1:


$f("audio", "/flowplayer/flowplayer-3.0.1.swf", {  
    clip:{   
        autoPlay: false,   
        autoBuffering: true, 
        onStart: function(){ 
            alert("Audio has buffered...let's roll!"); 
        }   
     } 
});  

<div id="audio" 
  style="display:block;width:480px;height:30px;" 
  href="http://www.abcdefg.com/longfile.mp3"></div>

Approach #2:


$f("audio", "/flowplayer/flowplayer-3.0.1.swf", {  
    clip:{   
        autoPlay: false,    
        onStart: function(){ 
            alert("Audio has buffered...let's roll!"); 
        }   
     }
    onLoad: function() { 
    	this.startBuffering();
   	} 
});  

<div id="audio" 
  style="display:block;width:480px;height:30px;" 
  href="http://www.abcdefg.com/longfile.mp3"></div>

Any insights would be great... I might be doing something wrong. And again, great work on the new plugin. I've been passing on the flowplayer website to some of my colleagues.

Anssi
Flowplayer Flash & video streaming developer

Posts: 1194

Registered:
Jul 24, 2007

» » » » » » autoBuffering -> onStart issue

Posted: Dec 5, 2008

Reply to: » » » » » autoBuffering -> onStart issue, from bitman
I think I need to still work on the autoBuffering stuff. I will investigate this and you can expect a second release for the audio plugin already next week or so.

bitman

Posts: 43

Registered:
Sep 26, 2008

» » » » » » » autoBuffering -> onStart issue

Posted: Dec 5, 2008

Reply to: » » » » » » autoBuffering -> onStart issue, from Anssi
sounds good.

CEQ

Posts: 1

Registered:
Dec 23, 2008

» » » » » » » autoBuffering -> onStart issue

Posted: Dec 23, 2008

Reply to: » » » » » » autoBuffering -> onStart issue, from Anssi
Hello,

Any progres on this?!

I'm trying to tag the player for our Analytics SOlution and the AutoBuffering fires the onStart event, eventhough the video does not start playing automatically.

craigmoliver

Posts: 1

Registered:
Dec 29, 2008

» » » » » » » autoBuffering -> onStart issue

Posted: Jan 2, 2009

Reply to: » » » » » » autoBuffering -> onStart issue, from Anssi
I'm having the EXACT same issue. Any updates?

Happy New Year!

doctor_regtools

Posts: 1

Registered:
Apr 10, 2008

» » » » » » » » autoBuffering -> onStart issue

Posted: Jan 15, 2009

Reply to: » » » » » » » autoBuffering -> onStart issue, from
I'm getting the same problem - with flowplayer 3.0.3. Any solution in sight?

jeffropelato

Posts: 2

Registered:
Oct 28, 2008

Work Around

Posted: Jan 16, 2009

Reply to: » » » » » » » » autoBuffering -> onStart issue, from doctor_regtools
A Work around we did was just set a cuepoint of 1 second. So after 1 second of play your script will execute and not on the buffering. which is pretty much the same as onstart.

You can see a working sample on our homepage.
TopTenREVIEWS


 <script language="javascript"> 
$f("playerContainer", {src:"path/to/flowplayer-3.0.3.swf", wmode:"opaque"}, {
key: '',
	clip : {
		autoPlay: false,
		autoBuffering: true
	},
	playlist: [
		{
			url: 'http://www.toptenreviews.com/video/photo-slideshow-software-c80-video-1.flv',
			autoPlay: false,
			onStart: function(clip) {
				this.onCuepoint([1], function(clip, cuepoint) { 
					pageTracker._trackPageview("video-url-start=" + clip.url);
				}); 
			},
			onFinish: function(clip) {
				pageTracker._trackPageview("video-url-end=" + clip.url);
			}
		}
	]
});
</script>

jonnyb

Posts: 1

Registered:
Mar 20, 2009

events not firing with Audio player

Posted: Mar 20, 2009

Reply to: Work Around, from jeffropelato
Jeff like the idea and tried to implement it. when i load an MP3 file NONE of the events, cuepoints etc are firing my debug alert messages. If i load an .flv file conversion of my MP3 it all works perfectly :-(

Is this still happening to other people?

here is my code:

<div id="audio" style='display:block;width:400px;height:110px;'></div> 

$f("audio", "flowplayer-3.0.7.swf", {
	
	plugins: { 
        audio: { 
			url: 'flowplayer.audio-3.0.4.swf' 
        },
		controls: {
			play:true
		} 
    },
	
	playlist: [
		{url:'ep01.png'},
		{	
			
			url:'iDITradioEP01.flv',
			autoPlay: false,
			onStart: function(clip) { 
                this.onCuepoint([1], function(clip, cuepoint) {  
                    alert("video-url-start=" + clip.url); 
                });  
            },
			onFinish: function(clip) { 
                 alert("video-url-start=" + clip.url+"Thx for watching"); 
            }
		}
	]
}); 

Alexey

Posts: 1

Registered:
Aug 12, 2010

» » » » » » autoBuffering -> onStart issue

Posted: Aug 12, 2010

Reply to: » » » » » autoBuffering -> onStart issue, from bitman
I have the same problem. Any updates?
flowplayer-3.2.2
flowplayer.audio-3.2.0.swf

sotetsu

Posts: 1

Registered:
Mar 18, 2011

» » » » » » autoBuffering -> onStart issue

Posted: Mar 18, 2011

Reply to: » » » » » autoBuffering -> onStart issue, from bitman
For the audio player, autoBuffering will not work correctly unless the mp3 ID3 tags are v2.3 or v2.4. See this article:

http://code.google.com/p/flowplayer-core/issues/detail?id=138