# Strange FLV playback problem

**URL:** <https://forum.kirupa.com/t/strange-flv-playback-problem/268410>\
**Category:** flash\
**Created:** [August 13, 2008, 2:48pm UTC](https://forum.kirupa.com/t/strange-flv-playback-problem/268410 "2008-08-13T14:48:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![makecake](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@makecake](https://forum.kirupa.com/u/makecake)\
**Post date:** [August 13, 2008, 2:48pm UTC](https://forum.kirupa.com/t/strange-flv-playback-problem/268410/1 "2008-08-13T14:48:42Z")

</div>

Hello Kirupians, I’ve been struggling with this for almost a day now and I can’t seem to find the problem.

I’m making an instantiated FLV playback class in actionscript 2, but it just doesn’t play the video

Here’s the code, if I uncomment the camera parts and attach \_cam instead of \_stream it will show the camera feed, it just won’t play my movie (and I get no errors whatsoever).

```auto

//	Constructor
public function VideoStream(videoHolder:MovieClip) {
	trace("[VideoStream] Initated.");

	_video = videoHolder;
};

public function startVideo(videoURL:String):Void {
	trace("[VideoStream] Starting video: 
	URL: "+videoURL+"
	Holder: "+_video);
		
	var connection:NetConnection = new NetConnection();
	connection.connect(null);
		
	_stream = new NetStream(connection);
	//var _cam:Camera = Camera.get();
	//_video.attachVideo(_cam);
		
	_video.attachVideo(_stream);
	_stream.play(videoURL);
		
};

```

And here’s the code that runs the class:

```auto

videoStream = new VideoStream(videoHolder.videoClip);
videoStream.startVideo(videoURL);

```

Thanks in advance.
