Page 1 of 1

After customization camera not working

Posted: 2022-08-10, 13:48
by mksharma15
Hi Team,
I did customization and created the setup by our own branding.
Under branding I created another folder name Esymed.
We changed like Pale Moon Logos and Pale Moon Title name etc.
When we build and installed the setup in my PC camera is not displaying content in browser.
If I use Direct installer from Pale Moon URL. Camera is working fine.
System Detail:
Win 10 Version 21H2(OS Build 19044.1826) and 64 BIT

Please suggest what would be the issue.

Thanks

Re: After customization camera not working

Posted: 2022-08-10, 14:45
by Moonchild
mksharma15 wrote:
2022-08-10, 13:48
If I use Direct installer from Pale Moon URL. Camera is working fine.
That's very unlikely, because Pale Moon doesn't build the capture code by default.

if you want camera access you probably want to build with --enable-webrtc in your .mozconfig which also builds the media capture plumbing.

Re: After customization camera not working

Posted: 2022-08-11, 18:32
by mksharma15
After enabling I am getting following error at the time of build I am getting following error
ac_add_options --enable-webrtc
1:25.42 DEBUG: configure: error: Branding Violation - Please see: http://www.palemoon.org/redist.shtml
1:25.42 ERROR: old-configure failed
1:25.48 *** Fix above errors and then restart with\
1:25.48 "d:/mozilla-build/bin/mozmake.EXE -f client.mk build"
1:25.48 mozmake.EXE[2]: *** [d:/palemoon-source/client.mk;370: configure] Error 1
1:25.49 mozmake.EXE[1]: *** [d:/palemoon-source/client.mk;383: d:/palemoon-source/obj-x86_64-pc-mingw32/config.status] Error 2
1:25.49 mozmake.EXE: *** [client.mk;164: build] Error 2

Re: After customization camera not working

Posted: 2022-08-11, 19:12
by Moonchild
Yeah, if you're building official Pale Moon, then you can't use that option. I thought you said you re-branded it? :)

If you want to bypass the check, search old-configure.in for "DIRECTIVE4" and comment it out. I'll actually remove that check as it's just pointless come the next dev version.

Re: After customization camera not working

Posted: 2022-08-12, 14:55
by mksharma15
Thanks for reply.
I did rebranding by creating folder name "Esymed" Under branding folder. I updated .moconfig file as below

ac_add_options --enable-official-branding
export MC_OFFICIAL=1
export MOZILLA_OFFICIAL=1

# Only enable the internal updater if you supply automatic update infrastructure
# and have configured the relevant preferences in your branding!
ac_add_options --enable-update-channel=release
ac_add_options --disable-updater

ac_add_options --disable-precompiled-startupcache

ac_add_options --enable-jemalloc
ac_add_options --enable-strip

ac_add_options --disable-parental-controls
ac_add_options --disable-accessibility
ac_add_options --disable-gamepad
ac_add_options --disable-eme
ac_add_options --enable-webrtc

ac_add_options --enable-av1
ac_add_options --with-branding=palemoon/branding/esymed

After enabling webrtc it is failing build every time. I commented the code as well but still fails (Platform/old-configure.in). I am using the release branch as suggested.
It seems like customization is not a easy task :D
Please suggest what I am missing.

Re: After customization camera not working

Posted: 2022-08-12, 16:11
by Moonchild
remove --enable-official-branding if you use --with-branding=/something

Re: After customization camera not working

Posted: 2022-08-23, 13:30
by mksharma15
After removing. Still camera is not working. :o
If I am building without customization. Camera is still not working.
It looks like some configuration must be missing.

Re: After customization camera not working

Posted: 2023-02-23, 02:27
by bmelo
I believe you cannot test your camera even if you enable webrtc during the build, because PM has no GUI to ask you for media permissions.

Re: After customization camera not working

Posted: 2023-02-23, 03:36
by moonbat
PM intentionally does not support WebRTC because of its privacy issues; if you can't do without that then Basilisk is your only UXP based option.

Re: After customization camera not working

Posted: 2023-02-23, 08:50
by Moonchild
Please don't necro-post.