Closed (fixed)
Project:
XSPF Playlist
Version:
5.x-0.12
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 May 2008 at 01:44 UTC
Updated:
23 Jul 2008 at 10:56 UTC
Hello,
i'm unable to get the FLV player working. After viewing the code, i find the file URL is not correct. I'm running test site on localhost and DO NOT have clean URL, any idea??
Here is the sorce:
<div id="flashcontent_mediaplayer_1" >Sorry, you need to install flash to see this content.</div>
<script type="text/javascript" src="/sanatanjagruti/sites/all/modules/swfobject_api/swfobject.js"></script><script type="text/javascript">var so1 = new SWFObject('/sanatanjagruti/sites/all/modules/flvmediaplayer/mediaplayer.swf', 'swf_mediaplayer_1', '320', '240', '5', '#FFFFFF');
so1.addParam('type', 'movie');
so1.addParam('allowfullscreen', 'false');
so1.addParam('allowscriptaccess', 'true');
so1.addVariable('width', "320");
so1.addVariable('height', "240");
so1.addVariable('file', "http://localhost/sanatanjagruti/xspf/node/171");
so1.addVariable('enablejs', "true");
so1.addVariable('allowscriptaccess', "always");
so1.addVariable('shuffle', "false");
so1.addVariable('overstretch', "none");
so1.addVariable('repeat', "list");
$(document).ready(function () { so1.write("flashcontent_mediaplayer_1");}); </script>
Comments
Comment #1
ranavaibhavi forgot to say i can see the playlist from below address:
http://localhost/sanatanjagruti/?q=xspf/node/171
Comment #2
ranavaibhavResolved...Found code from other issue:
USE AT YOUR OWN RISK!! IT WORKED FOR ME...
Replace this code from "xspf_playlist.module"
With this
Comment #3
arthurf commentedHi-
Thanks for being interested in trying to fix a problem. First off, generally supplying a patch is the best way to offer code- if you don't know about patching, you might want to read this: http://drupal.org/patch/create Secondly, it would be good to try to identify what's going on first before trying take apart an admittedly hacky part of a module.
From reading the first post, I think the issue if that swf file thinks it's in a different domain than the xspf playlist. My hunch is that adding the http://localhost/ to the flvmediaplayer setting for the swf file location would resolve this.
Can you try fixing that first, and see if that takes care of the issue?
Comment #4
arthurf commentedHi-
Thanks for being interested in trying to fix a problem. First off, generally supplying a patch is the best way to offer code- if you don't know about patching, you might want to read this: http://drupal.org/patch/create Secondly, it would be good to try to identify what's going on first before trying take apart an admittedly hacky part of a module.
From reading the first post, I think the issue if that swf file thinks it's in a different domain than the xspf playlist. My hunch is that adding the http://localhost/ to the flvmediaplayer setting for the swf file location would resolve this.
Can you try fixing that first, and see if that takes care of the issue?
Comment #5
nedjoThe issue was indeed in
xspf_playlist_url(), which assumed clean URLs.A fix has been included in the refactoring done in http://drupal.org/node/275902.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.