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.
Hi
I have two requests:
- for the 1pixel out player you're linking to a I'd say old version. The new version has the feature to regulate the volume. You could link to http://wpaudioplayer.com/download
- In addition e.g. the drupal mp3 module has the feature to tell the 1 pixel out player that it should open and close when you play a song (you know I'd like to have just a fixed player that doesnt move. when clicking on play)
Many thanks.
Comments
Comment #1
webflo CreditAttribution: webflo commentedYou can use flashvars to disable the player-animation
print swf('yourfile.mp3' array('flashvars' => array('animation' => 'no')));
Comment #2
chrisfromredfinalso, if you use the SWFObject2 embedding method it will auto-stop-start the players if there's multiple on a page
Comment #3
chris_bbg888 CreditAttribution: chris_bbg888 commentedthanks guys.
as I'm a bit stupid and working with drupal just for a few weeks I'm not shure where to enter flashvars code. in the administration settings for swf tool there is no filed for flashvars.....if i have to enter that in a file/code maybe you can let me know in which file and where exactly.....
many thanks
Comment #4
ARray CreditAttribution: ARray commentedIt does not work for me.
All players on a page can play at the same time :(
Does it work for you?
Comment #5
mike15 CreditAttribution: mike15 commentedI'm also in the same boat as @ARray. If someone could explain how to chain multiple "1 pixel out" players on the same page to prevent song collapsing, it would be greatly appreciated!
Thanks in advance,
Mike
Comment #6
chrisfromredfinWorks for me. When you 'view-source' of your page, each player should have a different ID attribute. That's how it works. Note that if you're displaying the exact same player (same ID) multiple times, this won't work. Check that there's ID attributes on each of your players; if not, then it's probably not using SWFObject2 to embed (since that's what assigns the ID's I think).
Comment #7
mike15 CreditAttribution: mike15 commentedI've checked my source code and everything seems to match to what you were saying yet the players work independently from each other:
Comment #8
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedYou're right - there is a newer version of OnePixelOut, but it looks like it got stuck at beta. The beta 6 release was nearly a year ago.
Out of curiosity I have tried making a new version of the module to support the new player. It's not fully functional yet, and the multiple player interaction isn't working, but the basic player is in and can handle lists. The width setting isn't working either just yet.
I'll actually back port the multiple file capability at some point as I remember reading a while back that the original player can support this, although you don't get navigation controls. The idea was you could precede, or end, a podcost with a standard intro or advert.
Comment #9
hedac CreditAttribution: hedac commentedactually... I'm trying the JW Media player 4 with single mp3 files... and the auto-stop-start feature for multiple instances doesn't work either. different id's.
I know this is not about 1pixelout.. but I didn't want to open a new issue for this.
Comment #10
yt2s CreditAttribution: yt2s commentedUsing swftools 6.x-2.5, swfobject_2_2, 1pixelout audio-player.2.0.2, all config'd per docs (unless I missed something), with multiple players on a page, each with unique ID's: Still the players will play simultaneously.
What should I do?
Just realized this post would be a better place for this question.
1pixelout should play one MP3 at a time, and not simultaneously
Comment #11
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedChanging this thread to capture feature request for OnePixelOut (or WordPress audio player) version 2.
The thread linked in post #10 is the right place to post things relating to the player stop / collapse feature not working properly [I am aware of this issue, and have a potential fix coming in the new release I'm working up]
Comment #12
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedWork started on support for WordPress audio player. Basic module committed on DRUPAL-6--3. Admin page isn't working yet, but basically player functionality is there and it plays a list of audio files correctly.
Support for title and artists strings not yet in place.
Highlighted a few legacy issues with SWF Tools core too, so found some more optimisations!
Comment #13
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedNote to self - see also #725752: Pass CCK description field to "titles" flashvar in OnePixelOut player.
Comment #14
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedSupport for titles now done, and JavaScript to auto-close players is working (under SWF Object 2 only in all browsers, doesn't work for direct embedding - will pursue further later...)
Settings page still to be done.
Work so far committed on DRUPAL-6--3 and is functional for testing.
Comment #15
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedAll done. Support for WordPress audio is in place. Auto close behavior should now be working, but test reports welcome! Committed on DRUPAL-6--3 pending the 6.x-3.x release.
Module supports playlists, has accessible controls, and is generally running pretty well here...
Setting to needs review - you can access the development package from the "All releases" link on the project page.
Comment #16
chrisfromredfinI took the standard upgrade route - drush dl'd the 3.x-dev version over my 2.x version, ran drush updatedb and got all the updates. Went to view a node that has a flash player, got:
Fatal error: Call to undefined function swftools_get_player_path() in /var/www/photomatters.org/sites/all/modules/swftools/swfobject2/swfobject2.module on line 44
I may have mis-upgraded? Should I not be using swfobject2?
Comment #17
chrisfromredfinNevermind, that was my problem. Installing 3.x-dev OVER the 2.x version caused two version of modules, paths to/use of old code, etc. I completely removed the swftools folder and re-downloaded 3.x-dev clean and everything works much better now. Setting back to needs review.
Comment #18
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedI raised an issue to act as a reminder that upgrading this time is a little more complicated!
#745050: Create upgrade instructions for 6.x-2.x to 6.x-3.x
Comment #19
JanSmoot CreditAttribution: JanSmoot commentedI am a new user to Audio Player 2.0. Have it working fine for one song, but thought the player could play multiple songs. How do I do this? I don't want multiple instances of the player on my page. I want to randomly play one of five songs. Any help?
Thanks so much.
Comment #20
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedIt depends how you are adding the player to the page.
If you use the basic input filter then you always get the files in the same order from [swf files="first.mp3&&second.mp3&&third.mp3&&fourth.mp3&&fifth.mp3"]
If you use PHP then you could generate a random list by calling the swf() function.
Or, and I just tried this, you could use the new Views feature to create a View that generates a random selection of five.
So your question is a good one - the Views feature is brand new, and before that you would have had no choice but to use PHP. Now you can do it without a single line of code.
Basically you create a view that renders a playlist to SWF Tools, but you set the sort criteria to Global: Random.
I have WordPress audio playing a random selection of five as I type!
+1 for the new Views capability :-)
Comment #21
JanSmoot CreditAttribution: JanSmoot commentedAs I said, I am new to Audio Player. The tutorial says to identify the song mp3 with soundFile=http://www.mysite.com/audio/music.mp3 Good to go there for one file.
You identify... [swf files="first.mp3&&second.mp3&&third.mp3&&fourth.mp3&&fifth.mp3"] Where/how do I use this?
You also mention SWF TOOLS? I found www.swftools.org. Do I need to download this?
What is Views? How do I use it? My player is on a website, not on wordpress.
Comment #22
Stuart Greenfield CreditAttribution: Stuart Greenfield commented"The tutorial says" - which tutorial are you referring to?
[swf files="first.mp3&&second.mp3&&third.mp3&&fourth.mp3&&fifth.mp3"]
is referring to the input filter that SWF Tools creates - see the documentation."You also mention SWF TOOLS?" You have posted in the SWF Tools issue queue for Drupal! That's SWF Tools!!
"What is Views? How do I use it? My player is on a website, not on wordpress." I don't mean to ask the obvious - but you are using a Drupal website aren't you? This issue queue is for the SWF Tools module which is about embedding flash in to a Drupal site. It's not for the WordPress audio player in general (sorry if I misunderstood here!)
Comment #23
JanSmoot CreditAttribution: JanSmoot commentedTutorial for Audio Player 2.0 at http://www.macloo.com/examples/audio_player/options.html
This is the only place on the web I found any discussion of Audio Player, thus my question. I am not doing a Drupal website, just a regular old site. So maybe this is out of my realm. But, now you have a nice randomized audio player! Although I do not. Maybe I need to check into Drupal....
Thanks a lot.
Comment #24
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedI did wonder!
You still set a flashvar called soundFile, but for multiple files you simply make that a string of names separated by commas, so
soundFile=first.mp3,second.mp3,third.mp3
.If you want to randomise it then whatever you are using to build your code just has to shuffle up the files and then build a string. Exactly how you do that depends on the code that you are using.
You might want to check out http://wpaudioplayer.com/standalone. That's the official WordPress audio page for the newer WordPress player (that replaces the original OnePixelOut one)
Comment #25
JanSmoot CreditAttribution: JanSmoot commentedStuart,
Thanks so much. I tried everything but commas! Randomizing is the last thing on the list.
Comment #26
SchnWalter CreditAttribution: SchnWalter commentedregarding the first request: for the 1pixel out player you're linking to a I'd say old version. The new version has the feature to regulate the volume.
you can check: #659234: Can 1 Pixel Out be set to non-minimized?
P.S. the newer version, 1 Pixel Out MP3 Player v2 has an option for those who want a 'non-minimized' version of the player... so i posted an update/modification there
EDIT: now i see that the second request is also solved by updating the module.
EDIT2: WordPres Player subModule in swftools-3.x is the new version "1 Pixel Out"
Comment #27
SchnWalter CreditAttribution: SchnWalter commentedComment #28
SchnWalter CreditAttribution: SchnWalter commentedsorry... it needs review, since the v3 is not out yet