# Video stop after a few seconds

**URL:** https://forum.kirupa.com/t/video-stop-after-a-few-seconds/272827
**Category:** flash
**Created:** [October 8, 2008, 6:53pm UTC](https://forum.kirupa.com/t/video-stop-after-a-few-seconds/272827 "2008-10-08T18:53:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)
#### Post date: [October 8, 2008, 6:53pm UTC](https://forum.kirupa.com/t/video-stop-after-a-few-seconds/272827/1 "2008-10-08T18:53:57Z")

</div>

I have an XML file loading in video, creating a clickable list and a video player. When the video Starts, it plays and then stop playing after a few seconds(about 5). Anyone know why?

```auto

			//Stop the sound or video playing
			soundControl.stop();
			checkMediaHolders();

			var vidObj:Video = new Video(200,133);
			var netClient:Object = new Object();
			netClient.onMetaData = metaDataHandler;
			mediaPlayer.vidHolder.addChild(vidObj);
			var nc:NetConnection = new NetConnection();
			nc.connect(null);
			var ns:NetStream = new NetStream(nc);
			ns.client = netClient;
			ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorEventHandler);
			ns.addEventListener(NetStatusEvent.NET_STATUS, netstat);
			vidObj.attachNetStream(ns);
			ns.play(data_ar[itemID].source);
			break;

```

thats part of a switch case which explains the break. Can anyone see what would be causing this?
