I have made a visual basic 2008 express program which uses the windows media component to make my own version of media player. i can start and stop media, select which file i want to play but i cannot find a way to change which visualisation is being shown. does anybody know how to change visualisations programatically?
Thanks in advance,
Jon
WMP changing visualization
Started by nojbox87, Jul 06 2008 08:44 AM
7 replies to this topic
#1
Posted 06 July 2008 - 08:44 AM
|
|
|
#3
Posted 07 July 2008 - 01:41 PM
I assume by that you mean the lists that appear while you type code (Sorry i am quite new to this) if so then i have tried already and cannot seem to see anything that referenced to Visualizations and i cannot seem to find anything on the net about this.
Thanks for you prompt reply,
Jon
Thanks for you prompt reply,
Jon
#4
Posted 07 July 2008 - 02:55 PM
Here is the MSDN link for creating and rendering custom visualizations. All you should need is the rendering section I would think:)
Custom Visualization Programming Reference
Custom Visualization Programming Reference
#5
Posted 08 July 2008 - 09:50 AM
That seems to be the stuff i am looking for.
Sorry for being really thick but i cannot work out how to get to these things
e.g.
the render method.
I can set play states easily e.g. Player.Ctlcontrols.stop() but i cannot seem to find the render option anywhere.
Thanks for all your help so far.
Sorry for being really thick but i cannot work out how to get to these things
e.g.
the render method.
I can set play states easily e.g. Player.Ctlcontrols.stop() but i cannot seem to find the render option anywhere.
Thanks for all your help so far.
#6
Posted 12 July 2008 - 03:38 AM
OK forget my last post. I am getting somewhere, but have hit a wall and i think its something silly.
The code i have is
Dim Vis As IWMPEffectsCtrl
Label1.Text = Vis.CurrentEffect
But it gives an error message: Variable Vis has been used buefore it has been assigned a value.
what do i need to add?
The code i have is
Dim Vis As IWMPEffectsCtrl
Label1.Text = Vis.CurrentEffect
But it gives an error message: Variable Vis has been used buefore it has been assigned a value.
what do i need to add?
#8
Posted 12 July 2008 - 08:19 AM
Thanks for all your help so far.
OK i tried that change (added 'New') but this time i get:
"'New' Cannot be used on an interface"
Any suggestions?
OK i tried that change (added 'New') but this time i get:
"'New' Cannot be used on an interface"
Any suggestions?


Sign In
Create Account

Back to top









