|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Objectcom.wowza.wms.stream.publish.Stream
public class Stream
| Constructor Summary | |
|---|---|
Stream()
|
|
| Method Summary | |
|---|---|
void |
addListener(IStreamActionNotify listener)
Add a listener |
boolean |
addToPlaylist(int index,
String name,
int start,
int length)
Inserts a media source item to this playlist at a particular index, without interruption. |
boolean |
addToPlaylist(String existing,
String name,
int start,
int length)
Insert item into playlist just after the first item in the playlist with a given name. |
void |
close()
Call this method when you have finished with the playlist object. |
static Stream |
createInstance(IApplicationInstance appInstance,
String sName)
Use this to create a named Stream on an application instance. |
static Stream |
createInstance(IVHost vhost,
String applicationName,
String sName)
Use this to create a named Stream on the default instance (_definst_) of an application on a particular VHost. |
static Stream |
createInstance(IVHost vhost,
String applicationName,
String appInstanceName,
String sName)
Use this to create a named Stream on the non-default instance of an application on a particular VHost. |
PlaylistItem |
getCurrentItem()
Get the currently playing playlist item |
Object |
getLock()
Get the synchronization lock for this interface. |
String |
getName()
Returns the name of the playlist stream - the client would play this stream by this name. |
java.util.List<PlaylistItem> |
getPlaylist()
Get the current playlist |
int |
getPollingInterval()
Get the polling interval (milliseconds) |
Publisher |
getPublisher()
|
boolean |
getRepeat()
Use this to determine if the playlist is auto-repeating |
boolean |
isSendOnMetadata()
True if sending onMetadata events |
boolean |
isSwitchLog()
Log when a playlist switch occurs |
void |
next()
|
void |
next(int n)
|
void |
play(int n)
|
boolean |
play(String sPlaylist)
Add a media item to the playlist as defined by an XML file .. |
boolean |
play(String name,
int start,
int length,
boolean reset)
Adds a media source item to this playlist - |
void |
previous()
|
void |
previous(int n)
|
boolean |
removeFromPlaylist(String name)
Remove all items matching the given stream name from the playlist. |
void |
removeListener(IStreamActionNotify listener)
Remove a listener |
void |
run()
Overridden from class Runnable .... |
void |
setPollingInterval(int pollingInterval)
Set the polling interval (milliseconds) |
void |
setRepeat(boolean repeat)
Use this to make the playlist repeat or not... |
void |
setSendOnMetadata(boolean sendOnMetadata)
True if sending onMetadata events |
void |
setSwitchLog(boolean switchLog)
Log when a playlist switch occurs |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stream()
| Method Detail |
|---|
public void addListener(IStreamActionNotify listener)
listener - listener
public boolean addToPlaylist(int index,
String name,
int start,
int length)
index - - insertion indexname - - name of media item being insertedstart - - where to start playing the item. (-2 implies play a live
stream)length - - how much of the item to play (-1 implies play the entire file or live stream)
public boolean addToPlaylist(String existing,
String name,
int start,
int length)
existing - name of playlist item in which to insert the item aftername - name of new itemstart - where to start playing the item. (-2 implies play a live stream)length - how much of the item to play (-1 implies play the entire file or live stream)
public void close()
public static Stream createInstance(IApplicationInstance appInstance,
String sName)
appInstance - - Application instancesName - - Name of Stream
public static Stream createInstance(IVHost vhost,
String applicationName,
String sName)
vhost - - Virtual HostapplicationName - - Application namesName - - Name of Stream
public static Stream createInstance(IVHost vhost,
String applicationName,
String appInstanceName,
String sName)
vhost - - Virtual HostapplicationName - - Application nameappInstanceName - - Instance namesName - - Name of Stream
public PlaylistItem getCurrentItem()
public Object getLock()
public String getName()
public java.util.List<PlaylistItem> getPlaylist()
public int getPollingInterval()
public Publisher getPublisher()
public boolean getRepeat()
public boolean isSendOnMetadata()
public boolean isSwitchLog()
public void next()
public void next(int n)
public void play(int n)
public boolean play(String sPlaylist)
sPlaylist - - the playlist XML definition file
public boolean play(String name,
int start,
int length,
boolean reset)
name - - name of media itemstart - - where to start playing the item. (-2 implies play a live
stream)length - - how much of the item to play (-1 implies play the entire file or live stream)reset - - if true, will begin a new playlist, otherwise items are
appended
public void previous()
public void previous(int n)
public boolean removeFromPlaylist(String name)
name - stream name
public void removeListener(IStreamActionNotify listener)
listener - listenerpublic void run()
run in interface Runnablepublic void setPollingInterval(int pollingInterval)
pollingInterval - polling interval (milliseconds)public void setRepeat(boolean repeat)
repeat - - true to repeat otherwise falsepublic void setSendOnMetadata(boolean sendOnMetadata)
sendOnMetadata - True if sending onMetadata eventspublic void setSwitchLog(boolean switchLog)
switchLog - log when a playlist switch occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||