Unable to play DRM encrypted content
The issue is that videos on netflix do not work.
I am testing in this url where by default the video player is not visible at all. In netflix, when playing a video it just remains on a dark background empty page.
I tried setting:
GeckoPreferences.Default["media.gmp-widevinecdm.abi"] = "x86-msvc-x64";
GeckoPreferences.Default["media.gmp-widevinecdm.enabled"] = true;
GeckoPreferences.Default["media.gmp-widevinecdm.version"] = "1.4.8.903";
GeckoPreferences.Default["media.gmp-gmpopenh264.abi"] = "x86-msvc-x64";
GeckoPreferences.Default["media.gmp-gmpopenh264.version"] = "1.6";
GeckoPreferences.Default["media.gmp.decoder.aac"] = 0;
GeckoPreferences.Default["media.gmp.decoder.h264"] = 0;
and copied gmp-widevinecdm
and gmp-gmpopenh264
folders from installed firefox profile directory to my application's profile directory.
Now the video player at the first site is visible and at the top it recognizes that widevine works but when hitting the play button the video does not play and stays black.
In Netflix, more images load like the background image of the selected program and a loading indicator appears but it gets stuck there.
On the Debug Output this is getting logged as soon as I press the play button
[30732] WARNING: Failed to launch geckomediaplugin subprocess: file c:/builds/moz2_slave/m-esr52-w32-000000000000000000/build/src/ipc/glue/GeckoChildProcessHost.cpp, line 576
By just running firefox.exe from the downloaded .zip file, all videos work.
Comments (4)
-
repo owner -
still getting
[13064] WARNING: Failed to launch geckomediaplugin subprocess: file c:/builds/moz2_slave/m-esr52-w32-000000000000000000/build/src/ipc/glue/GeckoChildProcessHost.cpp, line 576
and videos do not work. I tried:Environment.SetEnvironmentVariable("MOZ_DISABLE_GMP_SANDBOX","1", EnvironmentVariableTarget.Process);
also tried to set it as env variable in windows.
Tested with Firefox
52.0.2
,52.1.0
and52.1.2
. -
repo owner Try to create batch file.
start.bat:
set MOZ_DISABLE_GMP_SANDBOX=1 YourAppName.exe
-
That actually worked and it made me wonder. So, it looks like videos work without the script as long as the variable is set before
Xpcom.Init()
and your executable is not running with debugger attached. When running with Visual Studio, videos do not work.Thanks for your help!
- Log in to comment
Workaround: Set environment variable MOZ_DISABLE_GMP_SANDBOX=1