Control the volume of the multiple MediaPlayers - mediacontroller.h library of basic API
Hello
As I wrote
I can't control the volume of a MediaPlayer object using myPlayer.setVolume ().
I managed to set the volume to help:
void ApplicationUI::setVolume(float val) { //audiomixer_set_output_level(AUDIOMIXER_OUTPUT_SPEAKER, val); mediacontroller_volume_set_level(val); }
mediacontroller_volume_set_level() library of base API mediacontroller.h method.
But it works on the single instance of MediaPlayer that I have on my QML, and I need to find a way to control the volumes of several players. How can I configure a specific MediaPlayer as "active" or "current" to call the
mediacontroller_volume_set_level(val);
Hi burakk,
Please refer to your first forum post for the explanation and the code snippet on how to implement what you're trying to reach. I checked using the sample application 'nowplaying' that the MediaPlayer API setVolume method works as expected. I hope that helps!
Tags: BlackBerry Developers
Similar Questions
-
How can I control the configuration of Win 7 library with GPO/GPP?
Hello
We would like to be able to add/remove central controls the administration of libraries in win 7 in our company, via GPO or PPM.
The only articles I can find suggests to change the library-ms files and copying on each machine when connecting or using a powershell script to delete libraries.
In particular, I hope, there is a way we can remove public libraries of a Windows 7 via GPO client without having to copy a file to the opening?
PS; I know that I can use the GPO as a mechanism to provide the fixes above, I just expected something a little more elegant.
Let me know if there is a setting in the GPO /GPP miss me.
See you soon
Max
People who do Active Directory and servers to hang out in the TechNet forums, then you'll want to ask this question here:
-
I have an Apple TV 4 (tvOS 9.2.1) with a Philips BDM4065UC 40 '' monitor (not TV) connected via HDMI. Everything works OK, except that I can't control the volume with the Apple Remote.
In the volume control settings, I can choose between 'Auto', 'TV via IR' and 'Off '. Obviously 'Off' does not work. But not more than the other two.
I asked Philips support if the BDM4065UC supports the HDMI-CEC, that I understand to be a sine qua non for Apple TV, and I'll make their response when I get it. However, I understand that the options 'Auto' and 'TV via IR' would not be displayed if HDMI-CEC was not taken in charge for the monitor.
I can't form a new setting because the BDM4065UC is not a remote control to train with.
I tried to use Apple's HDMI cable and the HDMI supplied with the BDM4065UC.
Any thoughts?
Steve
I'm waiting for the volume of a computer screen (if it has speakers) to be flown by the device to which it is connected. The monitor is equipped with a remote control, otherwise I think he won't have the receivers to receive a signal from one.
-
Portege M750 - Volume knob does not control the sound
Hello:
Just made a new intall of Windows 7 (32 bit). Made from scracth with CD from Toshiba. The drivers that I downloaded from the site Web of Toshiba. Everything is ok, except the volume knob does not control the sound.
Does anyone know driver I'm missing? All buttons and other functions are active except volume wheel.
Hello
Have you installed the VAP (value added package) for Win 7?
EU from Toshiba are page pilot VAP v 1.2.40 -
and control the YouTube volume scroll bar does not appear in firefox
I just notice that most of the time I don't get the bar volume control bar /scroll in the page of youtube, it's hidden when I open a video link. I can see cut the scroll bar, but no control of volume or not the button fullscreen. everything looks good in full screenmode only. pls help. I tried to update all the latest plugins available, but it seems something else. Thank you for your help
It is up to the web pages and Adobe Designer. Flash works in Firefox in the form of application.
-
Siri remote control controls the volume but will not turn on or turn off the tv more
LLA Siri remote control the TV volume, but does not turn the TV on or off more. My anynet + him Cec is enabled. How can I get this function runs again. Tired of using two remotes
That is dependent on the TV then you will need to contact their support
-
I have a HP Pavilion dv7-7000 Quad. The music playback volume goes up and down. Also, I can't control the volume in itunes or winamp. If I turn the volume in itunes there for a while, but back down. When I turn the volume to 1% in itunes, it says there for a few seconds and it slowly rises to the top.
I tried a lot of things trying to get this problem resolved and spent over 2 hours with HP tech rep:
1 uninstall the audio driver, restart, install the driver.
2 bios flash
3 reinstall the sound driver using HP Recovery Manager
4 Windows repair.
5 Chkdsk
The only thing that worked was
Uninstalled the audio driver in Device Manager and is looking for new devices and installed windows automaticlly refreshment and it fixed the issue... * beep *? I had my helmet in the decision-making when the driver installed.
I'm afraid to turn my computer off now.
-
Problems with the buttons that control the volume
Hello everyone I hope you can help me. I had to reinstall the system on my laptop, everything is ok except for a problem, the software that controls the volume buttons are not displayed. If the work on screen, but I can't see if the volume or bass.
Could you tell me what might happen. Thanks and forgive the inconvenience.Hi all I have solved the problem, as I'd mentioned the error is when you install the drivers and the order in which they are installed.
First of all, install the file shortcut (8jvu20ww.exe)
Once installed, you will be prompted to restart the system. Do not.
Then install (g1ku20ww.exe) power management.
Reinicir system and the problem is solved.
A welcome message. -
control the visibility of multiple vi
I need to control the visibility 3 controls (one flag and two integers) of multiple vi ('visible' property). Does anyone have a practical example how to do?
Haroldo salvation,
This problem arises due to the construction of a table of references of different types of controls (with respect to the type of data). You have to work with variant OR you need to convert the reference for each control "to a more specific class" (found in the application control palette). Then you can wire the correct data type for the value property node...
-
I'm trying to recover my small speaker on the taskbar to control the volume
I tried to get it back, but I told myself that the program is not downloaded. Will add and remove programs. I can't control the sound on my computor or speakers. I must have accidentally he removed when more space on my hard drive. I don't know anything about this stuff. Help!
1.
Click Startand then click Control Panel.
2.
Click sound, speech and Audio devices.
3.
Under Pick a task, click change the speaker settings.
4.
In the dialog box properties of sounds and Audio Devices, on the Volume tab, select the volume icon to Place in the taskbar , and then click OK.
Now, when you want to adjust the volume, click the icon and move the slider.
-
Windows cannot display the control of volume on the taskbar because the volume control program has not been installed
Why a how can I fix this is where, until I rebooted after a windows updateHere is a link to try. Good luck: http://support.microsoft.com/kb/319095.
-
Helmet of blackBerry Smartphones do not control the volume?
Got my PRIV - a few days ago gorgeous! Still working on understanding all the features and very impressed so far. Unfortunately, I can't get the headset to control the volume of the phone. The only option seems to be to physically settle on the phone itself. have you tried with the closed Blackberry headphones and earphones Apple earphones ground Republic - none are able to control the volume on the PRIV. Please advise - it is an important issue for me, so I may have to return the phone if I can't get one of these (or other) headsets to work right. Thank you.
I am now using Sennheiser M2 OEG headphones with a cord android announced for the Galaxy. All controls work properly when listening to music via BlackPlayer E.G. This includes the volume, pause and move forward.
Visually, I see no difference between the Sennheiser sheet and on the BB M-430 headphones. in other essays of the M-430, I found that the controls on it would increase volume and advance and break functions worked properly, but the '-' grew up Google voice rather than reduce the volume.
I also tried the headset that comes with the private which I had not unpacked I think friction pained headphones very comfortable. The button on those will stop and start the music but do nothing else.
So the private seems to be picky about this headset is used with it but the controls on some, but not all, headphones will work correctly. Ironically the Priv do not take care of Blackberry helmets.
-
How to control the volume of the MediaPlayer?
BB:Multimedia:MediaPlayer has all the features of load, play, pause the music, but I couldn't find anything which could control the volume.
Of course you can adjust the volume for the whole of the device, but is it possible to adjust the volume for this object?
For example - if you have a background music in an application - it'd have to allow the user to adjust the volume of it.
Hello djogon,
It is certainly a valid use case. However, the API of MediaPlayer Qt (QML, Qt/C++), so far, is mainly designed for simple multimedia applications, for audio & video consumption (in local or streaming).
This feature is currently doable by the low-level C API only; by mmrenderer:
In other words, if you were to apply to your use case, you would have to implement playback using the C API and wrapper classes to communicate with the user of Cascades UI elements.
The function to control the volume, in a context of mmrenderer (C API) is documented here:
---------------------------
The best place to start would be to look at some of the native apps sample mmrenderer, high during the scanning level tutorials and documentation (pasted below):
---------------------------
* Reading video sample application - code and tutorial with C API:
http://developer.BlackBerry.com/native/beta/documentation/video_playback_overview_2006471_11.html
https://github.com/BlackBerry/NDK-samples/tree/next/VideoPlayback
---------------------------
* PlayAudio sample application: https://github.com/blackberry/NDK-Samples/tree/next/PlayAudio
---------------------------
To wrap the C/C++ API in QObjects and contact the QML UI elements, if you have not come across this already, there are other examples of applications which shows how to do this. Like this one:
* Kakel, Cascades sample application: https://github.com/blackberry/Cascades-Samples/blob/master/kakel/src/kakelapp.h
---------------------------
Some links to the relevant documentation for mmrenderer:
http://developer.BlackBerry.com/native/beta/documentation/com.QNX.doc.Mme.mmrenderer/topic/arch.html
---------------------------
I'll try to convince the API team to include this feature in the MediaPlayer Qt API as well (for future versions of the operating system). If you can file a feature request in the Developer incidents handler, that would certainly help as well. (of course, more people asking for a function API - more chances).
Hope at least part of this aid.
See you soon,.
Rashid -
There is no icon on my departure for the control of volume... w Hat I do
in my Start menu, there was always a volume knob... There is none now I can't control the volume
in my Start menu, there was always a volume knob... There is none now I can't control the volume
What do you see inside the box show hidden in the Notification area of your taskbar icons tasks? For example, FWIW, I have an icon "speaker" in there that if I right-click I see listed Volume control. Then you could use customize it... link to this icon always display.
FYI
Robert Aldwinckle
--- -
Master Volume Control / Mute button that controls the audio files on the entire Folio?
Hi, is there is no way to create a Master Volume Control / Mute button that controls the audio files on the entire Folio? We have individual pages with noise when the page loads and there is a mute option for these on each individual page to help
There is no way to toggle all the sound elements through the application.
Neil
Maybe you are looking for
-
Calendar Apple App Bug frozen works only with iOS 10 update grrr
Since I updated to iOS 10 (more more later than 10.2, etc.), everything was not too bad except THE APPLE CALENDAR app, its deiving me crazy when I click on the app it's like it freezes and past shift x 50 mode still something to do with the calendar
-
How is it that my iPod Shuffle will not connect to my radio?
How is it that my iPod Shuffle will not connect to my radio?
-
Device not found Boot Install an operating system press F10 to reset factory and she request password have my pw does not give me the code 69599233
-
Tecra 8200: Question about replacing the 14.1 screen
Hi, my screen shows that the left side, a line falls down in the middle and the right side is empty. I have the external monitor firmly on the upper left side, the entire screen lights up as usual. I've attached a screen remote and it works fine. I s
-
Missing drivers in HP Pavillion G6 1202TX (win7 64 bit).
IM using HP Pavillion G6 computer 1202TX laptop (Windows 7 64-bit) My system is missing these drivers because they are highlighted in yellow in the Device Manager. * Network controller * PCI device * PCI Simple Communications Controller Also on the d