TVILocalVideoTrack Class Reference
| Inherits from | TVIVideoTrack : TVITrack : NSObject |
|---|---|
| Declared in | TVILocalVideoTrack.h |
enabled
Indicates if track is enabled.
@property (nonatomic, assign, getter=isEnabled) BOOL enabledDiscussion
It is possible to enable and disable local tracks. The results of this operation are signaled to other Participants in the same Room. When a video track is disabled, black frames are sent in place of normal video.
Declared In
TVILocalVideoTrack.h
– init
Developers shouldn’t initialize this class directly.
- (null_unspecified instancetype)initDiscussion
Use trackWithCapturer: or trackWithCapturer:enabled:constraints:name: to create a TVILocalVideoTrack.
Declared In
TVILocalVideoTrack.h
source
The video source that is associated with this track when using the TVIVideoSource based initializers.
@property (nonatomic, strong, readonly, nullable) id<TVIVideoSource> sourceDeclared In
TVILocalVideoTrack.h
+ trackWithSource:
Creates a TVILocalVideoTrack with a TVIVideoSource.
+ (nullable instancetype)trackWithSource:(nonnull id<TVIVideoSource>)sourceParameters
source |
A |
|---|
Return Value
A Track which is ready to be shared with Participants in a Room, or nil if an error occurs.
Discussion
The Track will be enabled, and use a randomly generated name.
See Also
Declared In
TVILocalVideoTrack.h
+ trackWithSource:enabled:name:
Creates a TVILocalVideoTrack with a TVIVideoSource.
+ (nullable instancetype)trackWithSource:(nonnull id<TVIVideoSource>)source enabled:(BOOL)enabled name:(nullable NSString *)nameParameters
source |
A |
|---|---|
enabled |
Determines if the Track is enabled at creation time. |
name |
A name for the Track. Names are immutable and can only be provided at Track creation time. |
Return Value
A Track which is ready to be shared with Participants in a Room, or nil if an error occurs.
Discussion
The Track will be enabled, and use a randomly generated name.
See Also
Declared In
TVILocalVideoTrack.h