public static class lsMediaCapture.LiveStreamingPara
extends java.lang.Object
构造器和说明 |
---|
LiveStreamingPara() |
限定符和类型 | 方法和说明 |
---|---|
lsMediaCapture.FormatType |
getFormatType() |
int |
getQosEncodeMode() |
java.lang.String |
getRecordPath() |
lsMediaCapture.StreamType |
getStreamType() |
boolean |
isAbsoluteTime() |
boolean |
isAutoRecord() |
boolean |
isQosOn() |
boolean |
isStreamTimestampPassthrough() |
boolean |
isSyncTimestamp() |
void |
setAutoRecord(boolean autoRecord)
当formatType为MP4或RTMP_AND_MP4是否推流开始就自动开始录制
|
void |
setFormatType(lsMediaCapture.FormatType formatType)
设置推流格式
|
void |
setQosEncodeMode(int qosEncodeMode)
设置qos编码模式(清晰优先或流畅优先,默认流畅优先)
|
void |
setQosOn(boolean qosOn)
是否开启Qos(默认开启)
|
void |
setRecordPath(java.lang.String recordPath)
本地录制地址
|
void |
setStreamTimestampPassthrough(boolean streamTimestampPassthrough)
网易云透传时间戳,但完全透传功能需要联系网易云开通(支持纯音频)
|
void |
setStreamType(lsMediaCapture.StreamType streamType)
设置推流类型
|
void |
setSyncTimestamp(boolean syncTimestamp,
boolean absoluteTime)
高级时间戳透传开关,默认关闭,推流类型必须包含视频,同时需要网易云播放器支持
|
java.lang.String |
toString() |
public void setStreamType(lsMediaCapture.StreamType streamType)
streamType
- AUDIO/VIDEO/AVpublic void setFormatType(lsMediaCapture.FormatType formatType)
formatType
- MP4/RTMP/RTMP_AND_MP4public void setRecordPath(java.lang.String recordPath)
recordPath
- 本地SD卡地址public void setQosOn(boolean qosOn)
qosOn
- true:开启 false:关闭public void setQosEncodeMode(int qosEncodeMode)
qosEncodeMode
- 1:流畅优先, 2:清晰优先public void setAutoRecord(boolean autoRecord)
autoRecord
- 是否自动录制(默认为true)public void setStreamTimestampPassthrough(boolean streamTimestampPassthrough)
streamTimestampPassthrough
- true:透传,false:不透传public void setSyncTimestamp(boolean syncTimestamp, boolean absoluteTime)
syncTimestamp
- true:透传,false:不透传absoluteTime
- true:绝对时间(unix时间),false:相对于推流的时间(从0开始)public int getQosEncodeMode()
public lsMediaCapture.StreamType getStreamType()
public lsMediaCapture.FormatType getFormatType()
public java.lang.String getRecordPath()
public boolean isQosOn()
public boolean isAutoRecord()
public boolean isStreamTimestampPassthrough()
public boolean isSyncTimestamp()
public boolean isAbsoluteTime()
public java.lang.String toString()
toString
在类中 java.lang.Object