TVIRemoteDataTrackDelegate Protocol Reference

Conforms to NSObject
Declared in TVIRemoteDataTrack.h

Overview

TVIRemoteDataTrackDelegate provides callbacks when data is received on a remote data track.

– remoteDataTrack:didReceiveString:

Delegate method called when data is received in string format.

- (void)remoteDataTrack:(nonnull TVIRemoteDataTrack *)remoteDataTrack didReceiveString:(nonnull NSString *)message

Parameters

remoteDataTrack

The remote data track.

message

The message.

Declared In

TVIRemoteDataTrack.h

– remoteDataTrack:didReceiveData:

A delegate method which is called when opaque data is received.

- (void)remoteDataTrack:(nonnull TVIRemoteDataTrack *)remoteDataTrack didReceiveData:(nonnull NSData *)message

Parameters

remoteDataTrack

The remote data track.

message

The message.

Discussion

It’s up to your application to define a wire format for the data which Participants send and receive. For example you could use Universal Binary JSON for higher efficiency than just exchanging JSON encoded strings.

Declared In

TVIRemoteDataTrack.h