# Variable bitrate stream name, Flash client

**URL:** <https://community.wowza.com/t/variable-bitrate-stream-name-flash-client/39025>\
**Category:** Wowza Streaming Engine\
**Created:** [July 17, 2012, 8:41am UTC](https://community.wowza.com/t/variable-bitrate-stream-name-flash-client/39025 "2012-07-17T08:41:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marko\_Markovic](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Marko\_Markovic](https://community.wowza.com/u/Marko_Markovic)\
**Post date:** [July 17, 2012, 8:41am UTC](https://community.wowza.com/t/variable-bitrate-stream-name-flash-client/39025/1 "2012-07-17T08:41:23Z")

</div>

We are having trouble implementing variable bitrate Flash client for Wowza. With ordinary streams, everything works perfectly (the video is played smoothly). But if we switch the stream name to, for example, ngrp:mpegts.stream\_all/manifest.f4m (taken from the example on Wowza support site), in order to connect to a multi-bitrate stream, Wowza access logs show that the flash client discards everything before the colon (🙂 sign, and actually tries to connect to a stream named mpegts.stream\_all/manifest.f4m (which doesn’t exist). The server is configured correctly, because the stream works when invoked from JW player, so the problem has to be with the flash client.

Is this the right way to invoke this stream, or are we doing something wrong?

Here is the relevant piece of code used to connect to the server:

```auto
conn = new NetConnection();
conn.connect("10.0.0.7"); // Wowza IP
var streamPlayer = new NetStream(conn);
var streamPlayerClient:Object = new Object();
streamPlayer.client = streamPlayerClient;	
// streamPlayer.play("mpegts.stream"); // this one works
streamPlayer.play("ngrp:mpegts.stream_all/manifest.f4m"); // this one doesn't, showing only mpegts.stream_all/manifest.f4m on server
	

```

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [July 17, 2012, 11:25am UTC](https://community.wowza.com/t/variable-bitrate-stream-name-flash-client/39025/2 "2012-07-17T11:25:24Z")

</div>

Hi

Are you using Flash HTTP because if your using Flash RTMP you don’t need manifest.f4m on the end of the stream name.

I’m not sure if that will fix the problem because I found the “ngrp:myStream\_all” at the bottom of this page,

[https://www.wowza.com/docs/how-to-set-up-and-run-wowza-transcoder-for-live-streaming](https://www.wowza.com/docs/how-to-set-up-and-run-wowza-transcoder-for-live-streaming)

There is no mention of rtmp connections with the “ngrp” method, they are all HLS connection types.

Are you using OSMF player for testing?

There is a Wowza simple example player for flash HTTP at this location :

Windows - [Wowza-Install]\examples\SimpleVideoStreaming\clientOSMF\bin-release

Linux - [Wowza-Install]/examples/SimpleVideoStreaming/clientOSMF/bin-release

Jason

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 17, 2012, 12:48pm UTC](https://community.wowza.com/t/variable-bitrate-stream-name-flash-client/39025/3 "2012-07-17T12:48:20Z")

</div>

Take a look at JW Player’s RTMP Dynamic Streaming plugin:

[http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/16012/setting-up-rtmp-dynamic-streaming](http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/16012/setting-up-rtmp-dynamic-streaming)

And here is a bridge between Wowza MediaPlaylist (ngrp or smil) and JW player .rss file used in the above plugin:

[https://www.wowza.com/docs/how-to-use-jw-player-with-adaptive-bitrate-streaming-from-wowza-streaming-engine](https://www.wowza.com/docs/how-to-use-jw-player-with-adaptive-bitrate-streaming-from-wowza-streaming-engine)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 25, 2012, 5:20pm UTC](https://community.wowza.com/t/variable-bitrate-stream-name-flash-client/39025/4 "2012-07-25T17:20:35Z")

</div>

You can use RTMP Dynamic Streaming in Flash, and JW Player has a plugin:

[http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/16012/setting-up-rtmp-dynamic-streaming](http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/16012/setting-up-rtmp-dynamic-streaming)

And you can leverage server-side smil or transcoder ngrp to generate the rss for JW Player

[https://www.wowza.com/docs/how-to-use-jw-player-with-adaptive-bitrate-streaming-from-wowza-streaming-engine](https://www.wowza.com/docs/how-to-use-jw-player-with-adaptive-bitrate-streaming-from-wowza-streaming-engine)

Richard

---

<div class="post-metadata">

**Author:** ![Marko\_Markovic](https://avatars.discourse-cdn.com/v4/letter/m/858c86/32.png) [@Marko\_Markovic](https://community.wowza.com/u/Marko_Markovic)\
**Post date:** [July 25, 2012, 5:58pm UTC](https://community.wowza.com/t/variable-bitrate-stream-name-flash-client/39025/5 "2012-07-25T17:58:33Z")

</div>

Thank you for your response.

I have done some more research since my original post, and came across this:

[https://www.wowza.com/forums/showthread.php?15503-Using-Transrate-xml-Works-on-IPad-Iphone-not-Flash-Clients](https://www.wowza.com/forums/showthread.php?15503-Using-Transrate-xml-Works-on-IPad-Iphone-not-Flash-Clients)

Around the middle of the page it is said that (server-side) Adaptive bitrate is not supported for Flash RTMP clients, but only for HTTP Flash streaming (which we are not using). Is that true, or did I misunderstand the post? If it is true, it seems that the only solution would be to implement stream switching on the client side.

Do you have any advice on implementing this functionality on the client side, because we have a custom Flash client?
