# "NetConnection.Connect.Closed":

**URL:** <https://community.wowza.com/t/netconnection-connect-closed/653>\
**Category:** Wowza Streaming Engine\
**Created:** [July 31, 2009, 12:54pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653 "2009-07-31T12:54:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [July 31, 2009, 12:54pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/1 "2009-07-31T12:54:09Z")

</div>

Hi,

I’m playing an FLV using rtmp, it plays fine and I can use the netstream seek call but when it reaches the end of the flv, the net connection gets closes, which is not what I want. Anyway to handle this?

Thanks,

Douglas

---

<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 31, 2009, 9:09pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/2 "2009-07-31T21:09:15Z")

</div>

What player are you using?

Richard

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [September 15, 2009, 12:17pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/3 "2009-09-15T12:17:35Z")

</div>

First, I would upgrade your Flash player. What you are running is very old. It may be because you are running inside of Flash CS3. I would install the most recent version of Flash player 10 and try it outside of the Flash environment.

I did the following and it worked great for me:

- Install Wowza 1.7.2

- Install the examples

- Run the SimpleVideoStreaming example and click Play

- Seek to close to the end and wait for the video to end

---

<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 31, 2009, 9:28pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/4 "2009-07-31T21:28:32Z")

</div>

What video player, Wowza player, JW Player, FLow player, FLVPlayback component, something else?

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 31, 2009, 9:41pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/5 "2009-07-31T21:41:02Z")

</div>

There is nothing about the Video object or reaching the end of video that closes the netconnection, so there is probably some code doing it, a NetStream.onPlayStatus handler function gettinig “NetStream.Play.Complete” then closing the netconnection possibly.

