# mediaPlayback component problems when using netStream class

**URL:** <https://forum.kirupa.com/t/mediaplayback-component-problems-when-using-netstream-class/70428>\
**Category:** flash\
**Created:** [November 14, 2004, 2:21am UTC](https://forum.kirupa.com/t/mediaplayback-component-problems-when-using-netstream-class/70428 "2004-11-14T02:21:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raznov](https://avatars.discourse-cdn.com/v4/letter/r/b5e925/32.png) [@raznov](https://forum.kirupa.com/u/raznov)\
**Post date:** [November 14, 2004, 2:21am UTC](https://forum.kirupa.com/t/mediaplayback-component-problems-when-using-netstream-class/70428/1 "2004-11-14T02:21:43Z")

</div>

I am using the mediaPlayback component to play external .flv files. First problem I had was that they were stopping intermittently when loaded to the server… so I read up on the netStream class and attached this basic code…

var netConn:NetConnection = new NetConnection();  
netConn.connect(null);  
var netStream:NetStream = new NetStream(netConn);  
//my\_video is the name of the component instance on the stage  
my\_video.attachVideo(netStream);  
netStream.setBufferTime(20);  
netStream.play(“introDemo.flv”);

Now… the audio plays but no video plays and the controls on the component do not work now… ie… can’t pause it. or adjust the volume.
