Sign up | Lost password? | Help

[ advanced search ]

Foobar + Opera = remote player

Forums » Opera Community » General Opera topics » Customizing Opera


Go to last post

Tuesday, 29. March 2005, 21:43:32

porneL

79% geek, 47% nerd

avatar

Posts: 2604

Foobar + Opera = remote player

Pretty cool thing - My Opera on OS X is now interface to Foobar2000 on Windows. Screenshot attached.

I've used "foo http writer" extension to pass commands plus I've added neat interface that uses lots of CSS that would never work in IE :smile: (actually, I didn't care about clean code, so it probably barely works at all...)

Progressbar is in realtime :>

foobaropera.png

Tuesday, 29. March 2005, 22:31:51

Rijk

I was here

avatar

Posts: 3530

Netherlands

Opera Software
That looks nice! I'm a foobar user, though I haven't spend much time on extensions for it... Could you share this?

Tuesday, 29. March 2005, 23:01:26

IrL

avatar

Posts: 1184

Ireland

:eek: Please please please share this!

Tuesday, 29. March 2005, 23:31:34

porneL

79% geek, 47% nerd

avatar

Posts: 2604

Ok. but I'll clean up the code a bit first.

Friday, 1. April 2005, 15:54:26 (edited)

porneL

79% geek, 47% nerd

avatar

Posts: 2604

I've been busy lately. Here's the template for foo_writer. Just set it in foo_writer prefs and 'start service'.
In Opera add [url]http://localhost:4800 (or [url]http://ip.of.foobar.comp:4800) to panel.

Foobar formatting scripts + HTML + CSS + JS give pretty powerful toolset, so I might fulfil some feature requests :smile:

/edited

paneltemplate.html.zip

Friday, 1. April 2005, 21:42:27 (edited)

Mayor

consensus census

avatar

Posts: 3922

Ireland

your screenshot it looks so nice that I had to install foobar just to check it :wink:

I added your attachement on panel but it shows just localhost folders (example), I have acces to my music folder but I can't play anything?

could you post what exactly to set in Foobar preferences and where? I see it has milion options (comparing to winamp 5) but it has no basics like volume control using mouse circle or equalizer lol //edit eh I just found this site with skins and now I see it's possible, and even to make it look like winamp)

//EDIT:

oki, I installed special version and full install now and I have no foo_writer plugin on the list in Preferences

but my Foobar panel has changed and now looks like this

//edit2: foobar panel has just changed to previous state with list of folders, hmm

Thursday, 31. March 2005, 22:39:04

GeekK

14° 29' E

avatar

Posts: 627

Netherlands

Mayor: see here or here (homepage). It's a 3rd party plugin.

Haven't tried it out myself...... yet. :wink:

edit:

[url]http://img182.exs.cx/img182/3711/fooopera8si.png :D

Have a small problem, though: all the titles that I play from within Opera are turned to black in foobar (black bar). :confused:

Thursday, 31. March 2005, 23:01:18

Mayor

consensus census

avatar

Posts: 3922

Ireland

Originally posted by GeekK
Mayor: see here or here (homepage). It's a 3rd party plugin.

Haven't tried it out myself...... yet. :wink:

many thanks, it works now :hat:

ok, here's my features request :wink:

- "Pause" button (or making "Play" switching to "Pause" when playing)
- "Open" button
- Volume slider

- would be possible to choose concrete song on the list by clicking on it?
- and jumping to selected part of actually played song by clicking concrete part of progress bar (like in original foobar)?

.

foobar2000 panel.png

Thursday, 31. March 2005, 23:56:17

porneL

79% geek, 47% nerd

avatar

Posts: 2604

Pause - will do.
Open - not possible.
Volume, Seek and Jump to song - might be possible, I'll have to investigate.

There's a lot in gui that can be changed...

Friday, 1. April 2005, 06:37:48

Originally posted by porneL
I've been busy lately. Here's the template for foo_writer. Just set it in prefs and add localhost:4800 (or ip.of.foobar.comp:4800) to panel.



Hi, I am sorry to disturb you, but where to theses prefs? In opera or Foobar. Actually I have already added the template html in http writer seeting, but it doesn't work in opera, same problem as Mayor told.

More thanks.

Friday, 1. April 2005, 07:39:00

Mayor

consensus census

avatar

Posts: 3922

Ireland

Originally posted by sunkey
Hi, I am sorry to disturb you, but where to theses prefs? In opera or Foobar. Actually I have already added the template html in http writer seeting, but it doesn't work in opera, same problem as Mayor told.

More thanks.

in foobar, localhost and port were there by default but to get it work you have to press "Start service" button

in Opera, create new bookmark, name it eg. foobar 2000 then type in adress field: localhost:4800 and check "Show in panel" option

fooooptions.png

Friday, 1. April 2005, 08:28:27

Dear Mayor, Great. It works now. More thanks.

Friday, 1. April 2005, 13:49:27

warthog

avatar

Posts: 32

this is excellent! thanks porneL for sharing this and everyone else for their posts on how to set this up. :cheers:

Friday, 1. April 2005, 15:38:12

One more question. It looks not support unicode? My chinese songs cannot be displayed correctly. Any way to improve it? Thanks in advance.

Friday, 1. April 2005, 15:51:50

porneL

79% geek, 47% nerd

avatar

Posts: 2604

foo_writer sends template as ISO-8859-1 :frown:
it needs to be fixed there I'm afraid.

Friday, 1. April 2005, 21:37:05

Rijk

I was here

avatar

Posts: 3530

Netherlands

Opera Software
Thanks, this is lovely.

Wednesday, 6. April 2005, 00:31:07

janbar

avatar

Posts: 1351

It's a little [OT] but... :wink:
New skin for Foobar2000 with (Attention please ! )
GESTURES ! :yes:
[url]http://www.hydrogenaudio.org/forums/index.php?showtopic=19310&st=800#
:cheers:

See you,

janbar.:smile:)

