PHPBB3 JW MP3 PLAYER

Discussion forum for MOD Writers regarding MOD Development.
Sir Glen
Registered User
Posts: 57
Joined: Fri Jun 27, 2008 7:43 pm

Re: PHPBB3 JW MP3 PLAYER

Post by Sir Glen »

Flash MP3 Player:

That looks like it could work, but I'm totally unfamiliar with JS. How do I set an ID for the flash within the <Object> tag? And after that can I simply use that action within the html document I use to trigger the flash? In other words, would it look like this:

Code: Select all

<object type="application/x-shockwave-flash" data="http://www.cn-invicta.com/player_mp3_maxi.swf" width="200" height="20">
     <param name="configxml" value="http://www.cn-invicta.com/config_maxi.xml" />
     <param name="movie" value="http://www.cn-invicta.com/player_mp3_maxi.swf" />
     <param name="FlashVars" value="mp3=http://www.cn-invicta.com/barracuda.mp3" />
</object>
// PLAY
document.getElementById("myFlash").SetVariable("player:jsPlay", "");
Or do I need to create some sort of JS file and refer to it within the html? Thanks again for the help!

And to a mod; yeah, splitting the topic would be handy. I suppose I could just create a new one, but it would be handy to be able to refer back to the last couple posts.
Last edited by Sir Glen on Wed Jul 15, 2009 4:21 am, edited 1 time in total.
Sir Glen
Registered User
Posts: 57
Joined: Fri Jun 27, 2008 7:43 pm

Re: PHPBB3 JW MP3 PLAYER

Post by Sir Glen »

Flash MP3 Player:

Ok, I'm partially an idiot; it's much simpler than I thought since ID's for flash objects apparently always refer to the flash movies themselves. As a result I did the following:

Code: Select all

<object type="application/x-shockwave-flash" data="http://www.cn-invicta.com/player_mp3_maxi.swf" width="200" height="20" id="myFlash">
     <param name="configxml" value="http://www.cn-invicta.com/config_maxi.xml" />
     <param name="movie" value="http://www.cn-invicta.com/player_mp3_maxi.swf" />
     <param name="FlashVars" value="mp3=http://www.cn-invicta.com/barracuda.mp3" />
// PLAY
document.getElementById("myFlash").SetVariable("player:jsPlay", "");
</object>
However, that didn't do it. It didn't blow anything up either, but it didn't work. Is there something I'm missunderstanding here? I am largely a flash/js novice so it wouldn't surprise me.
Sir Glen
Registered User
Posts: 57
Joined: Fri Jun 27, 2008 7:43 pm

Re: PHPBB3 JW MP3 PLAYER

Post by Sir Glen »

Bump!
dtleahy
Registered User
Posts: 169
Joined: Sun Aug 24, 2008 5:47 pm

Re: PHPBB3 JW MP3 PLAYER

Post by dtleahy »

Hi Glen,

I would recommend at this point that you go directly to the site that supports that code and ask for help. I had never seen their site before I mentioned it to you - I just found it in a Google search for "open source MP3 player" or something like that. I did get the JW Player to work, so I did not need to go elsewhere, but understand your desire to do so.

The folks at that site will answer you more quickly and accurately that I could, and I would need to stumble around with their code to keep trying variations on a theme until it works.


Poking around briefly on the flash-mp3-player.net pages, I see they have a code Generator, and it creates a chunk of code with an autoload and autoplay functionality, and appears to me that it is creating an embedded object.

Code: Select all

<object type="application/x-shockwave-flash" data="http://YourFullDomainURL/YourSubFolderWhereTheSWFFileIsLocated/player_mp3_maxi.swf" width="200" height="20">
    <param name="movie" value="http://YourFullDomainURL/YourSubFolderWhereTheSWFFileIsLocated/player_mp3_maxi.swf" />
    <param name="bgcolor" value="#ffffff" />
    <param name="FlashVars" value="mp3=mp3%3Dhttp%3A//www.cn-invicta.com/barracuda.mp3&autoplay=1&autoload=1" />
