Results 1 to 5 of 5

Thread: MediaCaster Type constant declaration

  1. #1

    Default MediaCaster Type constant declaration

    Hi,

    I can't find MediaCaster Type constants in Java API.

    For example:
    public interface IMediaCasterTypes {
             public static final String MEDIA_CASTER_TYPE_RTP = "rtp";
             public static final String MEDIA_CASTER_TYPE_SHOUTCAST = "shoutcast";
    }


    Any ideas appreciated

  2. #2
    Join Date
    May 2013
    Posts
    680

    Default

    If you check in IMediaCaster interface you should see similar types defined:
    com.wowza.wms.mediacaster.IMediaCaster
    public static final int	MEDIACASTERTYPE_LIVEREPEATER	1
    public static final int	MEDIACASTERTYPE_RTPLIVE	3
    public static final int	MEDIACASTERTYPE_SHOUTCAST	2

  3. #3

    Default

    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, String mediaCasterType)
    Start a media caster stream
    
    Parameters:
    streamName - stream name
    streamExt - stream extension
    mediaCasterType - media caster stream type
    
    Returns:
    true if successful
    Last edited by sam.shm; 05-23-2014 at 04:40 AM.

  4. #4
    Join Date
    May 2013
    Posts
    680

    Default

    I believe the only constants we have available in this regard are those referred to in my first reply.

  5. #5

    Default

    Ok. Thanks

Similar Threads

  1. native/legacy multicast UDP as MediaCaster Type
    By zenith in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 02-12-2013, 07:58 AM
  2. Is Constant TS Mux over UDP possible with PushPublish?
    By bmckim in forum AddOn: Other AddOns
    Replies: 4
    Last Post: 12-18-2012, 02:08 PM
  3. Constant Disconnections While Trying to Live Stream IP Camera
    By marknel in forum Live Streaming and Encoder Discussion
    Replies: 5
    Last Post: 02-17-2012, 02:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •