How to add jwplayer?

Get help developing custom BBCodes or request one.
Post Reply
Difadon
Registered User
Posts: 55
Joined: Wed Nov 06, 2013 3:36 pm
Location: Špindlerův Mlýn
Name: Jan Nejedlý
Contact:

How to add jwplayer?

Post by Difadon »

Hello,

I tried add jwplayer to phpBB.

I add to overall_header before </head>:

Code: Select all

​<script src="{ROOT_PATH}jwplayer/jwplayer.js" ></script>
<script>jwplayer.key="licence key";</script>
BBCODE:

Code: Select all

[test]{URL}[/test]
HTML:

Code: Select all

<div id="myElement">Loading the player...</div>
<script type="text/javascript">
var playerInstance = jwplayer("myElement");
playerInstance.setup({
file: "{URL}",
width: 640,
height: 360
});
</script>
Add to topic:

Code: Select all

[test]https://www.youtube.com/watch?v=9HE5MQ3eFC8[/test]
But the player does not appear. :(
Last edited by Oyabun1 on Wed Nov 04, 2015 9:06 am, edited 1 time in total.
5hocK
Registered User
Posts: 3139
Joined: Wed Nov 23, 2011 7:00 pm
Location: UK

Re: How to add jwplayer?

Post by 5hocK »

Have to ask - You uploaded the jwplayer to {ROOT_PATH}jwplayer/ and entered the license key into the header?
Difadon
Registered User
Posts: 55
Joined: Wed Nov 06, 2013 3:36 pm
Location: Špindlerův Mlýn
Name: Jan Nejedlý
Contact:

Re: How to add jwplayer?

Post by Difadon »

Yes.
5hocK
Registered User
Posts: 3139
Joined: Wed Nov 23, 2011 7:00 pm
Location: UK

Re: How to add jwplayer?

Post by 5hocK »

I've used your code here http://phpbbmods.co.uk/viewtopic.php?f=25&t=307
...and done exactly what's described in this topic.
Difadon
Registered User
Posts: 55
Joined: Wed Nov 06, 2013 3:36 pm
Location: Špindlerův Mlýn
Name: Jan Nejedlý
Contact:

Re: How to add jwplayer?

Post by Difadon »

hm...
Free licence or Payd licence?

You can send me a "manual"? Because i have a blank post in my forum. :D
5hocK
Registered User
Posts: 3139
Joined: Wed Nov 23, 2011 7:00 pm
Location: UK

Re: How to add jwplayer?

Post by 5hocK »

Free license. I have no manual to send :?

Edit: Just checking you jwplayer directory is in the right place
jwcheck.png
jwcheck.png (9.38 KiB) Viewed 2471 times
Last edited by 5hocK on Wed Nov 04, 2015 9:01 am, edited 1 time in total.
Difadon
Registered User
Posts: 55
Joined: Wed Nov 06, 2013 3:36 pm
Location: Špindlerův Mlýn
Name: Jan Nejedlý
Contact:

Re: How to add jwplayer?

Post by Difadon »

hm... i test install again and now is working. :D Thanks :)
Jef Horians
Registered User
Posts: 40
Joined: Tue Jul 25, 2017 12:32 pm

Re: How to add jwplayer?

Post by Jef Horians »

Hello.

Old thread but how do you get this to work?
I'm new to phpBB.
Original post seems to be gone.

Jef
Post Reply

Return to “Custom BBCode Development and Requests”