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.Broadcaster
getBroadcastConfig
in interface WZBroadcastAPI.Broadcaster
public WZStatus getBroadcasterStatus()
WZBroadcastAPI.Broadcaster
getBroadcasterStatus
in interface WZBroadcastAPI.Broadcaster
public WZStatus getStatus()
getStatus
in interface WZBroadcastAPI.Broadcaster
public WZStatus prepareForBroadcast(WZBroadcastConfig broadcastConfig)
WZBroadcastAPI.Broadcaster
WZState.READY
or WZState.IDLE
and indicate the error in the status as well.prepareForBroadcast
in interface WZBroadcastAPI.Broadcaster
broadcastConfig
- The broadcast configurationWZState.READY
public WZStatus startBroadcasting()
WZBroadcastAPI.Broadcaster
WZState.RUNNING
or WZState.IDLE
and indicate the error in the status as wellstartBroadcasting
in interface WZBroadcastAPI.Broadcaster
WZState.RUNNING
public WZStatus stopBroadcasting()
WZBroadcastAPI.Broadcaster
WZState.IDLE
stopBroadcasting
in interface WZBroadcastAPI.Broadcaster
WZState.IDLE
public WZMediaConfig getVideoSourceConfig()
WZBroadcastAPI.VideoBroadcaster
getVideoSourceConfig
in interface WZBroadcastAPI.VideoBroadcaster
public boolean isVideoEnabled()
WZBroadcastAPI.VideoBroadcaster
isVideoEnabled
in interface WZBroadcastAPI.VideoBroadcaster
public void setVideoEnabled(boolean enabled)
WZBroadcastAPI.VideoBroadcaster
setVideoEnabled
in interface WZBroadcastAPI.VideoBroadcaster
enabled
- true if the audio broadcast component should be enabled, false otherwisepublic boolean isVideoPaused()
WZBroadcastAPI.VideoBroadcaster
isVideoPaused
in interface WZBroadcastAPI.VideoBroadcaster
public void setVideoPaused(boolean paused)
WZBroadcastAPI.VideoBroadcaster
setVideoPaused
in interface WZBroadcastAPI.VideoBroadcaster
paused
- true if the video broadcast component should be placed in a paused state, false otherwisepublic boolean isAudioEnabled()
WZBroadcastAPI.AudioBroadcaster
isAudioEnabled
in interface WZBroadcastAPI.AudioBroadcaster
public void setAudioEnabled(boolean enabled)
WZBroadcastAPI.AudioBroadcaster
setAudioEnabled
in interface WZBroadcastAPI.AudioBroadcaster
enabled
- true if the audio broadcast component should be enabled, false otherwisepublic boolean isAudioPaused()
WZBroadcastAPI.AudioBroadcaster
isAudioPaused
in interface WZBroadcastAPI.AudioBroadcaster
public void setAudioPaused(boolean paused)
WZBroadcastAPI.AudioBroadcaster
setAudioPaused
in interface WZBroadcastAPI.AudioBroadcaster
paused
- 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