# Detect Flash stream name?

**URL:** <https://community.wowza.com/t/detect-flash-stream-name/46850>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [August 7, 2016, 5:41pm UTC](https://community.wowza.com/t/detect-flash-stream-name/46850 "2016-08-07T17:41:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tommy\_Ingulfsen](https://avatars.discourse-cdn.com/v4/letter/t/c89c15/32.png) [@Tommy\_Ingulfsen](https://community.wowza.com/u/Tommy_Ingulfsen)\
**Post date:** [August 7, 2016, 5:41pm UTC](https://community.wowza.com/t/detect-flash-stream-name/46850/1 "2016-08-07T17:41:06Z")

</div>

I am “intercepting” an RTMP request to my Wowza server using the onConnect method:

```auto
public void onConnect(IClient client, RequestFunction function, AMFDataList params)

```

For e.g. MPEG-Dash, I’ve used

```auto
onHTTPMPEGDashStreamingSessionCreate()

```

for this, successfully using the

```auto
IHTTPStreamerSession.getStreamName()

```

method in order to retrieve the name of the stream that the user is trying to play. Are there any equivalent methods that I can use to obtain the name of the stream when it is played using RTMP? I can’t seem to find any methods within the three arguments to

```auto
onConnect()

```

Thanks!

tommy

---

<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:** [October 31, 2016, 2:51pm UTC](https://community.wowza.com/t/detect-flash-stream-name/46850/2 "2016-10-31T14:51:01Z")

</div>

Hi Tommy,

Here is a guide on [controlling access to a playback stream](https://www.wowza.com/docs/how-to-override-play-to-control-access) (the IClient object is for RTMP). It includes logic in obtaining the stream name.

```auto
		IMediaStream stream = getStream(client, function);		
		String streamName = getParamString(params, PARAM1);

```

Michelle
