Hi
I am new in Drupal. I have installed FLV media player & place the mediaplayer.swf file (from http://www.jeroenwijering.com/?item=JW_FLV_Player ) in this "flvmediaplayer" directory and set configuration options per content type at admin/settings/flvmediaplayer .
I followed these steps to install "swfobject_api" module
1) Please module into modules directory
2) Download SWFObject library from:
http://blog.deconcept.com/swfobject/#download
3) Place the swfobject.js file into modules/swfobject_api/
4) Place the expressinstall.swf file into modules/swfobject_api/
5) Activate module in admin/build/modules
6) Configure the module via admin/settings/swfobject_api

i installed "XSPF Playlist" also ans media file as "XSPF Playlist for each node"
I enabled player for "story " content type
I uploaded one "20051210-w50s.flv " in story attachment but player is not displayed but only flash is available on story page . on right click some option like "about JW player 3.16" "about adobe flash player 9".
Please help me what is missed by me to install JW player.
Thanks in advance
Braham

Comments

braham.p’s picture

Assigned: braham.p » Unassigned
vv33’s picture

You must enable the swf tags

Administer -> Site Configuration -> Input format and select Configure behind Filtered HTML.
Select at the top configure again. You now see a text area with the label: Allowed HTML tags. Add the following tags at the end; "swf " and "swf list".
Save configuration!

Hope this helps

arthurf’s picture

Status: Active » Postponed (maintainer needs more info)

If you can give us a url, it will be easier to help you, but it sounds like you didn't set FLVMediaplayer to use the XSPF playlist- go back to that configuration, and confirm that.

xoail’s picture

Priority: Normal » Critical

Hi Arthurf,

I am also a little bit confused here. I've been stuck here since last 2 days.. researched here and there but no help.

I am trying to add flv player on a node and run a playlist created via xspf.

This is what I did:

Installed swfobject_api successfully
Installed xspf-playlist and configured it successfully. I came to a point where I am able to view the playlist properly.
Installed Flv media player (and JW media player) and configured it successfully

Added content type, assigned it to respective places etc etc. I did everything I could have done but I am sure there still something more it.

as of now, you can see how it looks here jobresident.com... as of now.. I am totally lost and seriously need some help.

Anybody!!!

arthurf’s picture

Some quick thoughts:
* player does not show here: http://jobresident.com/ because you need to your flvmediaplayer profile to display in teasers (if you want that)
* player is not showing on node/2 because:

$(document).ready(function () {
  var flashvars = { "file": "", "no_flash": null, "path": "/sites/all/modules/flvmediaplayer/player.swf", "height": "280", "width": "400", "fullscreen": "true", "bufferlength": "0.1", "quality": "true", "stretching": "uniform", "allowscriptaccess": "true", "profile": "basic", "name": "basic" };
  var params = { "width": "400", "height": "280", "no_flash": "Sorry, you need to install flash to see this content.", "version": "5", "type": "movie", "bg_color": "#FFFFFF", "allowfullscreen": "true", "allowscriptaccess": "always", "express_redirect": "/sites/all/modules/swfobject_api/expressinstall.swf" };
  var attributes = null;
  swfobject.embedSWF('/sites/all/modules/flvmediaplayer/player.swf', 'flashcontent_player_1', '400', '280', '5', '/sites/all/modules/swfobject_api/expressinstall.swf', flashvars, params, attributes );
}); 

Notes the "file": ""

Try setting the "use file" option in your flvmediaplayer to the xspf-playlist option.

let me know how this works for you.

arthurf’s picture

Woops, that second point should have read:
* player does not have video on node/2 beacuse

xoail’s picture

thanks!

I actually have "XSPF playlist for each node" selected in Media file drop down. Isnt that it, or am I missing something?

arthurf’s picture

Something is overriding that setting as the file attribute that is generated is empty. Do you maybe have a single space in the "File location: " option? Also would be good to make sure your cache is cleared and that you have saved your profile recently so that it clears the profile cache.

xoail’s picture

Yeah I checked it. There is no space or anything for "File Location" field.
Would you be able to figure out if you can access the admin?

arthurf’s picture

Ok, there is/was a strange version collision between XSPF and FLV Media Player. I've done some substancial revision and I think this should be solved for you if you update to the latests versions of both modules.