Look for “NetStream.Play.Complete” and see if there is code that closes the netconnection following.

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:** [August 3, 2009, 12:52am UTC](https://community.wowza.com/t/netconnection-connect-closed/653/6 "2009-08-03T00:52:59Z")

</div>

No I don’t know. If you are developing your own player I suggest to take a look at the Wowza SimpleVideoStreaming player, in the wowza examples folder. I would use that as starting place or model.

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:** [September 17, 2009, 1:53pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/7 "2009-09-17T13:53:58Z")

</div>

The suggestion to “get the latest Flash Player” means the latest Flash plugin:

[http://get.adobe.com/flashplayer/](http://get.adobe.com/flashplayer/)

And you can also use the latest version of JW player, which is a Flash app that plays videos. (it is confusing)

Also, did you upgrade Wowza to 1.7.2?

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:** [September 17, 2009, 3:28pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/8 "2009-09-17T15:28:46Z")

</div>

Yes, I was able to play Extremists.flv from your server and that app. But that means you have the wrong StreamType for this case. To do video recording you have to copy

[wowza-install-dir]/conf/Application.xml

to

[wowza-install-dir]/conf/storydeckrecording/Application.xml

then edit the new file, change /Streams /StreamType to “record”.

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:** [September 17, 2009, 3:31pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/9 "2009-09-17T15:31:03Z")

</div>

Also, you really should upgrade to Wowza 1.7.2. You are running 1.7.0:

[http://stream.storydeck.com:1935](http://stream.storydeck.com:1935)

> Wowza Media Server Pro10 1.7.0 build11414

This is a critical update because of changes in recent version of Flash Plugin (version 10.0.32.18)

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:** [September 17, 2009, 3:55pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/10 "2009-09-17T15:55:57Z")

</div>

I tried it with the VideoRecording example, and it works, I am connecting to:

rtmp://stream.storydeck.com/storydeckrecording

[wowza-install-dir]/examples/VideoRecording/client/videorecording.html

Connect, click record, then click stop, and you should see the recording playback.

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:** [September 17, 2009, 8:50pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/11 "2009-09-17T20:50:34Z")

</div>

I looked at it. Seems okay. It played for 2 or 3 minutes.

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:** [September 21, 2009, 9:23pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/12 "2009-09-21T21:23:32Z")

</div>

Have you followed the General Tuning instructions:

[https://www.wowza.com/docs/how-to-do-performance-tuning](https://www.wowza.com/docs/how-to-do-performance-tuning)

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:** [September 21, 2009, 9:39pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/13 "2009-09-21T21:39:00Z")

</div>

Check that you uncommented:

> ulimit -n 20000

In both these files:

/usr/local/WowzaMediaServerPro/bin/wms.sh

/usr/local/WowzaMediaServerPro/bin/startup.sh

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:** [September 21, 2009, 10:07pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/14 "2009-09-21T22:07:20Z")

</div>

Reviewing the top of this thread, this seems like a player issue. Have you tried the SimpleVideoStreaming example player?

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:** [September 21, 2009, 10:20pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/15 "2009-09-21T22:20:35Z")

</div>

With 1.7.2 you can only connect with Flash, not winamp does not work.

Can you zip up your conf and log folders, and if you have a link to a player, send all to support@wowza.com

Richard

---

<div class="post-metadata">

**Author:** ![Douglas\_Hein](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@Douglas\_Hein](https://community.wowza.com/u/Douglas_Hein)\
**Post date:** [July 31, 2009, 1:12pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/16 "2009-07-31T13:12:35Z")

</div>

Flash Player 10

---

<div class="post-metadata">

**Author:** ![Douglas\_Hein](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@Douglas\_Hein](https://community.wowza.com/u/Douglas_Hein)\
**Post date:** [July 31, 2009, 1:14pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/17 "2009-07-31T13:14:05Z")

</div>

and I don’t get error if I nc.connect(null)

-Douglas

---

<div class="post-metadata">

**Author:** ![Douglas\_Hein](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@Douglas\_Hein](https://community.wowza.com/u/Douglas_Hein)\
**Post date:** [July 31, 2009, 1:32pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/18 "2009-07-31T13:32:51Z")

</div>

Sorry about that. I’m using a Video object.

---

<div class="post-metadata">

**Author:** ![Douglas\_Hein](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@Douglas\_Hein](https://community.wowza.com/u/Douglas_Hein)\
**Post date:** [August 2, 2009, 1:10pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/19 "2009-08-02T13:10:37Z")

</div>

I do have a handler for the complete status but that does not close the connection. It is not consistent but does appear to happen more frequently with large flv (such as the wowza Extreme flv ~4 mins) and I have not seen it with small flvs. I tried capturing seek.failed events (which happen when I explicitly disconnect) but that hasn’t uncovered any thing. Any ideas?

Thanks,

Douglas

---

<div class="post-metadata">

**Author:** ![Leonardo\_Pavanello](https://avatars.discourse-cdn.com/v4/letter/l/e36b37/32.png) [@Leonardo\_Pavanello](https://community.wowza.com/u/Leonardo_Pavanello)\
**Post date:** [September 15, 2009, 4:58pm UTC](https://community.wowza.com/t/netconnection-connect-closed/653/20 "2009-09-15T16:58:17Z")

</div>

Are there any news about this issue?

It also have this issue, I use the SimpleVideoStreaming, this is the trace output:

Attemping to launch and connect to Player using URL C:\Archivos de programa\Wowza Media Systems\Wowza Media Server Pro 1.7.0\examples\SimpleVideoStreaming\client\simplevideostreaming.swf

[SWF] C:\Archivos de programa\Wowza Media Systems\Wowza Media Server Pro 1.7.0\examples\SimpleVideoStreaming\client\simplevideostreaming.swf - 62677 bytes after decompression

testVersion: WIN 9,0,45,0\>=9,0,115,0: false

testVersion: WIN 9,0,45,0\>=9,0,28,0: true

testVersion: WIN 9,0,45,0\>=9,0,60,0: false

nc.onStatus: NetConnection.Connect.Success (Connection succeeded.)

onStatus:

code = NetStream.Play.Reset

description = Playing and resetting video1251404639710.

clientid = 819109366

level = status

onStatus:

code = NetStream.Play.Start

isFastPlay = false

description = Started playing video1251404639710.

clientid = 819109366

level = status

onMetaData

duration = 36.223

creationdate = Thu Aug 27 13:15:43

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

onStatus:

code = NetStream.Buffer.Full

level = status

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

nc.onStatus: NetConnection.Connect.Closed (undefined)

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

updateVideoSize: normal

…

Debug session terminated.

[Next page](https://community.wowza.com/t/netconnection-connect-closed/653.md?page=2)
