XFileSharing Pro - flowplayer

Message
Author
flashdriveit
Posts: 11
Joined: May 03, 2012 2:28 pm

flowplayer

#1 Postby flashdriveit » Aug 22, 2012 10:29 am

hello,
I wanted to change player to xfs putting flowplayer, the admin gave me this code that only works on iPad but not on pc, on the server the h264 module for apache is enable but not work.



Code: Select all

my $code = <<BLOCK
flowplayer('player', '$c->{site_url}/flowplayer-3.2.14.swf', {
clip: {
autoPlay: false,


},

playlist: [
'$file->{direct_link}',
],



}).ipad();
BLOCK
;
$code = &encodeJS($code);
$file->{flv}=1;
$file->{video_code} = <<BLOCK 
<span id='player' style='display:block;width:$c->{m_v_width}px;height:$c->{m_v_height}px'></span>
<script type='text/javascript' src='$c->{site_url}/flowplayer-3.2.11.min.js'></script>
<script type='text/javascript' src='$c->{site_url}/flowplayer.ipad-3.2.11.min.js'></script>
$code
<br>
BLOCK
;

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#2 Postby PowerChaos » Aug 23, 2012 12:15 am

it depends what version you have
in my case i use version 1.8 and took me a long time to get iphone working (html5 jwplayer and a lot of changes to some code )

from the code i read , does it says ipad only
i do not know exactly how flowplayer works , but does it not need to look like this ??

Code: Select all

my $code = <<BLOCK 
flowplayer('player', '$c->{site_url}/flowplayer-3.2.14.swf', { 
clip: { 
autoPlay: false, 
}, 
playlist: [ 
'$file->{direct_link}', 
], 
}).ipad(); 
BLOCK 
; 
$code = &encodeJS($code); 
$file->{flv}=1; 
$file->{video_code} = <<BLOCK  
<script type='text/javascript' src='$c->{site_url}/flowplayer-3.2.11.min.js'></script> 
<script type='text/javascript' src='$c->{site_url}/flowplayer.ipad-3.2.11.min.js'></script>
<a href='$file->{direct_link}'
       style='display:block;width:$c->{m_v_width}px;height:$c->{m_v_height}px'
       id='player'>
    </a>
$code 
<br> 
BLOCK 
;
because the simple reason why it does not work on pc is because the file is missing ...

here is the ipad example of flowplayer from there site

Code: Select all

<!-- player container-->
<a href="http://pseudo01.hddn.com/vod/demo.flowplayervod/flowplayer-ios.mp4"    class="player"
    style="display:block;width:425px;height:300px;margin:10px auto"
    id="player">
    </a>

</div>
<script>
    head.js(
        "http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js",
        "http://cdn.jquerytools.org/1.2.6/all/jquery.tools.min.js",
        "http://releases.flowplayer.org/js/flowplayer-3.2.11.min.js", function(){
            
head.js("http://releases.flowplayer.org/js/flowplayer.ipad-3.2.11.min.js");

    });
    head.ready(function() {
        $f("player", "http://releases.flowplayer.org/swf/flowplayer-3.2.14.swf").ipad();

    });
</script>
ofcourse there are other scripts in it to as it is from there main site (source code)

hopely this can help you

ps: it depends also what version of xfs you have for what code you need to use

Greetings From PowerChaos

flashdriveit
Posts: 11
Joined: May 03, 2012 2:28 pm

#3 Postby flashdriveit » Aug 23, 2012 7:53 am

thanks for the help PowerChaos but i choose floplayer just because jwplayer does not support iphone and ipad! The version of flowplayer is the last and the 2.2.7 instead is the version of h264 module for apache. The module work but the player, also activating the pseudostreaming not work on pc but only on ipad and iphone

PS use xfs 2.0 and the code is in the file index.pm

Code: Select all

my $code = <<BLOCK
flowplayer('player', '$c->{site_url}/flowplayer-3.2.14.swf', {
clip: {
autoPlay: false,
autoBuffering: false,
provider: 'pseudo',
},

playlist: [
'$direct_link',
],

plugins: {
pseudo: {
url: "$c->{site_url}/flowplayer.pseudostreaming-3.2.10.swf",
}
},
});
BLOCK
;
$code = &encodeJS($code);
$file->{flv}=1;
$file->{video_code} = <<BLOCK 
<span id='player' style='display:block;width:$c->{m_v_width}px;height:$c->{m_v_height}px'></span>
<script type='text/javascript' src='$c->{site_url}/flowplayer-3.2.11.min.js'></script>
<script type='text/javascript' src='$c->{site_url}/flowplayer.ipad-3.2.11.min.js'></script>
$code
<br>
BLOCK
;

The jwplayer support html5 for streaming on mobile?

thanks fo the help

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm

#4 Postby PowerChaos » Aug 23, 2012 10:05 am

well
here is a demo in case you do not belive me

i use version 1.8 and normaly it does not support iphone but i could fix it :D

from the info i got , it does works from version 2.0 with out to mutch modification ( only the player need to be a html5 player )

for versions lower then 2.0 is a lot of modification needed to get it working

anyway , here is the demo with jwplayer
Arno Je veux Nager.flv.mp4 - 45.7 MB

also here is the embed code
http://www.boosterking.com/embed-810pk4r28k99.html

Greetings From PowerChaos

flashdriveit
Posts: 11
Joined: May 03, 2012 2:28 pm

#5 Postby flashdriveit » Aug 23, 2012 6:28 pm

thanks PowerChaos,
I solved it in the end I kept jwplayer, I saw that the site of the player there is the embed code for support of HTML5. The only problem is I can not find the file index.pm the string that indicates the link to the file (eg http:// www.domain.com / xxxxxxxxx) to insert it into the sharing plugin jwplayer