public class WOWZMP4Writer extends java.lang.Object implements WOWZSinkAPI.MediaCodecVideoSink, WOWZSinkAPI.MediaCodecAudioSink
Constructor and Description |
---|
WOWZMP4Writer() |
Modifier and Type | Method and Description |
---|---|
WOWZBroadcastConfig |
getBroadcastConfig()
Gets the configuration settings for an active broadcast session.
|
WOWZStatus |
getBroadcasterStatus()
Gets the status for a broadcast component.
|
java.lang.String |
getFilePath() |
WOWZStatus |
getStatus() |
boolean |
isAudioEnabled()
Checks whether a broadcast component is enabled.
|
boolean |
isAudioPaused()
Checks whether a broadcast component is paused.
|
boolean |
isVideoEnabled()
Checks whether a broadcast component is enabled.
|
boolean |
isVideoPaused()
Checks whether a broadcast component is paused.
|
void |
onAudioFormat(MediaFormat audioFormat) |
void |
onAudioSample(long timecodeMs,
java.nio.ByteBuffer encodedData,
MediaCodec.BufferInfo bufferInfo) |
void |
onVideoFormat(MediaFormat videoFormat) |
void |
onVideoFrame(long timecode,
java.nio.ByteBuffer encodedData,
MediaCodec.BufferInfo bufferInfo) |
WOWZStatus |
prepareForBroadcast(WOWZBroadcastConfig broadcastConfig)
Initializes each component of a broadcast.
|
void |
setAudioEnabled(boolean enabled)
Sets the flag indicating that a broadcast component is enabled.
|
void |
setAudioPaused(boolean paused)
Sets the flag indicating that a broadcast component is paused.
|
void |
setFilePath(java.lang.String filePath) |
void |
setVideoEnabled(boolean enabled)
Sets the flag indicating that a broadcast component is enabled.
|
void |
setVideoPaused(boolean paused)
Sets the flag indicating that a broadcast component is paused.
|
WOWZStatus |
startBroadcasting()
Called on each broadcast component to begin a live streaming broadcast.
|
WOWZStatus |
stopBroadcasting()
Called on each broadcast component to end a live streaming broadcast.
|
public java.lang.String getFilePath()
public void setFilePath(java.lang.String filePath)
public WOWZStatus prepareForBroadcast(WOWZBroadcastConfig broadcastConfig)
WOWZBroadcastAPI.Broadcaster
WOWZState.READY
or WOWZState.IDLE
and also indicate the error in the status.prepareForBroadcast
in interface WOWZBroadcastAPI.Broadcaster
broadcastConfig
- The broadcast configuration.WOWZState.READY
.public WOWZStatus startBroadcasting()
WOWZBroadcastAPI.Broadcaster
WOWZState.RUNNING
or WOWZState.IDLE
and also indicate the error in the status.startBroadcasting
in interface WOWZBroadcastAPI.Broadcaster
WOWZState.RUNNING
.public WOWZStatus stopBroadcasting()
WOWZBroadcastAPI.Broadcaster
WOWZState.IDLE
.stopBroadcasting
in interface WOWZBroadcastAPI.Broadcaster
WOWZState.IDLE
.public WOWZBroadcastConfig getBroadcastConfig()
WOWZBroadcastAPI.Broadcaster
getBroadcastConfig
in interface WOWZBroadcastAPI.Broadcaster
public WOWZStatus getBroadcasterStatus()
WOWZBroadcastAPI.Broadcaster
getBroadcasterStatus
in interface WOWZBroadcastAPI.Broadcaster
public WOWZStatus getStatus()
getStatus
in interface WOWZBroadcastAPI.Broadcaster
public boolean isVideoEnabled()
WOWZSinkAPI.VideoSink
isVideoEnabled
in interface WOWZSinkAPI.VideoSink
public void setVideoEnabled(boolean enabled)
WOWZSinkAPI.VideoSink
setVideoEnabled
in interface WOWZSinkAPI.VideoSink
public boolean isVideoPaused()
WOWZSinkAPI.VideoSink
isVideoPaused
in interface WOWZSinkAPI.VideoSink
public void setVideoPaused(boolean paused)
WOWZSinkAPI.VideoSink
setVideoPaused
in interface WOWZSinkAPI.VideoSink
public void onVideoFormat(MediaFormat videoFormat)
onVideoFormat
in interface WOWZSinkAPI.MediaCodecVideoSink
public void onVideoFrame(long timecode, java.nio.ByteBuffer encodedData, MediaCodec.BufferInfo bufferInfo)
onVideoFrame
in interface WOWZSinkAPI.MediaCodecVideoSink
public boolean isAudioEnabled()
WOWZSinkAPI.AudioSink
isAudioEnabled
in interface WOWZSinkAPI.AudioSink
public void setAudioEnabled(boolean enabled)
WOWZSinkAPI.AudioSink
setAudioEnabled
in interface WOWZSinkAPI.AudioSink
public boolean isAudioPaused()
WOWZSinkAPI.AudioSink
isAudioPaused
in interface WOWZSinkAPI.AudioSink
public void setAudioPaused(boolean paused)
WOWZSinkAPI.AudioSink
setAudioPaused
in interface WOWZSinkAPI.AudioSink
public void onAudioFormat(MediaFormat audioFormat)
onAudioFormat
in interface WOWZSinkAPI.MediaCodecAudioSink
public void onAudioSample(long timecodeMs, java.nio.ByteBuffer encodedData, MediaCodec.BufferInfo bufferInfo)
onAudioSample
in interface WOWZSinkAPI.MediaCodecAudioSink
© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal