Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Bhavik Kama
JWPLAYER NOT WORKING...
October 16, 2012 6:12 AM
Answer

Bhavik Kama

Rank: Junior Member

Posts: 55

Join Date: September 23, 2012

Recent Posts

Hi,

I cant make it play the video of embed url with the jwplayer

in my view file i am implmenting the jwlayer with follwoing

 1 <script type="text/javascript">
 2jwplayer("container").setup({
 3flashplayer: "/js/player.swf"
 4});
 5</script>
 6   
 7</head>
 8<body>
 9
10<video
11src="<%=vid_url %>"
12height="270"
13id="container"
14poster="/thumbs/image.jpg"
15width="480">
16</video>

this is how am inlucding jwplayer.js file
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jwplayer/jwplayer.js"></script>

but its now working...any thing am doing wrong?

here <%= vid_url%> is coming dynamically from database that is embeded url
Vitaliy Koshelenko
RE: JWPLAYER NOT WORKING...
October 16, 2012 8:43 AM
Answer

Vitaliy Koshelenko

Rank: Expert

Posts: 287

Join Date: March 25, 2011

Recent Posts

Hi, Bhravik.

As I know, jwPlayer accepts only URLs which are finished with correct video extension (for example, "test_video.avi").
Check if your vid_url (that is coming from db) ends with such an extension.

Vitaliy
Hamish Campbell
RE: JWPLAYER NOT WORKING...
October 16, 2012 1:58 PM
Answer

Hamish Campbell

Rank: Junior Member

Posts: 87

Join Date: August 20, 2008

Recent Posts

visionOntv are working on a OS gadget to work with Liferay and JW player, you can find the beta here http://openplayer.herokuapp.com/static/openplayer-1.0.xml new version coming at the end of the week.