Anyone tried using Media Player Classic

Help each other out

Anyone tried using Media Player Classic

Postby RickRenn on Tue Jul 20, 2004 5:56 pm

Sorry to ask..I'm a total noob to XLobby and have been searching the forum for a few hours and couldnt find anything ..

I use alot of Real Player Streams for internet Radio listening...winamp/shoutcast wont work with the station I use...* theres a winamp plug in to play real files but it doesnt seem to work with newer versions of winamp*

Has anyone tried using Media Player Classic with XLobby to play REAL streams instead of Real Player???

I checked out the myhtpc site and read that they use a Media Player plugin that allows the use..is there a plugin I could use for XLobby?

Thnx Rick
RickRenn
 
Posts: 45
Joined: Mon Jul 19, 2004 5:02 pm
Location: Delta,BC,Canada

Postby C-moi on Tue Jul 20, 2004 7:26 pm

i use media player classic to view video clips in .wmv and some .asx (videos clips in streaming) without problem : i don't use any plugin : i send codes to MPC : in setup / event manager i create events with Commands :
os / senf message

Class Name
MediaPlayerClassicW
Windows Name
Windows Player Classic
Message
command

ands here are some wParam and lParam codes for MPC:
fullscreen wParam : 98324 lParam : 0
minimize wParam : 308
mute wParam : 163 lParam : 0
next wParam : 332
pause wParam : 156
play wParam : 155
previous wParam : 331
exit wParam : 65671 lParam : 0
stop wParam : 158
hope this help you
C-moi
 
Posts: 164
Joined: Fri Apr 23, 2004 6:58 am
Location: France

Postby AtTheGates on Tue Jul 20, 2004 7:33 pm

Ha, I was just typing this up and C-moi beat me to it.

just tried it and it should be fairly easy to do.
1) Create real audio database
-Hit F2 to get the setup screen
-Go to Database->Import
-Hit New Template and enter realaudio in Template Name.
-Enter
Extensions: ram
coverat: jpg (if you want covers)
Meta Mask:
\\(?<name>.*)\..*
\\(?<name>.*?)\\.*?
\\(?<name>.*)
-Enter realaudio in New DB then hit Add.
-Add the path to your ram files in the Paths box.
-Click Import

2)Create and screen for your real audio. Add a category and point it to your realaudio database.

3)Add controls. Your can get the source for MPC on Sourceforge. In the file resource.h there is a list of all MPC's commands. You can send these message to MPC as follows.
-Hit F2 for setup and go to Event Manager.
-In the Events box select Add Group and label the new group MPC.
-Select the new MPC group and click Add Event. Name the event "mpc stop".
-In the commands box go to os->send message.
-Enter
Class Name: MediaPlayerClassicW
Message: 273
wParam: 158
lParam: 0
-Select the "mpc stop" event and click Add.
-Here are the other main command
ID_PLAY_PLAY 155
ID_PLAY_PAUSE 156
ID_PLAY_PLAYPAUSE 157
ID_PLAY_STOP 158
ID_PLAY_DECRATE 159
ID_PLAY_INCRATE 160
ID_VOLUME_UP 161
ID_VOLUME_DOWN 162
ID_VOLUME_MUTE 163

If you want you can select View->On Top->Always in Media Player. Post exactly how you would like it set up and I might be able to give more specific help
AtTheGates
 
Posts: 31
Joined: Mon Jul 12, 2004 5:43 am
Location: Sacramento, CA

Postby RickRenn on Tue Jul 20, 2004 8:11 pm

Whoa... C-moi,AtTheGates I really appreciate the quick reply's...

note:
....*I'm impressed how the Xlobby Community is willing to help a beginner like myself*...


AtTheGates... I'm using BaddaBing's HeavyMetal Skin...

After the initial startup of Xlobby theres a radio button on the HeavyMetal skin Homepage
...you click on radio...opens up another page and it displays stop,play,visual,home...plus volume settings buttons which is all I need

It also displays a playlist which is what I'd like to use with MPC...but I dont think I can make a MPC playlist...what i'm doing now is I find the url's for each station that plays real format streams...and then add them to my MPC favorites list

If possible I'd like to have the MPC favorites listed on the heavymetal radio playlist page...


I took a look at the radio database file... Its confusing to me right now.. *ie...no idea what I'm looking at*.but..I'm sure a few days of coffee,smokes and hairpulling might clue me in on figuring it out....

Rick
RickRenn
 
Posts: 45
Joined: Mon Jul 19, 2004 5:02 pm
Location: Delta,BC,Canada

Postby AtTheGates on Tue Jul 20, 2004 8:49 pm

