public class WZMP4Broadcaster extends Object implements WZBroadcastAPI.VideoBroadcaster, WZBroadcastAPI.AudioBroadcaster
| Constructor and Description |
|---|
WZMP4Broadcaster(Context context) |
| Modifier and Type | Method and Description |
|---|---|
WZBroadcastConfig |
getBroadcastConfig()
Returns the configuration settings for an active broadcast session.
|
WZStatus |
getBroadcasterStatus()
Returns the status for a broadcast component
|
Uri |
getFileUri() |
boolean |
getLooping() |
WZMediaConfig |
getMP4Config() |
long |
getOffset() |
WZStatus |
getStatus() |
WZMediaConfig |
getVideoSourceConfig()
Returns configuration information for the video source
|
boolean |
isAudioEnabled()
Indicates if a broadcast component is enabled or not
|
boolean |
isAudioPaused()
Indicates if a broadcast component is paused or not
|
boolean |
isVideoEnabled()
Indicates if a broadcast component is enabled or not
|
boolean |
isVideoPaused()
Indicates if a broadcast component is paused or not
|
WZStatus |
prepareForBroadcast(WZBroadcastConfig broadcastConfig)
This method is called to initialize each component of a broadcast.
|
void |
setAudioEnabled(boolean enabled)
Set or unset the flag indicating that a broadcast component is enabled
|
void |
setAudioPaused(boolean paused)
Set or unset the flag indicating that a broadcast component is in a paused state
|
void |
setFileUri(Uri fileUri) |
void |
setLooping(boolean looping) |
void |
setOffset(long offset) |
void |
setVideoEnabled(boolean enabled)
Set or unset the flag indicating that a broadcast component is enabled
|
void |
setVideoPaused(boolean paused)
Set or unset the flag indicating that a broadcast component is in a paused state
|
WZStatus |
startBroadcasting()
This method is called on each broadcast component to begin a live streaming broadcast.
|
WZStatus |
stopBroadcasting()
This method is 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 WZMediaConfig getMP4Config()
public boolean getLooping()
public void setLooping(boolean looping)
public WZBroadcastConfig getBroadcastConfig()
WZBroadcastAPI.BroadcastergetBroadcastConfig in interface WZBroadcastAPI.Broadcasterpublic WZStatus getBroadcasterStatus()
WZBroadcastAPI.BroadcastergetBroadcasterStatus in interface WZBroadcastAPI.Broadcasterpublic WZStatus getStatus()
getStatus in interface WZBroadcastAPI.Broadcasterpublic WZStatus prepareForBroadcast(WZBroadcastConfig broadcastConfig)
WZBroadcastAPI.BroadcasterWZState.READY or WZState.IDLE
and indicate the error in the status as well.prepareForBroadcast in interface WZBroadcastAPI.BroadcasterbroadcastConfig - The broadcast configurationWZState.READYpublic WZStatus startBroadcasting()
WZBroadcastAPI.BroadcasterWZState.RUNNING or WZState.IDLE
and indicate the error in the status as wellstartBroadcasting in interface WZBroadcastAPI.BroadcasterWZState.RUNNINGpublic WZStatus stopBroadcasting()
WZBroadcastAPI.BroadcasterWZState.IDLEstopBroadcasting in interface WZBroadcastAPI.BroadcasterWZState.IDLEpublic WZMediaConfig getVideoSourceConfig()
WZBroadcastAPI.VideoBroadcastergetVideoSourceConfig in interface WZBroadcastAPI.VideoBroadcasterpublic boolean isVideoEnabled()
WZBroadcastAPI.VideoBroadcasterisVideoEnabled in interface WZBroadcastAPI.VideoBroadcasterpublic void setVideoEnabled(boolean enabled)
WZBroadcastAPI.VideoBroadcastersetVideoEnabled in interface WZBroadcastAPI.VideoBroadcasterenabled - true if the audio broadcast component should be enabled, false otherwisepublic boolean isVideoPaused()
WZBroadcastAPI.VideoBroadcasterisVideoPaused in interface WZBroadcastAPI.VideoBroadcasterpublic void setVideoPaused(boolean paused)
WZBroadcastAPI.VideoBroadcastersetVideoPaused in interface WZBroadcastAPI.VideoBroadcasterpaused - true if the video broadcast component should be placed in a paused state, false otherwisepublic boolean isAudioEnabled()
WZBroadcastAPI.AudioBroadcasterisAudioEnabled in interface WZBroadcastAPI.AudioBroadcasterpublic void setAudioEnabled(boolean enabled)
WZBroadcastAPI.AudioBroadcastersetAudioEnabled in interface WZBroadcastAPI.AudioBroadcasterenabled - true if the audio broadcast component should be enabled, false otherwisepublic boolean isAudioPaused()
WZBroadcastAPI.AudioBroadcasterisAudioPaused in interface WZBroadcastAPI.AudioBroadcasterpublic void setAudioPaused(boolean paused)
WZBroadcastAPI.AudioBroadcastersetAudioPaused in interface WZBroadcastAPI.AudioBroadcasterpaused - true if the audio broadcast component should be placed in a paused state, false otherwise© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal