# Can I use mediaPlayback component and set a buffer time?

**URL:** <https://forum.kirupa.com/t/can-i-use-mediaplayback-component-and-set-a-buffer-time/70467>\
**Category:** flash\
**Created:** [November 14, 2004, 4:21pm UTC](https://forum.kirupa.com/t/can-i-use-mediaplayback-component-and-set-a-buffer-time/70467 "2004-11-14T16:21:02Z")\
**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, 4:21pm UTC](https://forum.kirupa.com/t/can-i-use-mediaplayback-component-and-set-a-buffer-time/70467/1 "2004-11-14T16:21:02Z")

</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.  
\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_
