473,734 Members | 2,824 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows Media Player and Volume Control

I wrote a quick app to play music and I am having difficulty connecting a
slider control to the Windows Media Player control. Here is my difficulty. I
need to set the sliders min and max properties and utilize its value
property to manage the volume of the Windows Media Player control. I am not
sure which property on the windows media control I am suppose to manipulate.
I tried to use the following: mp.volume = vsVol.value in the sliders Scroll
method but since I cannot get the min and max values correct, this code
always breaks. Apparently, the media control can not handle postitive
integers so when the sliders value goes above 0 it breaks. What the heck is
that?

Thanks in advance.
Nov 20 '05 #1
3 19926
Well I haven't even seen a bite on this question. So I will make it easier.
Can anyone point me to a good source of literature, documentation, website,
etc... that explains the windows media player properties in detail and how
they can be managed within vb.net?

Thanks in advance.

"rmorvay" <ad************ *@hotmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
I wrote a quick app to play music and I am having difficulty connecting a
slider control to the Windows Media Player control. Here is my difficulty. I need to set the sliders min and max properties and utilize its value
property to manage the volume of the Windows Media Player control. I am not sure which property on the windows media control I am suppose to manipulate. I tried to use the following: mp.volume = vsVol.value in the sliders Scroll method but since I cannot get the min and max values correct, this code
always breaks. Apparently, the media control can not handle postitive
integers so when the sliders value goes above 0 it breaks. What the heck is that?

Thanks in advance.

Nov 20 '05 #2
Cor
Hi Rmorvay

This is not my stuff, but do you know msdn.microsoft. com

One search on "mediaplaye r" did give me this link.
The header from it is almost the same as you are asking

http://msdn.microsoft.com/library/de...pplication.asp

Merry christmas

Cor
Well I haven't even seen a bite on this question. So I will make it easier. Can anyone point me to a good source of literature, documentation, website, etc... that explains the windows media player properties in detail and how
they can be managed within vb.net?

Nov 20 '05 #3
leecottrell
1 New Member
This is a bit late but here is a solution to the slider volume problem.

Private Sub hsVolume_Scroll (ByVal sender As System.Object, ByVal e As System.Windows. Forms.ScrollEve ntArgs) Handles hsVolume.Scroll
Me.wmp.settings .volume = Me.hsVolume.Val ue
Me.lblVolume.Te xt = Me.wmp.settings .volume
End Sub

Lee
May 5 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

56
6962
by: alan b | last post by:
I copied it and tried to edit the movie.htm below in the <PARAM NAME=*** location of the file where the videoclip is on my hard drive. It is already recorded by Windows Media Player. My version is 9.0 although it is coded 5.0 in this htm file. Let me know if it is able to be fixed. *** denotes where it is edited to locate the path where the videoclip is.
0
1355
by: rmorvay | last post by:
I wrote a quick app to play music and I am having difficulty connecting a slider control to the Windows Media Player control. Here is my difficulty. I need to set the sliders min and max properties and utilize its value property to manage the volume of the Windows Media Player control. I am not sure which property on the windows media control I am suppose to manipulate. I tried to use the following: mp.volume = vsVol.value in the sliders...
1
6229
by: manoj | last post by:
hi, could some one tell how to design progress bar, volume control and other buttons as in windows media player. I mean look and feel. thank you, manoj
2
2865
by: StefanT | last post by:
Hi, I have a web app and a I have a http handler for a file, when I have a web request for that file I insert a stream of bytes like this: public void ProcessRequest(System.Web.HttpContext context) { string path = "c:/media/atb.mpg"; byte buffer=null; context.Response.ClearHeaders();
3
5185
by: UJ | last post by:
I have a .avi file that uses the Divx codec. If I load it with windows media player program it works fine. If I load it using my control in a program, it doesn't display. Over standard media files work fine so it's this particular file. Do I have to do anything when the file uses a non-included codec? How can I tell what Codec it's using? TIA - Jeff.
0
1896
by: dongarbage | last post by:
Hi there, I've created a user control to put in a web page. I'd like to add a windows media player control to the user control that I've created. But, for some reason, the user control does not load when I add the windows media player control to it. Is the issue that I did not specify the HTML correctly? I have embedded a windows media player in a web page, and had to specify the CLSID for media player, but in this case, I'd like to...
0
1204
by: RickH | last post by:
Has anyone wrapped the Windows Media Player ActiveX control as a custom DataGridView column type (prefereably in VB)? That might want to share the source code on the group? So that video/audio clips can be viewed within a cell of a data grid view. This control would be bound to a database column that contains the file path/url string of the video/audio file to be played. Such a control would of course always be read only in a grid...
1
1453
by: =?Utf-8?B?bW91bnRpYW5naXJsNDA=?= | last post by:
The trouble that I am having is the volume on my Windows media player 10...it is adujusting on its own. I have contacted the maker of my pc and have set all master volumes to high thinking that when I adujust the volume on the media player it will be okay but it is not the sound goes from very low to very loud . I have rebooted/went back to a different start date thinking that that might have helped(it did not) I have no Idea why the volume...
7
4451
matheussousuke
by: matheussousuke | last post by:
I spent about 3 weeks on this. First I tried WMP embedded, didnt work (active x issue), then JW PLayer, didnt work too, then Flow Player, then Jw wmv player silver light (Yehaa, it worked, parcialy...) It was 2 weeks to realize that flow player and jw player work with RTMP, but not with MMS video streams. So, my question is: Is there a way to embed windows media player and control its parameters with PHP? I mean, not active x controls,...
0
8777
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9452
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9237
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9184
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6737
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6033
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4551
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4813
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3262
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.