public class WOWZMP4Broadcaster extends java.lang.Object implements WOWZBroadcastAPI.VideoBroadcaster, WOWZBroadcastAPI.AudioBroadcaster
| Constructor and Description |
|---|
WOWZMP4Broadcaster(Context context) |
| 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.
|
Uri |
getFileUri() |
boolean |
getLooping() |
WOWZMediaConfig |
getMP4Config() |
long |
getOffset() |
WOWZStatus |
getStatus() |
WOWZMediaConfig |
getVideoSourceConfig()
Gets configuration information for the video source.
|
boolean |
isAudioEnabled()
Checks whether an audio broadcast component is enabled.
|
boolean |
isAudioPaused()
Checks whether an audio broadcast component is paused.
|
boolean |
isVideoEnabled()
Checks whether a video broadcast component is enabled.
|
boolean |
isVideoPaused()
Checks whether a video broadcast component is paused.
|
WOWZStatus |
prepareForBroadcast(WOWZBroadcastConfig broadcastConfig)
Initializes each component of a broadcast.
|
void |
setAudioEnabled(boolean enabled)
Sets the flag indicating that an audio broadcast component is enabled.
|
void |
setAudioPaused(boolean paused)
Sets the flag indicating that an audio broadcast component is paused.
|
void |
setFileUri(Uri fileUri) |
void |
setLooping(boolean looping) |
void |
setOffset(long offset) |
void |
setVideoEnabled(boolean enabled)
Sets the flag indicating that a video broadcast component is enabled.
|
void |
setVideoPaused(boolean paused)
Sets the flag indicating that a video 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 long getOffset()
public void setOffset(long offset)
public Uri getFileUri()
public void setFileUri(Uri fileUri)
public WOWZMediaConfig getMP4Config()
public boolean getLooping()
public void setLooping(boolean looping)
public WOWZBroadcastConfig getBroadcastConfig()
WOWZBroadcastAPI.BroadcastergetBroadcastConfig in interface WOWZBroadcastAPI.Broadcasterpublic WOWZStatus getBroadcasterStatus()
WOWZBroadcastAPI.BroadcastergetBroadcasterStatus in interface WOWZBroadcastAPI.Broadcasterpublic WOWZStatus getStatus()
getStatus in interface WOWZBroadcastAPI.Broadcasterpublic WOWZStatus prepareForBroadcast(WOWZBroadcastConfig broadcastConfig)
WOWZBroadcastAPI.BroadcasterWOWZState.READY or WOWZState.IDLE
and also indicate the error in the status.prepareForBroadcast in interface WOWZBroadcastAPI.BroadcasterbroadcastConfig - The broadcast configuration.WOWZState.READY.public WOWZStatus startBroadcasting()
WOWZBroadcastAPI.BroadcasterWOWZState.RUNNING or WOWZState.IDLE
and also indicate the error in the status.startBroadcasting in interface WOWZBroadcastAPI.BroadcasterWOWZState.RUNNING.public WOWZStatus stopBroadcasting()
WOWZBroadcastAPI.BroadcasterWOWZState.IDLE.stopBroadcasting in interface WOWZBroadcastAPI.BroadcasterWOWZState.IDLE.public WOWZMediaConfig getVideoSourceConfig()
WOWZBroadcastAPI.VideoBroadcastergetVideoSourceConfig in interface WOWZBroadcastAPI.VideoBroadcasterpublic boolean isVideoEnabled()
WOWZBroadcastAPI.VideoBroadcasterisVideoEnabled in interface WOWZBroadcastAPI.VideoBroadcasterpublic void setVideoEnabled(boolean enabled)
WOWZBroadcastAPI.VideoBroadcastersetVideoEnabled in interface WOWZBroadcastAPI.VideoBroadcasterenabled - True if the component should be enabled; false otherwise.public boolean isVideoPaused()
WOWZBroadcastAPI.VideoBroadcasterisVideoPaused in interface WOWZBroadcastAPI.VideoBroadcasterpublic void setVideoPaused(boolean paused)
WOWZBroadcastAPI.VideoBroadcastersetVideoPaused in interface WOWZBroadcastAPI.VideoBroadcasterpaused - True if the component should be paused; false otherwise.public boolean isAudioEnabled()
WOWZBroadcastAPI.AudioBroadcasterisAudioEnabled in interface WOWZBroadcastAPI.AudioBroadcasterpublic void setAudioEnabled(boolean enabled)
WOWZBroadcastAPI.AudioBroadcastersetAudioEnabled in interface WOWZBroadcastAPI.AudioBroadcasterenabled - True if the component should be enabled; false otherwise.public boolean isAudioPaused()
WOWZBroadcastAPI.AudioBroadcasterisAudioPaused in interface WOWZBroadcastAPI.AudioBroadcasterpublic void setAudioPaused(boolean paused)
WOWZBroadcastAPI.AudioBroadcastersetAudioPaused in interface WOWZBroadcastAPI.AudioBroadcasterpaused - True if the component should be paused; false otherwise.© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal