Can't render embedded video

trenchard - December 15, 2008 - 05:33
Project:jQuery Media
Version:6.x-1.4-beta1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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??

#1

trenchard - December 15, 2008 - 05:52

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:&nbsp;</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

marcuzlim - January 19, 2009 - 02:23

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

mustardman - January 21, 2009 - 15:28

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

germinal - January 21, 2009 - 23:19

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

mustardman - January 23, 2009 - 03:14

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

mustardman - January 25, 2009 - 18:41

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

niner94949 - July 8, 2009 - 06:03

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

niner94949 - July 9, 2009 - 15:15

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.

 
 

Drupal is a registered trademark of Dries Buytaert.