After customization camera not working

For contributed third party builds not necessarily configured like the main product.
e.g. AVX builds, SSE builds, Pandora builds.
User avatar
mksharma15
Moongazer
Moongazer
Posts: 13
Joined: 2022-05-10, 08:06
Location: India

After customization camera not working

Unread post by mksharma15 » 2022-08-10, 13:48

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

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 32652
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: After customization camera not working

Unread post by Moonchild » 2022-08-10, 14:45

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.
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb

User avatar
mksharma15
Moongazer
Moongazer
Posts: 13
Joined: 2022-05-10, 08:06
Location: India

Re: After customization camera not working

Unread post by mksharma15 » 2022-08-11, 18:32

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

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 32652
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: After customization camera not working

Unread post by Moonchild » 2022-08-11, 19:12

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.
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb

User avatar
mksharma15
Moongazer
Moongazer
Posts: 13
Joined: 2022-05-10, 08:06
Location: India

Re: After customization camera not working

Unread post by mksharma15 » 2022-08-12, 14:55

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.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 32652
Joined: 2011-08-28, 17:27
Location: Tranås, SE
Contact:

Re: After customization camera not working

Unread post by Moonchild » 2022-08-12, 16:11

remove --enable-official-branding if you use --with-branding=/something
"The best revenge is to not be like the person who wronged you." -- Marcus Aurelius
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb

User avatar
mksharma15
Moongazer
Moongazer
Posts: 13
Joined: 2022-05-10, 08:06
Location: India

Re: After customization camera not working

Unread post by mksharma15 » 2022-08-23, 13:30

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.

Post Reply