Added preffered H264 profile to webcams on SFU

This commit is contained in:
prlanzarin 2018-08-21 19:15:41 +00:00
parent 9f9e248de7
commit defffe673a
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ to-akka: "to-akka-apps-redis-channel"
from-akka: "from-akka-apps-redis-channel"
common-message-version: "2.x"
webcam-force-h264: true
webcam-preferred-h264-profile: "42e01f"
# Target bitrate (kbps) for webcams. Value 0 leaves it unconstrained.
webcam-target-bitrate: 300000
screenshare-force-h264: true

View File

@ -7,6 +7,7 @@ const C = require('../bbb/messages/Constants');
const Logger = require('../utils/Logger');
const Messaging = require('../bbb/messages/Messaging');
const h264_sdp = require('../h264-sdp');
const PREFERRED_H264_PROFILE = config.get('webcam-preferred-h264-profile');
const BaseProvider = require('../base/BaseProvider');
const FORCE_H264 = config.get('webcam-force-h264');
const WEBCAM_TARGET_BITRATE = config.get('webcam-target-bitrate');
@ -231,7 +232,7 @@ module.exports = class Video extends BaseProvider {
// Force H264
if (FORCE_H264) {
sdpOffer = h264_sdp.transform(sdpOffer);
sdpOffer = h264_sdp.transform(sdpOffer, PREFERRED_H264_PROFILE);
}
// Start the recording process