Posted by trenchard on December 15, 2008 at 5:33am
Jump to:
| Project: | jQuery Media |
| Version: | 6.x-1.3 |
| Component: | User interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I can't get this to work despite my best efforts in reading and re-reading everything I can find on this. The source show all the needed includes, but the file link in not swapped out for the player. The player path is tested.
My config:
Drupal: 6.6
jQuery: 6.x-1.2
jQuery Media: 6.x-1.4-beta1
FileField: 6.x-3.0-alpha5
What can I try next??
Comments
#1
I've tried .filefield-file a and .filefield-items a classes. Here is my source:
<div id="node-85" class="node odd full-node node-type-video">
<div class="meta">
<span class="submitted">Posted Sun, 12/14/2008 - 9:13pm by <a href="/user/1" title="View user profile.">name</a></span>
</div>
<div class="content">
<div class="field field-type-filefield field-field-videofile">
<div class="field-label">Video File Name: </div>
<div class="field-items">
<div class="field-item odd">
<div class="filefield-file clear-block">
<div class="filefield-icon field-icon-video-x-msvideo">
<img class="field-icon-video-x-msvideo" alt="video/x-msvideo icon" src="http://www.mydomain.net/sites/all/modules/filefield/icons/protocons/16x16/mimetypes/video-x-generic.png" /></div><a href="http://www.mydomain.net/sites/default/files/video/MVI_2646.AVI">MVI_2646.AVI</a></div> </div>
</div>
</div>
</div>
#2
Hi trenchard,
I'm interested in the media project too. Right now after my research, I'm still undecisive between DNN & Drupal. Appeciate if you can give some comment and help. You can email me if needed. Thank you.
#3
I believe I am having the exact same problem. If you are not using an embedded video player Drupal will try use your browser so your browser needs to support the video format. For an avi your browser needs to have the .avi plugin. The browser does not seem to have a problem finding the file.
In the case of using an embedded video player such as JW FLV media player, I cannot get it to work. Does not matter what media player I try. Yes I have clean urls enabled. I have concluded that it has to do with how jquery media module handles the pointer to the media file. If I eliminate the "http://mydomain.com" part of the pointer so it just uses the webroot file location without the domain it works fine.
The only solution I can think of is to modify the jquery.media.js file so the http://mydomain.com part of the file pointer is removed. There are instructions on another issue thread but I cannot get it to work.
#4
I have exact the same problem... spent alot of time on this...
Jquery_media / filefield and JW player / drupal 6.9 and CCK (all the last versions)
a clean fresh install...
I just get a link to the file after uploading the node with the filefield enabled... I DID configure the jquery_media module... set the path to the JW player.. alas... nothing...
it seems like jquery isnt doing anything.. and the problem is I do not get errors... so I can t troubleshoot...
drupal and video don t seem to 'mingle' that wel :s
just want to get it embedded instead of a link on the node
#5
If you just get a link to the file that probably means that you did not configure jquery media module to point to the proper location of your player.swf file. If you put it in webroot then just enter "player.swf" in the appropriate location in the jquery media module configuration section in Admin.
That will get you to where I am which is where you will see a big white box but will not see the file play. The reason (I believe) is because JW player cannot find the file. This jquery media module seems to be quite buggy still. Lots of people seem to be having various problems.
#6
The error should be indicated in Admin>Reports>Recent log entries as a 403.shtml error if you have reporting set up.
Here is the error I get:
Details
Type page not found
Date Sunday, January 25, 2009 - 08:52
User admin
Location http://www.mydomain.com/sites/all/modules/flvmediaplayer/player.swf?file...
Referrer http://www.mydomain.com/category/video
Message 403.shtml
Severity warning
Hostname xx.xx.xx.xx
Operations
If I cut and paste the "http://www.mydomain.com/sites/all/modules/flvmediaplayer/player.swf" into a browser the player comes up so that part works.
The "file=http://www.mydomain.com/sites/default/files/video/video.flv" part comes up "page not found" even though I have triple checked that it is there in that exact spot. If I change it to "file=/sites/default/files/video/video.flv" so that the whole line in the browser is "http://www.mydomain.com/sites/all/modules/flvmediaplayer/player.swf?file=/sites/default/files/video/video.flv" then it works.
So one way to fix this (I think) is to modify the jquery.media.js to strip out the domain part of the file pointer. The issue at this link (http://drupal.org/node/338220) addresses it but I could not get the modification posted in there to work and I am not a coder so I don't know how to do it myself.
Note:Even though I am using flvmediaplayer in this example (to try solve my problem), it still occurs if I do not. It still occurs on a fresh install with just the required modules. It still occurs no matter where I put the player and video file and I have tried many many different locations.
#7
mustardman - Did you ever find a solution? I am having the same issue and also find that if I remove the domain from the url using firebug in Firefox, then the JW FLV player appears and the video starts to play. Any help is appreciated. This is driving me up a wall.
#8
This is just as a follow up for anyone who follows this thread.
I was using the Filefield module and Jquery Media module combination in order to display video. You can see the tutorial here. http://drupaltherapy.com/node/50. This combo worked for all video types except FLV for some reason.
After countless hours of research, I finally decided to go a different route for FLV files. Using Filefield and SWFTools for Drupal 6 worked. I had it set up in 10 minutes, no problem. You can see a video tutorial here. http://mustardseedmedia.com/podcast/episode17
Hope this helps somebody out there.
#9
Unfortunately also have the same problem. Using JW Player.
Tried the COMPLETELY USELESS AND MISLEADING video instructions first. If there's so much configuration that we have to get right, why do they tell us in the video that all we need to do is install and do two clicks? Why is that video still linked to from the module page if it's out of date? Very frustrating.
Have renamed the folder where the media player lives (in the root folder) to 'player' so that the path is player/player.js or player/player.swf
Checked the logs. Ensured that the javascript call in the header is:
<script type="text/javascript" src="/player/jwplayer.js"></script>...and fussed with the paths in the configuration page until there were no more 'page not found' errors.
Could not find anything pointing to the root path URL in the jquery.media.js.
Now there are no more errors. Nothing shows up in the logs. It still doesn't render. I've found the player by putting the URL in my browser window. It shows up.
If I do mustardman's URL hack, where I put the URL then the file URL, it works.
http://mysite/player/player.swf?file=/sites/default/files/videos-attached/mymovie.mp4It seems the problem is with the call in the template.
<?php jq_add('jquery_media'); print l($node->title , $node->field_video_file[0]['filepath'], array('class' => 'video-media')); ?>or the call in the header of the page.tpl.php
<script type="text/javascript" src="/player/jwplayer.js"></script>EDIT: Am bailing on this module in favor of SWF Tools. The video mentioned above is pretty good, and while it take longer than ten minutes, you can leave JW Player installed, just move it to the shared folder and rename its folder as mentioned in the video. Compared to trying to get this nightmare to work, it's no time at all.
If you use JW Player, you can use other file extensions, and get the gracefully degrading goodness you need to display for iStuff, Droidstuff and all the browsers your client's heart desires.