IStreamFragmentCommandListener

public interface IStreamFragmentCommandListener

This interface must be implemented by activities attached to the StreamViewerFragment fragment

Methods

onPause

public void onPause(String streamId)

Callback triggered when the user clicks on the pause button

Parameters:
  • streamId – the id of the stream the StreamFragment refer to

onPlay

public void onPlay(String streamId)

Callback triggered after the user clicked on the play button

Parameters:

onSurfaceViewCreated

public void onSurfaceViewCreated(String streamId, SurfaceView surfaceView)

Callback triggered once the surfaceView of the fragment became available

Parameters:
  • streamId – the id of the stream the StreamViewerFragment refer to
  • surfaceView – the surfaceView where to render the stream

onSurfaceViewDestroyed

public void onSurfaceViewDestroyed(String streamId)

Callback triggered after the surfaceView of this fragment has been destroyed

Parameters: