Active
Project:
JW Player Module for Drupal
Version:
6.x-1.3
Component:
Miscellaneous
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Dec 2010 at 19:12 UTC
Updated:
23 Feb 2012 at 21:15 UTC
Hi
It works pretty well with attached files, but as I add a new filefield with cck, JWplayer doesn't see it.
I've tried [jwplayer|file=mp3preview] (mp3preview is the name of my filefield).
In vain.
Does someone how to fix this ?
thx
Comments
Comment #1
JW Player commented@artatum,
The jwplayer tag only works in the node body which is why you're having difficulty getting it to work with a cck field (we're looking to address this in future versions).
The module makes the embedding code available as part of a theme function so you can use that as a workaround. An example would look like the following:
Let me know if that helps.
Thanks.
Comment #2
maru06 commentedComment #3
rickvug commentedRenaming this issue for clarity. There is no question that JW Player should work as a field formatter for CCK in D6 and Field API in Drupal 7. This is a much more common use case than having an embed code. In Drupal 7 the Media project can take care of the embed code work.
Comment #4
guitarman2 commentedThanks. It worked for me!
Comment #5
JW Player commentedGlad you got it working.
We're investigating Drupal 7 currently.
Thanks.
Comment #6
adrianmak commenteddo u mean the custom formatter module in d6 ?
Comment #7
pelleas commented@ LongTail Video - Thank you for the code, it worked for me but not all the way.
I have 2 cck fields: 1 file upload for the video and 1 for the image but:
1. The thumbnail doesn't show and
2. The video plays only in the teaser, in full node I get the following message:
"Video not found or access denied: sites/default/tutorials/movie.mp4"
I'm using the following code in my node-video.tpl.php
Any help appreciated.
Thank you.
Comment #8
JW Player commentedHmm, seems like a relative path issue since viewing the node will change the page URL. Have you tried prepending a '/' to the path? Alternatively you could dynamically construct the entire URL using $base_url.
Thanks.
Comment #9
pelleas commented@LongTail Video - you are right, there was a relative path issue. I've put '/' to the path and everything work perfect now. Thank you so much for your advice.
The modified code looks like this(maybe this will help anybody else):