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

Your preferred username that is used when logging in.

Embeding flowplayer with starting play on xx second Created Oct 29, 2009

This thread is solved

Views: 3539     Replies: 16     Last reply Dec 7, 2009  
You must login first before you can use this feature

beaart

Posts: 12

Registered:
Apr 27, 2009

Embeding flowplayer with starting play on xx second

Posted: Oct 29, 2009

I need create embed text of flowplayer which will begin playing from xx second.
I'm using flowplayer.pseudostreaming-3.1.2.swf and flowplayer.embed-3.0.2.js for this.
This part of my player cofig (all other i think not necessary):

$f("flow_player",  
        {    
        src: "flowplayer/flowplayer.commercial-3.1.0.swf",  
        width: 290, 
        height: pl_height 
        }, 
        {    
        key: '#@cd64e966926fd397305', 
         
        clip:{ 
            url: src_url, 
            provider: 'lighttpd', 
 
            start:0, 
             
            autoPlay: true 
        }, 
        plugins:{ 
            lighttpd:{ 
                url: 'flowplayer/flowplayer.pseudostreaming-3.1.2.swf' 
            }, 
            controls:{ 
            url: 'flowplayer/flowplayer.controls-3.1.0.swf', 
            height: 20, 
                    } 
                 } 
................... 
             }); 
With parameter start i got almost that need. This embeded text created player which start playing on xx second.
But video before xx second unavailable (control bar timeline on begin). I try use instead propety "start" - seek(xx) when clip begin playing (event onStart). But events not embeding.

My question:
How I can embed player that will be load whole video and start playing from xx second (and control bar will be on position that responsing xx second (will be not on begin of timeline))?

beaart

Posts: 12

Registered:
Apr 27, 2009

» Embeding flowplayer with starting play on xx second

Posted: Dec 1, 2009

Reply to: Embeding flowplayer with starting play on xx second, from beaart
Can somebody please check my post. I would really like to get this working.
Else, flowplayer won't be needed in my project :(

So my point is, I have a video of (let's say) 2 minutes. I want to embed it on a page, to start at 1:15. When I do this, the embedded player will only play 45 seconds, but it won't start at 1:15, but at 0:00. So I will only see the first 45 seconds, instead of the last.

Edge
Vizmu Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

» » Embeding flowplayer with starting play on xx second

Posted: Dec 1, 2009

Reply to: » Embeding flowplayer with starting play on xx second, from beaart
You need to add autoBuffering true


        clip:{  
            url: src_url,  
            provider: 'lighttpd',  
            autoBuffering:true,
            start:45,             
            autoPlay: true  
        }, 

beaart

Posts: 12

Registered:
Apr 27, 2009

» » » Embeding flowplayer with starting play on xx second

Posted: Dec 1, 2009

Reply to: » » Embeding flowplayer with starting play on xx second, from edge
Unfortunately set autoBuffering not helped.
I think such problem appear because i'm using pseudostreaming and because clip is stream - flowplayer think that in clip no start time and he starting playing from time which specified in option "start".
Anybody know my suggesting is true?
And if yes, how i can change this behavior of pseudostreaming?

Edge
Vizmu Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

» » » » Embeding flowplayer with starting play on xx second

Posted: Dec 1, 2009

Reply to: » » » Embeding flowplayer with starting play on xx second, from beaart
I'm not sure I fully understand your issue, but from the sounds of it either the media is incorrectly encoded or the server is not correctly setup to use pseudostreaming.

1. Check that pseudostreaming is actually working.
2. Try a different file, one that someone else encoded or was encoded using a different method or program.

There's also an extra comma in your above example here: height: 20, <-

beaart

Posts: 12

Registered:
Apr 27, 2009

» » » » » Embeding flowplayer with starting play on xx second

Posted: Dec 1, 2009

Reply to: » » » » Embeding flowplayer with starting play on xx second, from edge
I created 3 tests.
The first 2 with my video, the 3rd with a video from flowplayer.org site.

Onhttp://www.notubiz.nl/dyon/flowplayer/embedDemo2.html is a demo of embedded flashplayer with a starttime of zero. As you can see, the movie lasts for about 56 minutes.

Onhttp://www.notubiz.nl/dyon/flowplayer/embedDemo1.html is that same video, but now with a starttime of 25 minutes. As you can see, in embedDemo1 the movie starts at the right time, but I can't scroll back to the beginning of the meeting.

To test it correctly, I also createdhttp://www.notubiz.nl/dyon/flowplayer/embedDemo3.html , which uses a 4 minute movie of flowplayer.org, and I started it after 3 minutes. As you can see, I also can't scroll back to that time. Is there a solution or workaround for this ?

btw: sorry, in the reply this morning, I didn't describe the problem correctly

Edge
Vizmu Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

» » » » » » Embeding flowplayer with starting play on xx second

Posted: Dec 1, 2009

Reply to: » » » » » Embeding flowplayer with starting play on xx second, from beaart
You need autoBuffering:true, and try using a start that's not split.

For the Demo1 @ 25 minute start time add
autoBuffering:true, and start:1500,
1500 would = 25 minutes.

beaart

Posts: 12

Registered:
Apr 27, 2009

» » » » » » » Embeding flowplayer with starting play on xx second

Posted: Dec 1, 2009

Reply to: » » » » » » Embeding flowplayer with starting play on xx second, from edge
Oh that was a bit dumb. My Bad.
Now I changed it to include autoBuffering, but nothing seems to change (I also changed the start:float to start:int)
But still, it doesn't work the way I want. I also added autobuffering to the demo3 page. There, it also doesn't work.

Edge
Vizmu Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

» Embeding flowplayer with starting play on xx second

Posted: Dec 1, 2009

Reply to: Embeding flowplayer with starting play on xx second, from beaart
Try upgrading flowplayer.commercial-3.1.0.swf to the latest flowplayer.commercial-3.1.5.swf.
Also upgrade to the latest flowplayer.pseudostreaming-3.1.3.swf and flowplayer.controls-3.1.5.swf.

Removing the spaces in 12.11.09 Almere carroussel groene kamer.flv while I don't think it will fix this issue generally works better.
Eg, 12.11.09-Almere-carroussel-groene-kamer.flv

I don't have the time to setup a test enviorment at the moment. Hopfully upgrading the flowplayer version and pseudostreaming plugin will help.

beaart

Posts: 12

Registered:
Apr 27, 2009

» » Embeding flowplayer with starting play on xx second

Posted: Dec 7, 2009

Reply to: » Embeding flowplayer with starting play on xx second, from edge
Hi Edge,
I upgraded the flowplayer-commercial, flowplayer-pseudostreaming and flowplayer-controls to up-to-date versions, but it still doesn't work.
Please see http://www.notubiz.nl/dyon/flowplayer/embedDemo3.html .

Edge
Vizmu Media ------------------- http://vizmu.com/

Posts: 576

Registered:
Nov 29, 2008

» » » Embeding flowplayer with starting play on xx second

Posted: Dec 7, 2009

Reply to: » » Embeding flowplayer with starting play on xx second, from beaart
Hi,
The start param in that config is set to 180 seconds --start:180, . 180 seconds = 3 minutes.
Download that video "Extremists.flv" and scrub to the 3 minute marker then check the embedded flowplayer video start point. Its working ;)