The details are that when FLVMP requested the file path from XSPF, XSPF sees if it can create data from the particular node. For some reason (I don't know why) $node->files does not have data when the $node gets passed around. I cleaned this up, as well as a number of other function calls.

xoail’s picture

Hi arthurf,

I upgraded both the modules and things seams to work a little.... only problem is, its not playing all the files that are there in the playlist but only the first file. plus, I have it set to autostart which doesnt seem to be happening..thanks for all your help...

1 question: how can I load the player load in a table (using tinymce), is that possible?

xoail’s picture

ok.. I tried changing settings here and there but no help... the flvmp is playing only the first track in the list. Although the source code looks something like this now:

 $(document).ready(function () {
  var flashvars = { "file": "http://www.jobresident.com/xspf/node/2", "no_flash": null, "player_node_body": 1, "layout_height": "280", "layout_width": "400", "playback_fullscreen": "true", "playback_autostart": 1, "playback_bufferlength": "0.1", "playback_displayclick": "2", "playback_quality": "true", "playback_stretching": "uniform", "playback_allowscriptaccess": "true", "embed_profile": "basic", "embed_teaser": 1, "flash_noflash_hook": "none", "profile_name": "basic" };
  var params = { "width": "400", "height": "280", "no_flash": "Sorry, you need to install flash to see this content.", "version": "5", "type": "movie", "bg_color": "#FFFFFF", "allowfullscreen": "true", "allowscriptaccess": "always", "express_redirect": "/sites/all/modules/swfobject_api/expressinstall.swf" };
  var attributes = null;
  swfobject.embedSWF('/sites/all/modules/flvmediaplayer/player.swf', 'flashcontent_player_1', '400', '280', '5', '/sites/all/modules/swfobject_api/expressinstall.swf', flashvars, params, attributes );
}); 

If I look at the playlist, it is showing all the files. Just the player isnt playing all of them.

arthurf’s picture

You need a crossdomain.xml file in your root directory. It should be something like:


<?xml version="1.0"

"http://www.macromedia.com/xml/dtds/
cross-domain-policy.dtd">


?>

xoail’s picture

So I added a crossdomain.xml file in the root folder with the following code:

<?xml version="1.0"?><!DOCTYPE cross-domain-policySYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="www.jobresident.com" />
<allow-access-from domain="jobresident.com" />
</cross-domain-policy>

But that is not working.. is there something specif code that I need to add?

xoail’s picture

arthurf, apart from crossdomain.xml question, I have one more and I really need some advice on how to proceed.

I am trying to load two flvmps on a page (preferable new blank page with no site headers etc), each running a different playlist. Is there an easy way to do that?

Thanks for all your help.

arthurf’s picture

Please upgrade to FLVMP alpha 9. You need to run update.php as well to clear your cache and reset the path to your player definition.

As per multiple players on one page, this is possible. With Asset, you can do this with the GUI (I haven't checked this post this update, but it was working). You can also do this by hand:

  $params = array('height' => 300, 'width' => 300, 'allowfullscreen' => true);
  $flashvars = array('file' => YOURFILEPATH);
  theme('flvmediaplayer_display', variable_get('flvmediaplayer_path', null'), $params, $flashvars);

Obviously this is an example, and you can learn more about the flash vars on JW's site. Also, you can put [flvmediaplayer] in the body of your node and FLVMP will try to insert the player there if it can, but this only works on the single player in the page. I think Asset is probably the best solution for multiple players on a page.

xoail’s picture

Not sure why but that dint work either. Although the player is now playing the file automatically, it is still not playing the full playlist but just the first file in the playlist. You can see it on the site.

thanks for the info on loading multiple players in a page. i will play around with assets and see.

arthurf’s picture

It plays the full playlist for me- Are you sure it doesn't?

xoail’s picture

On this link http://jobresident.com/node/2 there are 3 files in the playlist but it plays only the first video. I would have to manually play the next files by clicking on the next icon in controls. I actually tried testing this on different computers but the result is the same.

Well, I did notice that after playing the first file, its associating a wrong thumbnail. Gotta figure out why, but I guess thats more to do with xspf module.

arthurf’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » arthurf
Status: Postponed (maintainer needs more info) » Active

With images in the XSPF feed, you have to configure the player to only play the images for X amount of time. According to JW's site (http://www.jeroenwijering.com/?thread=13721) the way to do this is to alter the XSPF playlist with a duration tag. I will add this to XSPF in the next day or so.

arthurf’s picture

Project: FLV Media Player » XSPF Playlist
Version: 5.x-0.11 » 5.x-1.20-alpha3
Priority: Critical » Normal

There is now support for duration in the XSPF playlist module. I'm reassigning this issue to XSPF.