</object>
Oddly, I do not see where they ever call the XML file, not even in the case of a playlist. Look at the source code of the pages and you'll see how they load multiple MP3 filenames in the FlashVars, separated by a "pipe" symbol. It appears you can completely ignore any inclusion of an XML file for your site.

I suspect if you get the path correct, that you will not need anything except the SWF file to be loaded into the subfolder that you identified, and the MP3 file loaded into the subfolder that you identified (note that the flashvars within the object code use escape characters in the URL string to the MP3 URL), and the <object> code to be within the body section of the webpage (not in the <body> tag, but anywhere between

Code: Select all

<body>
and

Code: Select all

</body>
I had been thinking that you may need to call the player to play when the page opens, within the HTML <BODY> tag :

maybe something like:

Code: Select all

<BODY onload="document.getElementById("myFlash").SetVariable("player:jsPlay", "");">
but now that I actually looked around their site and see the embedded object code, I don't think you need anything extra within the BODY tag.

===============================
I just don't have time to explore this further. This will end my attempt to assist on this code that I have never used (but that appears to do what you want), and if the above info is not quite enough to get you to where you need to go, please contact the folks at the site where this particular player is supported.

Dennis
prokaka8
Registered User
Posts: 1
Joined: Tue Sep 29, 2009 1:22 pm

Re: PHPBB3 JW MP3 PLAYER

Post by prokaka8 »

hi everyone, i´m not english, therefore my language usage is very simple :mrgreen:

i made everything, that you say, but my jw player player still doesn´t work. I put the code on overall_header and put the code on forumlist_body. But my Flash player doesn´t work. I have on my forum one white square, nothing else, yesterday was written by forum that i have to download the Adobe Flash Player, but now, it is missing!
in pictures:
first part of forumlist_body.html
Image

second part of forumlist_body.html
Image

the overall_header.html
Image

and the forum itself:
Image



Please, help me, if you can, cause I still working on this, but i don´t know what to do :(

Maybe, i have problem with adobe flash player, but i have installed the 10 verison.

Thank you for helping me
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: PHPBB3 JW MP3 PLAYER

Post by ameisez »

What are you trying to do? Are you making a bbcode JW Player or you want the player to be available boardwide?

If the later, you might want to look at this BB3 MEDIA PLAYER, it uses JW 3.14

It will include bbcode instruction in future release.
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player
User avatar
rudolfpietersma
Registered User
Posts: 69
Joined: Sat Nov 01, 2008 8:01 pm

Re: PHPBB3 JW MP3 PLAYER

Post by rudolfpietersma »

Hi there,
I tried to get it to work, but I keep getting this message: "Get the Flash Player to see this player."

But flash works normally on other sites.
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: PHPBB3 JW MP3 PLAYER

Post by ameisez »

Which code you are trying ?

EDIT: If you are trying to make jw player bbcode, I have added it on my BB3 MEDIA PLAYER MOD. If you are interested you can check it live on MY DEMO PAGE
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player
hansgermany
Registered User
Posts: 3
Joined: Wed Mar 17, 2010 8:25 pm

Re: PHPBB3 JW MP3 PLAYER

Post by hansgermany »

Hi,

I installed it and it works fine but is there any chance to put more than one BB Code in one thread?


Image

EDIT by Brainy to combine posts:

How can I display the current song?
Last edited by hansgermany on Sun May 09, 2010 1:48 pm, edited 1 time in total.
User avatar
ameisez
Registered User
Posts: 1166
Joined: Sun Nov 04, 2007 7:04 am

Re: PHPBB3 JW MP3 PLAYER

Post by ameisez »

You need to supply different playerid. One solution is to add it as parameter...
PHPBB on HOSTGATOR SERVER. MY PERSONAL CHOICE ;)
Need phpBB images and buttons? HIRE ME
my MOD: BB3 Media Player | a phpbb based media player
alcantar
Registered User
Posts: 1
Joined: Tue Nov 05, 2013 4:08 am

Re: PHPBB3 JW MP3 PLAYER

Post by alcantar »

I, too, am not a coder (be gentle).

Is there a way to use another MP3 Player? I am interested in adding a FREE Player such as AIMP or aTUNES.

Any suggestions? (Advance thanx!)
Locked

Return to “[3.0.x] MOD Writers Discussion”