beaart

Posts: 12

Registered:
Apr 27, 2009

» » » » Embeding flowplayer with starting play on xx second

Posted: Dec 7, 2009

Reply to: » » » Embeding flowplayer with starting play on xx second, from edge
Yes, but I want the embedded video to start at 180 seconds.
I want the visitors to scroll back to the beginning if they want to.
Do you understand my problem? Or do I misunderstand you ?

I think I caused a lot of confusion with my post of Apr 27, 2009, where I describe my problem incorrectly. My issue is, that I can't scroll back in the embedded video to before the time the video is started.

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» » » » » Embeding flowplayer with starting play on xx second

Posted: Dec 7, 2009

Reply to: » » » » Embeding flowplayer with starting play on xx second, from beaart
The start parameter truncates the clip, so to speak.

Try the player's seek method:

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",{
onStart: function () {
  // start at 10 secs, while still being able to scroll back to 0
  this.seek(10);
}
});
</script>


beaart

Posts: 12

Registered:
Apr 27, 2009

» » » » » » Embeding flowplayer with starting play on xx second

Posted: Dec 7, 2009

Reply to: » » » » » Embeding flowplayer with starting play on xx second, from blacktrash
Hi

I changed the code of embedDemo3.html to this:


<object width="305" height="235" data="flowplayer.commercial-3.1.5.swf?0.19011158749350454" type="application/x-shockwave-flash">
<param name="movie" value="flowplayer.commercial-3.1.5.swf?0.19011158749350454" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value='config={"onStart": "function(){this.seek(10);}","clip":{"url":"http://flowplayer.org/video/Extremists.flv","provider":"lighttpd", "autoBuffering":"true","autoPlay":true},"plugins":{"lighttpd":{"url":"flowplayer.pseudostreaming-3.1.3.swf"},"controls":{"url":"flowplayer.controls-3.1.5.swf","height":20,"fullscreen":true,"scrubber":true}}}' />
</object>

But this doesn't seem to work. Do you see what I'm doing wrong ?

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» » » » » » » Embeding flowplayer with starting play on xx second

Posted: Dec 7, 2009

Reply to: » » » » » » Embeding flowplayer with starting play on xx second, from beaart
Oops, I feared as much, but you weren't particularly clear about what you meant with embedding. And your first example was a JavaScript configuration ...

So: no, you can't do this inside a pure object tag, only static configuration is allowed there, no functions or events, as the object has to work without JavaScript.

beaart

Posts: 12

Registered:
Apr 27, 2009

» » » » » » » » Embeding flowplayer with starting play on xx second

Posted: Dec 7, 2009

Reply to: » » » » » » » Embeding flowplayer with starting play on xx second, from blacktrash
Okay thanks for your reply.

So there is no way I can accomplish this with current Flowplayer ?

Christian Ebert
Flowplayer support

Posts: 2803

Registered:
May 27, 2008

» » » » » » » » » Embeding flowplayer with starting play on xx second

Posted: Dec 7, 2009

Reply to: » » » » » » » » Embeding flowplayer with starting play on xx second, from beaart
Not that I can see within the constraints of a non-JavaScript configuration. You can, but only with JavaScript, because it adds dynamic capabilities. Which is why I use object embedding as additional fallback for users that have JavaScript disabled on my pages, for all others I make use of flowplayer's scripting capabilities.