Commit dad0cfa3 authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

Fix style of media audio controls


The modern media controls in 69-based were not completely ready, so
stay with the legacy media controls until 5.13.

Fixes: QTBUG-74484
Change-Id: I06de16d8210341443a10d8c984f1978d373de0d9
Reviewed-by: default avatarAlexandru Croitor <alexandru.croitor@qt.io>
Showing with 4 additions and 0 deletions
......@@ -73,6 +73,7 @@
#include "gpu/command_buffer/service/gpu_switches.h"
#include "gpu/ipc/host/gpu_switches.h"
#include "media/audio/audio_manager.h"
#include "media/base/media_switches.h"
#include "mojo/core/embedder/embedder.h"
#include "net/base/port_util.h"
#include "ppapi/buildflags/buildflags.h"
......@@ -451,6 +452,9 @@ WebEngineContext::WebEngineContext()
appendToFeatureSwitch(parsedCommandLine, switches::kDisableFeatures, features::kMojoVideoCapture.name);
// We do not yet support the internal video capture API.
appendToFeatureSwitch(parsedCommandLine, switches::kDisableFeatures, features::kUseVideoCaptureApiForDevToolsSnapshots.name);
// Qt 5.12 only: The modern media controls are not yet good enough in 69-based,
// so we stick to the old style
appendToFeatureSwitch(parsedCommandLine, switches::kDisableFeatures, media::kUseModernMediaControls.name);
if (useEmbeddedSwitches) {
// embedded switches are based on the switches for Android, see content/browser/android/content_startup_flags.cc
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment