Go
Not registered? Sign up!

insert JW FLV Player in PHPMELODY

Google Translate
26 posts | return to the Modules forum | get the rss feed for this thread

Mar. 03, 2008haithem

HI

I'am using phpmelody (script) and i want replace youtube player with JW FLV Player .

Like this http://video.latest-hits.eu/

thank you

Mar. 12, 2008pe6o

YES, help me

Mar. 19, 2008Echopros

hello
100 Euros i'll help you of corse
here is an exemple wink http://www.videos.maroc3m.com/

Mar. 26, 2008Joshua

Hi...
Dont spend money... PHP Melody 1.5 is include this feature.....

Mar. 31, 2008Echopros

Joshua,
No sir there is no things let you add lv or wmv in phpmelody just youtube's videos wink i you're right show them how to do that
i edited it to add wmv and flv files

Apr. 13, 2008Peft

Yes, please tell me to insert this player?

Apr. 15, 2008MENDIM

i have the tempalte email me and i can send it to you
mendimdj@hotmail.com

May. 02, 2008mendim

http://rapidshare.com/files/111990821/venet.zip

visit my web for more scripts
www.allthingz.net

May. 15, 2008Pefsss

Don`t working... my videos page is musicvideo.php i don`t use a "Rewrite" mod!

Jun. 17, 2008phplearner

have u got that them if so please uploead this again

Jul. 22, 2008Lazydesis

How to insert JW player in PHP Melody

open "include/functions.php"

Around line 242, you will see the function make_youtube_player

Delete the entire function and in its place put this


function make_youtube_player($y_id, $length, $width = '496', $height = '401', $auto_play = '1') {

$video = $y_id;
$urls = "http://www.youtube.com/v/$video.swf";

$get_header = @getheaders($urls, 0);
$wanteds = $get_header[4];
$newstr = explode('.swf?',$wanteds);

$var = explode("&",$newstr[1]);
$key = 4;
foreach($var as $k => $v)
{
if( substr($v, 0, 2) == "t=" )
$key = $k;
}
$file = simplexml_load_file("http://youtube.com/api2_rest?method=youtube.videos.get_video_token&video_id=$y_id");
$file = "http://youtube.com/get_video?video_id=$y_id%26t=$file->t";
$player = "<script type='text/javascript' src='http://www.jeroenwijering.com/embed/swfobject.js'></script>
<div id='player'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('http://www.jeroenwijering.com/embed/player.swf','mpl','500','400','9');
so.addParam('allowscriptaccess','always');
so.addParam('allowfullscreen','true');
so.addParam('flashvars','&file=".$file."&type=video&volume=75&autostart=true&caption=false&fullscreen=true&stretching=exactfit');
so.write('player');
</script>";
return $player;
}


Save and upload .. u are done wink

Aug. 10, 2008Dragon

Very very thanks.
Works excelent¡¡.

Aug. 12, 2008hello

it doesn't work for me...!
can you put me this file to download that i will need just to download from here and upload to my web???

Oct. 30, 2008hi

hello
me phpmelody 1.5. I can just for video youtube utilise youtube player and dont original player? thankx

Nov. 29, 2008kilzone

This doesn't work on 1.5.1 . Does anybody have a code to use jw player instead of the default?? i will pay the person who knows

Dec. 17, 2008Hello

i want to insert flv player in php

Dec. 17, 2008Hello

i want to insert flv player in php

anyone help me

give me script if you can

Feb. 18, 2009Andy

Hello, is here a person that will help us, maybe from Longtailvideo. We would like only use the ads on our player.
Current Version: 1.5.2

Thanks for help. E-Mail is cyvido@gmail.com

May. 22, 2009fdgfd

fgfdg

May. 22, 2009hai

i want to insert flv player in php

anyone help me

give me script if you can

May. 22, 2009hai

i want to insert flv player in php

anyone help me

give me script if you can

my email is nandha44@yahoo.com

May. 26, 2009Johnny

PHP Melody 1.5.3 version, dont work with JW.

Anyone help me ?

Sep. 22, 2009Flv player

can anyone say me how to play a flv file in asp.net and aid me a sample codes do to that Awaiting for ur reply experts...

Oct. 04, 2009doug

thanks man, that works for me.....

Oct. 09, 2009chluh

PHP Melody 1.6 version, dont work with JW.

Oct. 10, 2009miner

why does my player (on 1.5.3) doesn't shows?
http://brutality.byethost4.com/ .. :(

Add a reaction

You can also return to the category or try this search for related threads.


 

Search the Forums

Go

Support

Support Here are some helpful links to learn more about the JW Player™:

Monetize Your Video

Monetize Your Video Earn money with ads from LongTail's AdSolution. Watch our demos and sign up now!

Why Buy a License?

Why Buy a License? If you don’t buy a commercial license, you cannot use a JW Player™ on (i) a site that has ads; (ii) a corporate site; or a (iii) CMS. Our licenses are very inexpensive, so what are you waiting for? Buy a license today.