Interface RemoteDataTrack.Listener

Enclosing class:
RemoteDataTrack

public static interface RemoteDataTrack.Listener
Interface that provides RemoteDataTrack events.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onMessage(RemoteDataTrack remoteDataTrack, String message)
    This method notifies the listener that a string message was received.
    void
    onMessage(RemoteDataTrack remoteDataTrack, ByteBuffer messageBuffer)
    This method notifies the listener that a binary message was received.
  • Method Details

    • onMessage

      void onMessage(@NonNull RemoteDataTrack remoteDataTrack, @NonNull ByteBuffer messageBuffer)
      This method notifies the listener that a binary message was received.
      Parameters:
      remoteDataTrack - Remote data track.
      messageBuffer - The binary message received.
    • onMessage

      void onMessage(@NonNull RemoteDataTrack remoteDataTrack, @NonNull String message)
      This method notifies the listener that a string message was received.
      Parameters:
      remoteDataTrack - Remote data track.
      message - The string message received.