TWCLocalMediaDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | TWCMedia.h |
– localMedia:didAddVideoTrack:
A video track was added to TWCLocalMedia.
- (void)localMedia:(nonnull TWCLocalMedia *)media didAddVideoTrack:(nonnull TWCVideoTrack *)videoTrackParameters
media |
The |
|---|---|
videoTrack |
The |
Discussion
A video track was added to TWCLocalMedia.
If you didn’t already add a renderer when you created the track, now is a good time.
Declared In
TWCMedia.h
– localMedia:didFailToAddVideoTrack:error:
A video track failed to be added to TWCLocalMedia.
- (void)localMedia:(nonnull TWCLocalMedia *)media didFailToAddVideoTrack:(nonnull TWCVideoTrack *)videoTrack error:(nonnull NSError *)errorParameters
media |
The |
|---|---|
videoTrack |
The |
error |
An |
Discussion
A video track failed to be added to TWCLocalMedia.
Asynchronous track errors may occur due to invalid TWCVideoConstraints, or other
failures in the video subsystem. Check the error that is returned for recovery strategies.
Declared In
TWCMedia.h
– localMedia:didRemoveVideoTrack:
A video track was removed from TWCLocalMedia.
- (void)localMedia:(nonnull TWCLocalMedia *)media didRemoveVideoTrack:(nonnull TWCVideoTrack *)videoTrackParameters
media |
The |
|---|---|
videoTrack |
The |
Discussion
A video track was removed from TWCLocalMedia.
Renderers are automatically removed from the track after this call returns.
Declared In
TWCMedia.h