View Issue Details

IDProjectCategoryView StatusLast Update
0008931Multi Theft Auto : San AndreasCEFpublic2018-09-11 23:49
ReporterImageAssigned ToJusonex 
Status closedResolutionsuspended 
Product Version 
Target VersionFixed in Version 
Summary0008931: Can't change CEF volume in settings

For instance you are playing a youtube video via CEF and you want to lower its volume, but you can't because changing the MTA volume doesn't affect CEF's volume.

TagsNo tags attached.



2015-07-16 13:41

manager   ~~0023622

Confirmed, all volumes in MTA settings are on 0% yet CEF volume remains the same. I guess there should be a CEF volume bar in MTA settings.


2018-07-22 19:59

updater   ~~0026838

Last edited: 2018-08-05 21:50

View 3 revisions

This is somewhat difficult to make in the CWebView class. Mute state or volume state aren't really resetting as supposed to on YouTube for example. This is because we're injecting our JavaScript onto the webpage which might be overriding it. So we're not actually in control.

There is also a comment about this in code:
<pre>Since the necessary interfaces of the core audio API were introduced in Win7, we've to fallback to HTML5 audio</pre>

Also regarding the mute on minimize feature: we need to store that as a separate boolean because the webpage might have HTML5 elements that already have volume/muted attributes, so we're overriding them upon minimize and volume control unless we have a separate minimize setter/getter.

I suppose if we drop XP support at some point in the future, we'll be able to make this work the right way without the HTML5 "hack".

Issue History

Date Modified Username Field Change