pub enum BundlePolicy {
Balanced,
MaxCompat,
MaxBundle,
}
Expand description
BundlePolicy affects which media tracks are negotiated if the remote endpoint is not bundle-aware, and what ICE candidates are gathered. If the remote endpoint is bundle-aware, all media tracks and data channels are bundled onto the same transport.
Variants§
Balanced
BundlePolicyBalanced indicates to gather ICE candidates for each media type in use (audio, video, and data). If the remote endpoint is not bundle-aware, negotiate only one audio and video track on separate transports.
MaxCompat
BundlePolicyMaxCompat indicates to gather ICE candidates for each track. If the remote endpoint is not bundle-aware, negotiate all media tracks on separate transports.
MaxBundle
BundlePolicyMaxBundle indicates to gather ICE candidates for only one track. If the remote endpoint is not bundle-aware, negotiate only one media track.
Trait Implementations§
Source§impl Clone for BundlePolicy
impl Clone for BundlePolicy
Source§fn clone(&self) -> BundlePolicy
fn clone(&self) -> BundlePolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more