I don't think you can use the favorites with xlobby. They look like they are stored in mplayerc.ini so you would need something to parse this file and create an xlobby xml database of the favorites.
Do you want to use MPC exclusively or do you want both MPC and winamp radio? I can show you how to change that page into a Real audio page but I don't think I can make it do both because I don't believe there is a way to change the event of a button while not in the skin editor.
All the urls you use are links to .ram files right? I have rarely used real so I'm not 100% sure about its usage.
AtTheGates
 
Posts: 31
Joined: Mon Jul 12, 2004 5:43 am
Location: Sacramento, CA

Postby C-moi on Tue Jul 20, 2004 8:55 pm

try this
create a .txt file and copy this into

File1=http://64.236.34.196:80/stream/1011
File2=http://64.236.34.196:80/stream/1003
File3=http://64.236.34.196:80/stream/1006
File4=http://64.236.34.196:80/stream/2001
File5=http://64.236.34.196:80/stream/1038


save as playlist.pls (with .pls extension)
open MPC
view / playlist
put playlist.pls on MPC window and now you have a list of 6 radios (numbers) in streaming
you can change by click on the number in the playlist
C-moi
 
Posts: 164
Joined: Fri Apr 23, 2004 6:58 am
Location: France

Postby RickRenn on Tue Jul 20, 2004 9:04 pm

AtTheGates


For radio I would just use MPC

yes all the links I use are to ram files

no winamp


I just use winamp for playing the mp3's .... ie. the heavymetals music page
Last edited by RickRenn on Tue Jul 20, 2004 9:18 pm, edited 2 times in total.
RickRenn
 
Posts: 45
Joined: Mon Jul 19, 2004 5:02 pm
Location: Delta,BC,Canada

Postby RickRenn on Tue Jul 20, 2004 9:08 pm

C-moi...thanks for the MPC playlist info.... I missed the playlist option in MPC :roll:

..I'll try it out
RickRenn
 
Posts: 45
Joined: Mon Jul 19, 2004 5:02 pm
Location: Delta,BC,Canada

Postby AtTheGates on Wed Jul 21, 2004 12:00 am

Well I've had a second to try this again but have been only particially successful. I can change the controls, launch streams with .ram extension, but can't run MPC with streams like http://64.236.34.196:80/stream/1003 when clicking on its category entry. I tried creating a database where each parameter was C:\path\mplayerc.exe "url" /play but that did nothing. Also tried using File Types for a set category but this didn't seem to work because there is no extension.
If I create a database of only .ram streams then everything works perfect.
AtTheGates
 
Posts: 31
Joined: Mon Jul 12, 2004 5:43 am
Location: Sacramento, CA

Re: Anyone tried using Media Player Classic

Postby art on Wed Jul 21, 2004 1:13 am

RickRenn wrote: theres a winamp plug in to play real files but it doesnt seem to work with newer versions of winamp


What plugin are you using? I'm using Tara
http://www.musiclivesonline.com/software/watara.html
with latest winamp503 + this patch (it has update for WMP plugin):
http://forums.winamp.com/showthread.php ... did=181357

You may have to modify "radio.xml" database that BaddaBing included in his skin (PathToXlobby\skins\YourSkin\databases). Every station should have an entry in the database (edit it with notepad) like so:

<item>
<parameter>http://yourStream</parameter>
<coverart>C:\yourPathToCovers\cover.jpg</coverart>
<display>Your Station Name</display>
<type>track</type>
<information>
<trackname>Your Station Name</trackname>
<country>Station's Country</country>
<genre>Station's Genre</genre>
</information>
</item>

You may find those entries, but they are not important
<tracknumber>999</tracknumber>
<trackfilename></trackfilename>
<artist></artist>
You can also leave country and genre, but those are displayed on the radio screen.

For real streams change parameter to:
<parameter>http://addressTo/file.ram</parameter>

For WMP streams:
<parameter>mms://yourStream/.wma</parameter>
don't forget "/.wma" at the end.

This works for me and that way I can play all streams with one player from one screen in Xlobby.
One more thing, some real and wmp streams may take 2-3 seconds to load.

Good luck
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby RickRenn on Wed Jul 21, 2004 1:33 am

Hi art... I tried the tara plugin early today and it didnt work...I did not have the winamp patch installed ..I'll try it out

thnx for the heads up
RickRenn
 
Posts: 45
Joined: Mon Jul 19, 2004 5:02 pm
Location: Delta,BC,Canada

Postby RickRenn on Wed Jul 21, 2004 2:26 am

Hi art

ok..I tried winamp again...fresh install....patch...plugin...

didnt work

I tried listening to BBC5...

http://www.bbc.co.uk/radio5live/live/surestream.ram

put the same url in MPC...works fine..

any ideas why it wont work?
RickRenn
 
Posts: 45
Joined: Mon Jul 19, 2004 5:02 pm
Location: Delta,BC,Canada

Postby AtTheGates on Wed Jul 21, 2004 3:38 am

