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: 35402
Joined: 2011-08-28, 17:27
Location: Motala, 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.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

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: 35402
Joined: 2011-08-28, 17:27
Location: Motala, 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.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

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: 35402
Joined: 2011-08-28, 17:27
Location: Motala, 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
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

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.

User avatar
bmelo
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: 2023-02-13, 02:10

Re: After customization camera not working

Unread post by bmelo » 2023-02-23, 02:27

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.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: After customization camera not working

Unread post by moonbat » 2023-02-23, 03:36

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.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: After customization camera not working

Unread post by Moonchild » 2023-02-23, 08:50

Please don't necro-post.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked