# MediaCaster Type constant declaration

**URL:** <https://community.wowza.com/t/mediacaster-type-constant-declaration/39681>\
**Category:** Wowza Streaming Engine\
**Created:** [May 23, 2014, 12:47pm UTC](https://community.wowza.com/t/mediacaster-type-constant-declaration/39681 "2014-05-23T12:47:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Shmayev](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@Sam\_Shmayev](https://community.wowza.com/u/Sam_Shmayev)\
**Post date:** [May 23, 2014, 12:47pm UTC](https://community.wowza.com/t/mediacaster-type-constant-declaration/39681/1 "2014-05-23T12:47:05Z")

</div>

Hi,

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

For example:

```auto
public interface IMediaCasterTypes {
         public static final String MEDIA_CASTER_TYPE_RTP = "rtp";
         public static final String MEDIA_CASTER_TYPE_SHOUTCAST = "shoutcast";
}

```

Any ideas appreciated

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [May 23, 2014, 6:00am UTC](https://community.wowza.com/t/mediacaster-type-constant-declaration/39681/2 "2014-05-23T06:00:57Z")

</div>

If you check in IMediaCaster interface you should see similar types defined:

```auto
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

```

---

<div class="post-metadata">

**Author:** ![Sam\_Shmayev](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@Sam\_Shmayev](https://community.wowza.com/u/Sam_Shmayev)\
**Post date:** [May 23, 2014, 1:27pm UTC](https://community.wowza.com/t/mediacaster-type-constant-declaration/39681/3 "2014-05-23T13:27:14Z")

</div>

Corresponding with this example [How to use the MediaCaster API](https://www.wowza.com/forums/content.php?16)

We need a String variable as a second param.

```auto
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

```auto
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

```

---

<div class="post-metadata">

**Author:** ![Sam\_Shmayev](https://avatars.discourse-cdn.com/v4/letter/s/b3f665/32.png) [@Sam\_Shmayev](https://community.wowza.com/u/Sam_Shmayev)\
**Post date:** [May 23, 2014, 3:59pm UTC](https://community.wowza.com/t/mediacaster-type-constant-declaration/39681/4 "2014-05-23T15:59:03Z")

</div>

Ok. Thanks

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [May 23, 2014, 8:51am UTC](https://community.wowza.com/t/mediacaster-type-constant-declaration/39681/5 "2014-05-23T08:51:25Z")

</div>

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