I've kept coming back to this issue as I having been working on my skin and I think I have found a solution that works for me. Winamp is probably the better option because it is so well integrated into xlobby but I'm sure I will use this process for several things.

Copy the code below and save it as mpc.xml in the eventgroups folder of the skin you are using.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<events>
 <event>
  <name>play</name>
  <commands>
   <command>
    <type>os</type>
    <execute>send message</execute>
    <parameter>MediaPlayerClassicW</parameter>
    <parameter></parameter>
    <parameter>273</parameter>
    <parameter>155</parameter>
    <parameter>0</parameter>
   </command>
  </commands>
 </event>
 <event>
  <name>quit</name>
  <commands>
   <command>
    <type>os</type>
    <execute>send message</execute>
    <parameter>MediaPlayerClassicW</parameter>
    <parameter></parameter>
    <parameter>WM_COMMAND</parameter>
    <parameter>65671</parameter>
    <parameter>0</parameter>
   </command>
  </commands>
 </event>
 <event>
  <name>start stream</name>
  <commands>
   <command>
    <type>os</type>
    <execute>execute file</execute>
    <parameter>C:\Program Files\Media Player Classic\mplayerc.exe</parameter>
    <parameter>&quot;%stations&gt;parameter%&quot; /minimized</parameter>
    <parameter></parameter>
    <parameter></parameter>
   </command>
  </commands>
 </event>
 <event>
  <name>stop</name>
  <commands>
   <command>
    <type>os</type>
    <execute>send message</execute>
    <parameter>MediaPlayerClassicW</parameter>
    <parameter></parameter>
    <parameter>273</parameter>
    <parameter>156</parameter>
    <parameter>0</parameter>
   </command>
  </commands>
 </event>
 <event>
  <name>volume down</name>
  <commands>
   <command>
    <type>os</type>
    <execute>send message</execute>
    <parameter>MediaPlayerClassicW</parameter>
    <parameter></parameter>
    <parameter>273</parameter>
    <parameter>162</parameter>
    <parameter>0</parameter>
   </command>
  </commands>
 </event>
 <event>
  <name>volume up</name>
  <commands>
   <command>
    <type>os</type>
    <execute>send message</execute>
    <parameter>MediaPlayerClassicW</parameter>
    <parameter></parameter>
    <parameter>273</parameter>
    <parameter>161</parameter>
    <parameter>0</parameter>
   </command>
  </commands>
 </event>
</events>


Here is an example db.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<database>
<sortorder>display</sortorder>
<sortable>
</sortable>
<template>realaudio</template>
<paths>
<path></path>
</paths>
<item>
<parameter>http://www.bbc.co.uk/radio5live/live/surestream.ram</parameter>
 <display>BBC</display>
</item>
<item>
 <parameter>http://64.236.34.196:80/stream/2001</parameter>
 <display>url</display>
</item>
</database>


Change all the buttons on the radio page from music:event to mpc:event. Change the click event of the category to mpc:start stream. Add mpc:quit to the Home button.
AtTheGates
 
Posts: 31
Joined: Mon Jul 12, 2004 5:43 am
Location: Sacramento, CA

Postby art on Wed Jul 21, 2004 3:53 am

didnt work

I tried listening to BBC5...

http://www.bbc.co.uk/radio5live/live/surestream.ram

put the same url in MPC...works fine..


You're right there is a problem with this stream, but there is a workaround :D :
- in winamp go to Options>Preferences>Plugins>input - highlight Tara and click on "configure" button, next uncheck "Process audio thru winamp", restart winamp
- download ram file and save it to your hard drive somewhere; file for this station should be "surestream.ram", and play it in winamp.

In the database, in parameter just enter "PathToTheFile\surestream.ram".
Hope this will work for you ...
art
 
Posts: 284
Joined: Sat Mar 20, 2004 8:40 am
Location: Allen, TX

Postby RickRenn on Wed Jul 21, 2004 4:12 am

AtTheGates...Hey man..thanks for helping me out with this...I find theres alot more ram. stations for listening to Sports and Talk radio over the net..which is what I mostly do ...so thats why I need to use MPC with Xlobby

I hope I didnt take up too much of your time... It is appreciated

* damn...I'm doin alot of brown nosing today...not really my style :lol: *

I agree that Winamp is a better setup..mp3's and music over the net is where it shines...



* now If only Xlobby could go to the fridge and bring me back a beer *


Art. just got the post email....I'll try out winamp again with your tweak......

I use this site for links to radio feeds....http://www.mikesradioworld.com

Check it out...you'll see what I mean by my needing to play ram. files

Thnx Again...
Rick
RickRenn
 
Posts: 45
Joined: Mon Jul 19, 2004 5:02 pm
Location: Delta,BC,Canada

Next