Thursday, 28. April 2005, 10:32:12

palee

avatar

Posts: 90

Hungary

I try to spread the word about Opera in our community. There has been numerous questions, and I provide the answers.

There was one about the possibility to use Foobar, the way they use it in Firefox.

I tried the above things, and couldn't get it to work.

Can you please tell me what to do step-by-step?

(I've installed Foobar, haven't found such thing like "start service. If I modify the panel in Opera, set to address to localhost:4800, then it can not connect. If the address is the saved template.html, then I see a whole lot of codes, not a formatted list.)

So what should I do?

Thursday, 28. April 2005, 10:35:51

you have to get a plugin for foobar called HTTP Writter [use google] and setup it

Thursday, 28. April 2005, 10:36:18

porneL

79% geek, 47% nerd

avatar

Posts: 2604

palee: You must have foo_http_writer component installed in Foobar. Put it in components directory in foobar, restart foobar and look for "http writer" section in foobars preferences. "start service." should be there.

Thursday, 28. April 2005, 11:20:29

palee

avatar

Posts: 90

Hungary

Works now. I appreciate your help :up:

Thursday, 28. April 2005, 15:00:58

Grizzbear

Moderator

avatar

Posts: 2601

It took a while, but it finnaly works
great work :smile: :up:

Thursday, 28. April 2005, 18:20:30

This is very neat.
Few things that come to mind, are:

1) To open Foobar (minimized) via the panel,
2) To somehow start the service? (probably not possible...) also via the panel,
3) A button that will lead you straight to the preferences,

The less interaction with Foobar itself the better...

Thursday, 28. April 2005, 19:35:30

Grizzbear

Moderator

avatar

Posts: 2601

Originally posted by YtseJam
This is very neat.
Few things that come to mind, are:

1) To open Foobar (minimized) via the panel,
2) To somehow start the service? (probably not possible...) also via the panel,
3) A button that will lead you straight to the preferences,

The less interaction with Foobar itself the better...



+1
my sentiments exactly :D

Friday, 29. April 2005, 00:10:26

Slack2116

avatar

Posts: 244

that is really cool :o:
to bad i use WMP :frown:

Tuesday, 3. May 2005, 01:46:23

janbar

avatar

Posts: 1351

Then switch to Foobar2000 immediately ! :wink:
:D

Greetings to all,

