Jump to content
Sign in to follow this  
jpam

Work In Progress

Recommended Posts

ok i will try it right now

Edit: I am using windows media player 10 at the moment and it doesnt work

Note that (as jpam told me earlier) you have to have a visualization set inside WMP itself (View->Visualization->(don't select "No Visualization").

You already corrected before I finished my reply :)

Regards

Edited by marfdaman

Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

try selecting a visualisation preset on windows medaplayer

then run the program

the wmplayer.ocx takes the last selected preset in windows mediaplayer

me by there is no visualisation selected on windows mediaplayer

hope that helps you :)

jpam

Share this post


Link to post
Share on other sites

not sure

my program sets a default preset

its bars and waves /bars

don't no if it is possible to do this when the program is running :)

Share this post


Link to post
Share on other sites

not sure

my program sets a default preset

its bars and waves /bars

don't no if it is possible to do this when the program is running :)

So you're saying it IS possible to store a user's choice for a visualization in let's say an ini file and retrieve it at the next start of the app?


Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Share this post


Link to post
Share on other sites

So you're saying it IS possible to store a user's choice for a visualization in let's say an ini file and retrieve it at the next start of the app?

I have mine set to random.

Why can`t I make the visual any bigger?

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

$main = GUICreate("wmplayer.ocx Example",500,400,-1,-1)
$WMP = ObjCreate("wmplayer.ocx")
GUICtrlCreateObj($WMP,10,10,433,289);<----------------------------- ??
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSE")
$btn1 = GUICtrlCreateButton("Load mp3",32,320,60,30)
GUICtrlSetOnEvent($btn1,"open")
$btn_stop = GUICtrlCreateButton("Stop",400,320,60,30)
GUICtrlSetOnEvent($btn_stop,"stop")

With $WMP
.windowlessVideo = True
.fullscreen = False
.stretchToFit = False
.uiMode = 'None'; None, mini, full
.enableContextMenu = False
EndWith

GUISetState(@SW_show)

while 1
sleep(1000)
WEnd

Func open()
$get_mp3 = FileOpenDialog("open .mp3 file","c:\","(*.mp3)",1)
$WMP.url = $get_mp3
EndFunc

Func stop()
$WMP.controls.stop
EndFunc

Func CLOSE()
Exit
EndFunc

Thanks to Jpam! :)

Edited by Lakes

2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites

sure !

butt you have to restart the program

it is not a nice solution when you have to restart the program for a simple visualisaion change

jpam

Share this post


Link to post
Share on other sites

Note that (as jpam told me earlier) you have to have a visualization set inside WMP itself (View->Visualization->(don't select "No Visualization").

You already corrected before I finished my reply :)

Regards

Would it be possible to have the visual react to any audio source instead of a file?

Someone else had a online radio script here, I was thinking this would be a nice addition.


2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites

just type the url for the radio station

$wmp.url = http:\\www.radiostation.com\radio1.html

or something

jpam

Edited by jpam

Share this post


Link to post
Share on other sites

Thanks for the quick reply! :)

Instead of playing a file, would it possible to use with a live audio source, ie mic or line in?

I`d like to use it with an online chat room that plays music as well, thats why I want to be able to use it with any

any audio source selected from the mixer, if its possible.

Thanks for your continued help! :(


2015 - Still no flying cars, instead blankets with sleeves.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...