# API to know if stream file is running

**URL:** <https://community.wowza.com/t/api-to-know-if-stream-file-is-running/44572>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [February 16, 2015, 1:18pm UTC](https://community.wowza.com/t/api-to-know-if-stream-file-is-running/44572 "2015-02-16T13:18:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shrinivas\_shastri](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@shrinivas\_shastri](https://community.wowza.com/u/shrinivas_shastri)\
**Post date:** [February 16, 2015, 1:18pm UTC](https://community.wowza.com/t/api-to-know-if-stream-file-is-running/44572/1 "2015-02-16T13:18:45Z")

</div>

Hi,

I want to know the status of stream file whether it is running and streaming before I call appInstance.start/stopMediaCasterStream.

What method/property can I use to get the status?

Thanks,

Shrini

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [February 18, 2015, 4:30pm UTC](https://community.wowza.com/t/api-to-know-if-stream-file-is-running/44572/2 "2015-02-18T16:30:47Z")

</div>

Hi sshastri,

There is a method isStreamIsRunning in the IMediaCaster class, which returns a boolean value of whether a stream is currently running. However, you would need to initialize the media caster. I am not sure if this is what you were referring to?

Michelle
