Comments

drewish’s picture

StatusFileSize
new9.9 KB

here's a patch for the module, plugins to follow

drewish’s picture

StatusFileSize
new5.87 KB

current flash player, renamed

drewish’s picture

StatusFileSize
new2.07 KB

current flash player plugin

drewish’s picture

StatusFileSize
new1.64 KB

1pixelout player

drewish’s picture

StatusFileSize
new1.64 KB

1pixelout plugin

drewish’s picture

StatusFileSize
new5.14 KB

crap, try that again. 1pixelout player

drewish’s picture

oh, forgot to mention, plugins go into the players directory

drewish’s picture

StatusFileSize
new14.08 KB

better patch.

drewish’s picture

StatusFileSize
new155.25 KB

here's a zip file with various plugins i've been working with. these go into the audio/players directory. one note, the flash mp3 player doesn't work right

drewish’s picture

StatusFileSize
new15.29 KB

best patch yet! now there's an XSFP option on views.

drewish’s picture

StatusFileSize
new157.33 KB

and here are the players

drewish’s picture

StatusFileSize
new14.93 KB

fixed some bugs in the last patch. old players should be fine.

drewish’s picture

StatusFileSize
new14.94 KB

small fixes

drewish’s picture

StatusFileSize
new154.71 KB

and a re-roll of the players

drewish’s picture

StatusFileSize
new154.76 KB

player bug fixes

drewish’s picture

here's a view to display all your audio in the player:

  $view = new stdClass();
  $view->name = 'audio_player';
  $view->description = 'Audio node player';
  $view->access = array (
  0 => '1',
  1 => '2',
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = 'Audio';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'audio_xspf_playlist';
  $view->url = 'audio_player';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '10';
  $view->menu = TRUE;
  $view->menu_title = 'Audio';
  $view->menu_tab = FALSE;
  $view->menu_tab_default = FALSE;
  $view->menu_tab_weight = '0';
  $view->sort = array (
    array (
      'tablename' => 'node',
      'field' => 'created',
      'sortorder' => 'DESC',
      'options' => 'normal',
    ),
  );
  $view->argument = array (
    array (
      'type' => 'rss_feed',
      'argdefault' => '2',
      'title' => '',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
  );
  $view->field = array (
    array (
      'tablename' => 'node',
      'field' => 'title',
      'label' => '',
      'handler' => 'views_handler_field_nodelink_with_mark',
      'options' => 'link',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'audio',
),
    ),
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node);
  $views[$view->name] = $view;
drewish’s picture

updated players, added a quicktime plugin.

drewish’s picture

Status: Needs review » Active

i've committed part of the patch, there are now player plug-ins in HEAD. i held off on the XSPF stuff because i might want to just put that into it's own module. i'll re-roll a patch when i get a chance.

drewish’s picture

StatusFileSize
new20.37 KB

here's the one player that i didn't commit because it's under a creative commons license.

Pibu’s picture

I really like the idea of using another flash audio player. Is there any chance you will be doing this for the 4.7 Drupal version too?

drewish’s picture

Pibu, if someone wants to back port it i'd commit it, but i'm not really interested in it. at this point i'm doing all my development on 5.0. besides you've gotta have a reason to upgrade ;)

drewish’s picture

Status: Active » Fixed

the plugins are working so i'm going to close this and move the XSPF stuff back to it's original thread

Anonymous’s picture

Status: Fixed » Closed (fixed)
zirafa’s picture

Component: User interface » players
Status: Closed (fixed) » Active
StatusFileSize
new20.43 KB

Re-uploading updated jeroenwijering player inc files since it is under a creative commons license. Drop these files into your audio/players folder.

drewish’s picture

well we can't commit it since it's not GPL. and if i remeber correctly it's under a non-commercial CC license.

i'd be willing to commit the .inc and have the users download it themselves... but we need some code to disable it, explain why it's disabled, and where to put the .swf file.

newdru’s picture

hey zirafa, this is in response to this post

http://drupal.org/node/139581#comment-237188

which redirected me post 24 here.

are you sure your jeroen inc file is correct?

you don't seem to have provided a callback for 'theme_xspf'.. it looks like you can get around that by calling theme_audio_jeroenwijering_player directly and passing $path.. but just thought i'd let you know for consistency sake and possibly providing a separate $output for a full size player with playlist at least semi visible.

i'll give your code a try and see if that works versus what i was having problems with in my post referred to above.

thanks

zirafa’s picture

