Skip to content

Commit

Permalink
[sailfishos][webrtc] Enable support for WebRTC video. JB#53982
Browse files Browse the repository at this point in the history
  • Loading branch information
d-grigorev committed Aug 10, 2021
1 parent ab1aef1 commit 2e27f6d
Show file tree
Hide file tree
Showing 7 changed files with 1,621 additions and 49 deletions.
11 changes: 9 additions & 2 deletions embedding/embedlite/embedding.js
Expand Up @@ -436,5 +436,12 @@ pref("media.cubeb.backend", "pulse");
// On ESR60 customelements is only enabled for nightly. Enable for us.
pref("dom.webcomponents.customelements.enabled", true);

// Disable WebRTC video until it is implemented
pref("media.navigator.video.enabled", false);
// No native handle support (yet) for video frames, so higher resolution degrade performance
pref("media.navigator.video.default_width", 320);
pref("media.navigator.video.default_height", 240);

// Many browsers prefer VP9 over H264. If the sailfish-browser is the initiator of the session,
// then the remote peer may override our preference and put VP9 in front of h264. Due to some bug,
// the gecko skips the peer's preference and creates an h264 decoder. As a workaround, disable VP9
// until the bug is fixed.
pref("media.peerconnection.video.vp9_enabled", false);
11 changes: 11 additions & 0 deletions old-configure.in
Expand Up @@ -2356,6 +2356,17 @@ if test -n "$MOZ_WEBRTC"; then
if test -n "$MOZ_X11"; then
MOZ_WEBRTC_X11_LIBS="-lXext -lXdamage -lXfixes -lXcomposite"
fi

MOZ_ENABLE_WEBRTC_AMBERCAMERA=
PKG_CHECK_MODULES(LIBAMBERCAMERA, ambercamera,
MOZ_ENABLE_WEBRTC_AMBERCAMERA=1,
MOZ_ENABLE_WEBRTC_AMBERCAMERA=)
if test "$MOZ_ENABLE_WEBRTC_AMBERCAMERA"; then
MOZ_ENABLE_WEBRTC_AMBERCAMERA=1
AC_DEFINE(MOZ_ENABLE_WEBRTC_AMBERCAMERA)
AC_SUBST(MOZ_ENABLE_WEBRTC_AMBERCAMERA)
fi

fi

dnl ========================================================
Expand Down

This file was deleted.

0 comments on commit 2e27f6d

Please sign in to comment.