@@ -302,11 +302,11 @@ impl EncryptionState {
302
302
/// # Safety
303
303
/// The foreign language is responsable for disposing handles
304
304
/// Forgetting to dispose the handle may lead to memory leaks
305
- ///
305
+ ///
306
306
/// Dropping a handle doesn't necessarily mean that the object is destroyed if it is still used
307
307
/// 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.
310
310
/// (the variable name is suffixed with "_handle")
311
311
#[ allow( clippy:: derive_partial_eq_without_eq) ]
312
312
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -1762,9 +1762,11 @@ pub struct NewVideoSourceRequest {
1762
1762
#[ prost( enumeration="VideoSourceType" , required, tag="1" ) ]
1763
1763
pub r#type : i32 ,
1764
1764
/// 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
1766
1766
#[ prost( message, required, tag="2" ) ]
1767
1767
pub resolution : VideoSourceResolution ,
1768
+ #[ prost( bool , optional, tag="3" ) ]
1769
+ pub is_screencast : :: core:: option:: Option < bool > ,
1768
1770
}
1769
1771
#[ allow( clippy:: derive_partial_eq_without_eq) ]
1770
1772
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -2007,6 +2009,8 @@ impl VideoRotation {
2007
2009
}
2008
2010
}
2009
2011
}
2012
+ /// Values of this enum must not be changed
2013
+ /// It is used to serialize a rtc.VideoFrame on Python
2010
2014
#[ derive( Clone , Copy , Debug , PartialEq , Eq , Hash , PartialOrd , Ord , :: prost:: Enumeration ) ]
2011
2015
#[ repr( i32 ) ]
2012
2016
pub enum VideoBufferType {
@@ -3451,7 +3455,7 @@ pub struct NewAudioSourceResponse {
3451
3455
#[ prost( message, required, tag="1" ) ]
3452
3456
pub source : OwnedAudioSource ,
3453
3457
}
3454
- /// Push a frame to an AudioSource
3458
+ /// Push a frame to an AudioSource
3455
3459
/// The data provided must be available as long as the client receive the callback.
3456
3460
#[ allow( clippy:: derive_partial_eq_without_eq) ]
3457
3461
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
@@ -4005,7 +4009,7 @@ pub struct RpcMethodInvocationEvent {
4005
4009
// that it receives from the server.
4006
4010
//
4007
4011
// Therefore, the ffi client is easier to implement if there is less handles to manage.
4008
- //
4012
+ //
4009
4013
// - We are mainly using FfiHandle on info messages (e.g: RoomInfo, TrackInfo, etc...)
4010
4014
// For this reason, info are only sent once, at creation (We're not using them for updates, we can infer them from
4011
4015
// events on the client implementation).
0 commit comments