Corresponding with this example How to use the MediaCaster API
We need a String variable as a second param.
Start an IP camera stream with the stream name camera.stream (file contains RTSP URL):
appInstance.startMediaCasterStream("camera.stream", "rtp");
Start a SHOUTcast stream with the stream name radio.stream (file contains SHOUTcast URL):
appInstance.startMediaCasterStream("radio.stream", "shoutcast");
Start pull a stream from another Wowza or FMS server with the stream name rtmp.stream (file contains full RTMP URL):
appInstance.startMediaCasterStream("rtmp.stream", "liverepeater");
Moreover:
API
startMediaCasterStream
public boolean startMediaCasterStream(String streamName, String streamExt, [B]String mediaCasterType[/B])
Start a media caster stream
Parameters:
streamName - stream name
streamExt - stream extension
mediaCasterType - media caster stream type
Returns:
true if successful