janbar.:smile:)

Sunday, 8. May 2005, 04:35:13

TheChode

avatar

Posts: 66

Interesting, though having to open a panel for the buttons could get annoying fast.

I made a rig-up a while back to give Opera control over Winamp, feel free to borrow parts of my work if you wish (just give credit where credit is due :wink:)

[url]http://www.neowin.net/forum/index.php?showtopic=189687

Friday, 13. May 2005, 23:24:28

porneL

79% geek, 47% nerd

avatar

Posts: 2604

Good news everyone! (Futurama rox

I've modified foo writer plugin to output XML in UTF-8 encoding, cleaned up GUI, added configurable number of playlist entries and I'm working on modifying it to send CSS and PNG files as well.

I'll release it in few days (WIR!)

Saturday, 14. May 2005, 00:15:39

Grizzbear

Moderator

avatar

Posts: 2601

This is the best news I heard all day :yes:
I can't wait!!!!!!! I'll be looking forward
to trying your new modifications. :smile:

Saturday, 14. May 2005, 13:17:07

Thanks to porneL!

When will you release it?

Sunday, 15. May 2005, 00:15:41

porneL

79% geek, 47% nerd

avatar

Posts: 2604

Foo HTTP Writer 1.03beta. Now!

New in template:
  • You can open any file from playlist by clicking its title
  • More responsive


What's new:
  • Different files can be served.
    If your HTML template file is "C:\mytemplate.html", server will allow reading of all files in "C:\mytemplate\"
    Recognized file type extensions: html, xhtml, xml, css, js, png, jpg, gif.
  • UTF-8 encoding of output.
  • New commands/parameters (see readme file).
  • Better HTTP compiliance. Improved cache and connection control. Server returns error pages and statuses when neccessary.
  • Preferences window cleaned up.
  • If password is set, it is required for every access. No more peeking.


Installation:
Stop foobar and copy all files to foobar components' directory (most likely "C:\Program Files\foobar2000\components\").
Start foobar and in Preferences -> Components/HTTP Writer set Template file to "foo_write_template.html" (you'll find it in components' directory).
Start server. Open your web browser and go to [url]http://localhost:4800 (change localhost to IP of machine that foobar runs on).


NB!
This is beta release. Expect bugs.
Block foo_writer's port (4800) on firewall if you don't want everyone on the Internet to control your foobar.

foo_write_103b.zip

Sunday, 15. May 2005, 00:48:10

porneL

79% geek, 47% nerd

avatar

Posts: 2604

If browser and foobar runs on the same machine [url]http://localhost:4800 will work (after you click "Start server" in foobar prefs).

What error are you getting?

Sunday, 15. May 2005, 00:53:24

Grizzbear

Moderator

avatar

Posts: 2601

Okay I went back to [url]http://localhost:4800
It works now.
But Its seems everything looks the same.
And i think you add a pause button if I can remember right.
:smile:

Sunday, 15. May 2005, 01:00:10

Grizzbear

Moderator

avatar

Posts: 2601

What error are you getting?



I only get "Can't connect to romote server" error
when I changed to my IP address so
I changed it back to the above. But I don't have your modifications

Sunday, 15. May 2005, 01:04:40

Grizzbear

Moderator

avatar

Posts: 2601

Here's a screenshot of current with [url]http://localhost:4800

foobar panel.png

Sunday, 15. May 2005, 04:34:28

Thanks to porneL for perfect plugin! My chinese songs displayed correctly!

Wish list:
1.Add Pause botton, or display the pause botton instead of play while playing.
2.Make the playlist as a frame in the page, and show the entire playlist which in F2K. So we can scroll it to find the song we want. These can be added to options.
3.Add a drop-down list box contained the playlists created in F2K. it allows switching between playlists.

Thanks very much!

Monday, 16. May 2005, 00:42:36

porneL

79% geek, 47% nerd

avatar

Posts: 2604

Opera JS rocks

I must say I'm pretty amazed by power and speed of Opera's javascript :up: When you see someone repeating mantra "Opera's JS sucks" - show him my new version of foobar interface :lol:

* Now there is full, scrollable playlist. I've tested it up to 7000 entries and it worked smoothly! :faint:
* You can pause and seek songs. It's pretty responsive. Almost like real foobar.
* And the best part: it uses Opera's skin :happy:

IMPORTANT
Before unpacking archive delete previous foo_writer_template.html and foo_writer_template/ directory. Afer install set new one in prefs: foo_writer_template.xhtml.

foo_write_103b2.zip

Monday, 16. May 2005, 01:21:12

Originally posted by Slack2116
that is really cool :o:
to bad i use WMP :frown:



Is there a WMP plugin that lets you play music in Opera? If so, where do I get one

Monday, 16. May 2005, 01:46:55

Grizzbear

Moderator

avatar

Posts: 2601

errr.
"Failed to execute" problem

HELP!!!! :frown:

Monday, 16. May 2005, 09:23:13

porneL

79% geek, 47% nerd

avatar

Posts: 2604

@Grizzbear: Failed to execute what? There is no such error message in http writer.

Monday, 16. May 2005, 09:40:59

Grizzbear

Moderator

avatar

Posts: 2601

It says that at the bottom of the panal.
Everything seams to work, sort of.
I think the foo_write_template.xhtml is not loading properly
or something.

The play button works fine, though no pause.
I here music but I don't see any music files.

And the kicker is It works perfect on my laptop, but not on my
home p.c

Hmmmm :confused:

Monday, 16. May 2005, 10:18:35

GeekK

14° 29' E

avatar

Posts: 627

Netherlands

porneL :hat:

Works nicely here!

Monday, 16. May 2005, 10:32:16

Grizzbear

Moderator

avatar

Posts: 2601

Here is a screenshot of foobar playing a music file

new foobar.png

Monday, 16. May 2005, 13:12:05

porneL

79% geek, 47% nerd

avatar

Posts: 2604

@Grizzbear: it looks like you haven't updated foo_writer.dll to the latest version.
You need to frames and javascript enabled (java and cookies are not needed though).

Monday, 16. May 2005, 16:12:42

Grizzbear

Moderator

avatar

Posts: 2601

Okay figured it out. Heres a rundown

Didn't Need=>
Cookies: NO(I have my normal cookie settings)
Java: NO
Updated foo_writer: NO
User Java Script: On or Off
On Demand CSS: On or Off


These were the setting I had to have on/off
Needed =>
Frames: YES
Inline Frames: YES
Persistent.css: OFF
*****


***This is what threw me off

Monday, 16. May 2005, 16:28:52

porneL

79% geek, 47% nerd

avatar

Posts: 2604

Persistent css shouldn't be a problem... unless you remove some elements that foobars interface needs... What do you have in your stylesheet?

Monday, 16. May 2005, 16:35:52

Grizzbear

Moderator

avatar

Posts: 2601

@pornel: I was really hoping to fix this.
This was the one variable I forgot about.

Here is a link to My Persistent StyleSheet
[url]http://www.literarymoose.info/style/css/persistent.css

Thanks again pornel

Monday, 16. May 2005, 16:49:05

porneL

79% geek, 47% nerd

avatar

Posts: 2604

@Grizzbear: yes, that stylesheet removes inline frames. My interface needs them to communicate with foobar.
I'll try using XMLHTTPRequest in next version, so it will work with frames disabled.

Monday, 16. May 2005, 16:52:15

Moose

avatar

Posts: 7520

Norway

Opera Software
Pornel perhaps could add a signature somewhere (root, body). Then you add:

#signature iframe {display: block !important;}

to your user stylesheet, and you have the best of both worlds.

M.

Monday, 16. May 2005, 16:57:48

Grizzbear

Moderator

avatar

Posts: 2601

Thanks Moose, once again :smile:
@pornel: I really appreciate all the help and the work you
put in for this foobar panel. You rock!!!. :up:

I also look forward
to any new mods you do.

Tuesday, 17. May 2005, 06:48:19

while i cant see a point in killing iframes [more reasonable is to block their content on server basis] i can see a point in foo plugin for opera

it is great :smile: ps. is there any way of searching trough the playlist? it behaves just like any other page so maybe it is possible...

Forums » Opera Community » General Opera topics » Customizing Opera