StreamViewerFragment

public class StreamViewerFragment extends Fragment

This fragment represents a visual container for an IStream. It can be attached to any Activity, provided that it implements the IStreamFragmentCommandListener interface. This fragment contains a surface where to render the stream along with two image buttons that you can optionally use for sending play or pause stream requests to the attached activity

Fields

FRAGMENT_STREAM_ID_KEY

public static final String FRAGMENT_STREAM_ID_KEY

Methods

newInstance

public static StreamViewerFragment newInstance(String streamId)

Intances a new StreamViewerFragment

Parameters:
  • streamId – the id of the stream to render
Returns:

a new StreamViewerFragment instance

onActivityCreated

public void onActivityCreated(Bundle bundle)

onAttach

public void onAttach(Activity activity)

onCreate

public void onCreate(Bundle savedInstanceState)

onCreateView

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

onDetach

public void onDetach()

setPlayerButtonsVisible

public void setPlayerButtonsVisible(boolean value)

Set the player buttons visible or not

Parameters:
  • valuetrue set buttons visible; false invisible.