Package com.flashphoner.fpwcsapi.session
Class StreamOptions
java.lang.Object
com.flashphoner.fpwcsapi.bean.CustomObject
com.flashphoner.fpwcsapi.session.AbstractStreamOptions
com.flashphoner.fpwcsapi.session.StreamOptions
Options for stream: stream name, renderer for displaying video, constraints for audio and video
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet audio and video constraints of streamorg.webrtc.SurfaceViewRenderer
Get renderer displaying streamString[]
Get tarnsportType for streamvoid
setConstraints
(Constraints constraints) Set constraints for streamvoid
setRenderer
(org.webrtc.SurfaceViewRenderer renderer) Set renderer for displaying streamvoid
setRtmpUrl
(String url) void
setStripCodecs
(String[] stripCodecs) void
setTransport
(Transport transport) Set tarnsportType for streamMethods inherited from class com.flashphoner.fpwcsapi.session.AbstractStreamOptions
getName, isRecord, setName, setRecord
Methods inherited from class com.flashphoner.fpwcsapi.bean.CustomObject
getCustom, getCustomAsBoolean, getCustomAsContext, getCustomAsInteger, getCustomAsList, getCustomAsNumber, getCustomAsString, removeCustom, setCustom, setCustom, toString
-
Constructor Details
-
StreamOptions
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
Get audio and video constraints of stream -
setConstraints
Set constraints for stream- Parameters:
constraints
- audio and video constraints for stream
-
getTransport
Get tarnsportType for stream- Returns:
- transport type
-
setTransport
Set tarnsportType for stream- Parameters:
transport
- transport type - TCP or UDP
-
setRtmpUrl
-
getRtmpUrl
-
getStripCodecs
-
setStripCodecs
-