Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
OK, so I believe I have followed all the instructions. I have installed swfobject_API, added the nessicary google files and set up the profile for the "video" content type. I have uploaded a flv file and installed the mediaplayer file into the plugin directory. I have pointed the plugin at the resultant uploaded file and I get... NOTHING. No flashplayer displays on the page. I followed all the instructions in the documentation section to the letter and re-checked them twice.
What am I doing wrong?
Comments
Comment #1
arthurf CreditAttribution: arthurf commentedAre you sure you set the player path correctly? Can you load it from your browser?
Comment #2
Lebo77 CreditAttribution: Lebo77 commentedWow. After two days of messing around with this I discover it was a stupid path issue. *smacks head*. Never mind.
Comment #3
niner94949 CreditAttribution: niner94949 commentedLebo77 - I'm also having this issue. What paths did you have set incorrectly? Also, in your original description you mention "installed the mediaplayer file into the plugin directory"...which plugin directory is this? I don't recall reading about a plugin directory. This is getting frustrating. Thank you for your assistance.
Comment #4
arthurf CreditAttribution: arthurf commentedI've been installing the player in /sites/YOURSITE/flash This allows me to keep the player under version control while being able to easily upgrade the flvmediaplayer module. Your path would then be: sites/YOURSITE/flash/player.swf
Comment #5
niner94949 CreditAttribution: niner94949 commentedThanks arthurf. I just gave that a try, without success. Right now I'm using the default garland, so the path in the example below is a bit different.
Here is the issue I'm having.
For testing purposes, I copied all of the examples from http://malsup.com/jquery/media/video.html.
This one doesn't work:
<a class="media {width:250, height:250}" href="http://malsup.com/jquery/media/flash/curtain.flv">FLV File</a>
This one does work:
<a class="media {width:250, height:250}" href="http://malsup.com/jquery/media/mediaplayer.swf?file=flash/curtain.flv">SWF with FLV (mediaplayer.swf?file=curtain.flv)</a>
When using filefield with my own upload, here is what the code looks like in firebug. The FLV file does not display. It looks like it is trying to work, because there isn't a link, it's just blank. Hopefully I've explained this well enough.
<object height="400" width="400" type="application/x-shockwave-flash" data="/themes/garland/flash/mediaplayer.swf?file=http%3A%2F%2Fsubdomain.example.com%2Fsites%2Fdefault%2Ffiles%2Fdocuments%2FHospitality_1.flv" id="movie_player_1" style="visibility: visible;"><param name="bgColor" value="#ffffff"/><param name="wmode" value="transparent"/><param name="autoplay" value="false"/><param name="flashvars" value="file=http%3A%2F%2Fsubdomain.example.com%2Fsites%2Fdefault%2Ffiles%2Fdocuments%2FHospitality_1.flv"/></object>
Comment #6
arthurf CreditAttribution: arthurf commentedthe problem is this:
http%3A%2F%2Fsubdomain.example.com%2Fsites%2Fdefault%2Ffiles%2Fdocuments%2FHospitality_1.flv
Note the url
Comment #7
niner94949 CreditAttribution: niner94949 commentedWhat do you see wrong with it?
Comment #8
arthurf CreditAttribution: arthurf commentedIs your domain "subdomain.example.com" ?
Comment #9
niner94949 CreditAttribution: niner94949 commentedNo. I intentionally didn't include it for this post.
Comment #10
arthurf CreditAttribution: arthurf commentedCan you give me an actual url to look at?
Comment #11
niner94949 CreditAttribution: niner94949 commentedI've just sent you a message with the url. Thanks.
Comment #12
niner94949 CreditAttribution: niner94949 commentedThis is just as a follow up for anyone who follows this thread. The initial description above left by Lebo77 was very similar to the issue I was seeing, but was NOT related to the FLV Media Player project.
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.