pub enum RTCBundlePolicy {
Unspecified = 0,
Balanced = 1,
MaxCompat = 2,
MaxBundle = 3,
}
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§
Unspecified = 0
Balanced = 1
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 = 2
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 = 3
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 RTCBundlePolicy
impl Clone for RTCBundlePolicy
source§fn clone(&self) -> RTCBundlePolicy
fn clone(&self) -> RTCBundlePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RTCBundlePolicy
impl Debug for RTCBundlePolicy
source§impl Default for RTCBundlePolicy
impl Default for RTCBundlePolicy
source§fn default() -> RTCBundlePolicy
fn default() -> RTCBundlePolicy
source§impl<'de> Deserialize<'de> for RTCBundlePolicy
impl<'de> Deserialize<'de> for RTCBundlePolicy
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Display for RTCBundlePolicy
impl Display for RTCBundlePolicy
source§impl From<&str> for RTCBundlePolicy
impl From<&str> for RTCBundlePolicy
source§impl PartialEq for RTCBundlePolicy
impl PartialEq for RTCBundlePolicy
source§fn eq(&self, other: &RTCBundlePolicy) -> bool
fn eq(&self, other: &RTCBundlePolicy) -> bool
self
and other
values to be equal, and is used
by ==
.