Class StreamOptions


public class StreamOptions extends AbstractStreamOptions
Options for stream: stream name, renderer for displaying video, constraints for audio and video
  • Constructor Details

    • StreamOptions

      public StreamOptions(String name)
      New StreamOptions
      Parameters:
      name - the stream name
    • StreamOptions

      public StreamOptions()
      New StreamOptions
  • Method Details

    • getRenderer

      public org.webrtc.SurfaceViewRenderer getRenderer()
      Get renderer displaying stream
    • setRenderer

      public void setRenderer(org.webrtc.SurfaceViewRenderer renderer)
      Set renderer for displaying stream
      Parameters:
      renderer -
    • getConstraints

      public Constraints getConstraints()
      Get audio and video constraints of stream
    • setConstraints

      public void setConstraints(Constraints constraints)
      Set constraints for stream
      Parameters:
      constraints - audio and video constraints for stream
    • getTransport

      public Transport getTransport()
      Get tarnsportType for stream
      Returns:
      transport type
    • setTransport

      public void setTransport(Transport transport)
      Set tarnsportType for stream
      Parameters:
      transport - transport type - TCP or UDP
    • setRtmpUrl

      public void setRtmpUrl(String url)
    • getRtmpUrl

      public String getRtmpUrl()
    • getStripCodecs

      public String[] getStripCodecs()
    • setStripCodecs

      public void setStripCodecs(String[] stripCodecs)