I don't understand your question - you configure which players you use in the audio players configuration page, but you can call the theme function directly, which is the way it should work.

newdru’s picture

zirafa, i think you need to look at my original post. my problems are pretty well documented there (i think). i moved the followup post here per your request in the original post but i think that may have thrown you off.

fwiw, i just tried your jj code patch and the jeroen players still do everything correctly except for play the actual mp3's. like i stated in the previous post, they are able to pull the xspf feed so that a playlist is populated correctly with the mp3 filenames in the player. When i rollover them, the color / state changes but when i click on one of the files in the playlist nothing happens (e.g. the mp3 doesnt' appear to get loaded so nothing ever plays).

if i pull up the xspf file that represents the playlist being loaded it looks like this (first portion of it):

−

Album 1
joe
joe
http://airik51.com/media/music/album1
http://airik51.com/node/63/xspf

−
	
−

http://airik51.com/audio/play/61
Anne Hytta
master
fyrispel
Anne Hytta - fyrispel
1:07
http://airik51.com/
http://airik51.com/anne-hytta-fyrispel


NOTE: the links above are on a localhost so you won't be able to access them

So if i cut n paste the location of the song, http://airik51.com/audio/play/61, in the browser bar, i'm prompted to play the file in winamp and it works. so the paths appear to be correct. the file is a valid mp3 file with the correct sample rate.

I'm missing something silly. What is it?

As i said in the original post, using my original code (not yours but i imagine the results would be the same), if i dropped down to jeroen version 2.3 player, everything works.. what's different about the players that's causing the problem?

thanks, sorry if the cross posting is causing confusion

zirafa’s picture

I did read the original post. I redirected you here because there was already some code for the joeren player. My guess is the flash player doesn't like URLS without .mp3 because it doesn't know how to handle the file.

newdru’s picture

Allright, i think you're on to something here... if you look in your jeroen .inc file this exists at the top:

'theme_node' => 'audio_jeroenwijering_node_player',
'theme_xspf' => 'audio_jeroenwijering_xspf_player',

But only the 'node_player' is actually defined.. not that big a deal..

if you look at the 'node_player' function, it is designed to trick the jeroen player into thinking the files are mp3's (e.g. have extensions appended to the menu path) per:

function theme_audio_jeroenwijering_node_player($node, $options = array()) {
// make sure it's compatible with the flash player
if (!audio_is_flash_playable($node)) {
return NULL;
}

$options['file'] = check_url($node->url_play).'/file.mp3'; //spoof an mp3 extension since play urls have none

return audio_jeroenwijering_player($options);
}

But when / where / how does this function get called?

what i don't understand is that if you walk through the code, it's going to eventually theme a single file player which isn't want i want. however, i DO want that first half code that tricks the path.. BUT i want it to be called when the jeroen flash player tries to load the original path supplied by the xspf feed..

Where would that code need to be patched to make it alter jereoen paths of type audio/play/nid on jeoroen flash player calls only?

does that make sense.. i think it does to me now, i just don't know where / how to fix it.

newdru’s picture

ok, that gets called when you load menu path audio/play/nid..

it sets the player for a single audio node and alters the file path to trick the jeroen single player into thinking it's playing an mp3 file as your original suggestion implied.

that works!

so i think this is our problem.

i'm not sure if the playlist location itself needs to be modified (given a faux mp3 ending) or if when you click on a flash player file in the playlist, the standard menu path representd by playlist location needs to be intercepted for and altered by some where in one of the audio modules to have the faux mp3 ending (but only when the player is a jeroen with an xspf feed).

make sense?

I don't know the audio modules enough to no where to make this change and which one is the ultimate and best solution.

thanks for following this through.

newdru’s picture

I confirmed this is the problem.. whew hooh!

I temporarly fixed it with a hack but i'm wanting your input to do this a better way:

what i did:

1) went into: audio/contrib/audio_feeds
2) changed 1 line in function: audio_feeds_generate_xspf
3) appended "/file.mp3" to to the value in the location element

OK she works now..

But this is a global change that will affect every xspf playlist not just for jeroen player. That may cause another player to break.. probably not but it's probably cleaner to only add this on jeoren players.

So is there a way to determine *which* player type (slim, xspf, jeroen) is creating the playlist.. either checking a variable or calling a hook?

If we can do that, then we can do a simple check and only change location element for only jeroen types of feeds!

let me know.

Zen’s picture

Status: Active » Closed (fixed)

Fixed issue being reopened for support spam. Closing.