@@ -302,11 +302,11 @@ impl EncryptionState {
302302/// # Safety
303303/// The foreign language is responsable for disposing handles
304304/// Forgetting to dispose the handle may lead to memory leaks
305- ///
305+ ///
306306/// Dropping a handle doesn't necessarily mean that the object is destroyed if it is still used
307307/// on the FfiServer (Atomic reference counting)
308- ///
309- /// When refering to a handle without owning it, we just use a uint32 without this message.
308+ ///
309+ /// When refering to a handle without owning it, we just use a uint32 without this message.
310310/// (the variable name is suffixed with "_handle")
311311#[ allow( clippy:: derive_partial_eq_without_eq) ]
312312#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -1762,9 +1762,11 @@ pub struct NewVideoSourceRequest {
17621762 #[ prost( enumeration="VideoSourceType" , required, tag="1" ) ]
17631763 pub r#type : i32 ,
17641764 /// Used to determine which encodings to use + simulcast layers
1765- /// Most of the time it corresponds to the source resolution
1765+ /// Most of the time it corresponds to the source resolution
17661766 #[ prost( message, required, tag="2" ) ]
17671767 pub resolution : VideoSourceResolution ,
1768+ #[ prost( bool , optional, tag="3" ) ]
1769+ pub is_screencast : :: core:: option:: Option < bool > ,
17681770}
17691771#[ allow( clippy:: derive_partial_eq_without_eq) ]
17701772#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -2007,6 +2009,8 @@ impl VideoRotation {
20072009 }
20082010 }
20092011}
2012+ /// Values of this enum must not be changed
2013+ /// It is used to serialize a rtc.VideoFrame on Python
20102014#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
20112015#[ repr( i32 ) ]
20122016pub enum VideoBufferType {
@@ -3451,7 +3455,7 @@ pub struct NewAudioSourceResponse {
34513455 #[ prost( message, required, tag="1" ) ]
34523456 pub source : OwnedAudioSource ,
34533457}
3454- /// Push a frame to an AudioSource
3458+ /// Push a frame to an AudioSource
34553459/// The data provided must be available as long as the client receive the callback.
34563460#[ allow( clippy:: derive_partial_eq_without_eq) ]
34573461#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -4005,7 +4009,7 @@ pub struct RpcMethodInvocationEvent {
40054009// that it receives from the server.
40064010//
40074011// Therefore, the ffi client is easier to implement if there is less handles to manage.
4008- //
4012+ //
40094013// - We are mainly using FfiHandle on info messages (e.g: RoomInfo, TrackInfo, etc...)
40104014// For this reason, info are only sent once, at creation (We're not using them for updates, we can infer them from
40114015// events on the client implementation).
0 commit comments