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.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 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 WOWZMediaConfig getVideoSourceConfig()
WOWZBroadcastAPI.VideoBroadcaster
getVideoSourceConfig
in interface WOWZBroadcastAPI.VideoBroadcaster
public boolean isVideoEnabled()
WOWZBroadcastAPI.VideoBroadcaster
isVideoEnabled
in interface WOWZBroadcastAPI.VideoBroadcaster
public void setVideoEnabled(boolean enabled)
WOWZBroadcastAPI.VideoBroadcaster
setVideoEnabled
in interface WOWZBroadcastAPI.VideoBroadcaster
enabled
- True if the component should be enabled; false otherwise.public boolean isVideoPaused()
WOWZBroadcastAPI.VideoBroadcaster
isVideoPaused
in interface WOWZBroadcastAPI.VideoBroadcaster
public void setVideoPaused(boolean paused)
WOWZBroadcastAPI.VideoBroadcaster
setVideoPaused
in interface WOWZBroadcastAPI.VideoBroadcaster
paused
- True if the component should be paused; false otherwise.public boolean isAudioEnabled()
WOWZBroadcastAPI.AudioBroadcaster
isAudioEnabled
in interface WOWZBroadcastAPI.AudioBroadcaster
public void setAudioEnabled(boolean enabled)
WOWZBroadcastAPI.AudioBroadcaster
setAudioEnabled
in interface WOWZBroadcastAPI.AudioBroadcaster
enabled
- True if the component should be enabled; false otherwise.public boolean isAudioPaused()
WOWZBroadcastAPI.AudioBroadcaster
isAudioPaused
in interface WOWZBroadcastAPI.AudioBroadcaster
public void setAudioPaused(boolean paused)
WOWZBroadcastAPI.AudioBroadcaster
setAudioPaused
in interface WOWZBroadcastAPI.AudioBroadcaster
paused
- True if the component should be paused; false otherwise.© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal