# FLV player

**URL:** https://forum.kirupa.com/t/flv-player/223864
**Category:** design
**Created:** [April 26, 2007, 9:23am UTC](https://forum.kirupa.com/t/flv-player/223864 "2007-04-26T09:23:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![thebestguest](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@thebestguest](https://forum.kirupa.com/u/thebestguest)
#### Post date: [April 26, 2007, 9:23am UTC](https://forum.kirupa.com/t/flv-player/223864/1 "2007-04-26T09:23:48Z")

</div>

Hello everyone,  
I’m following a tutorial to create a video player in flash. I had a few questions that the tutorial does not cover.

What would I need to do to show show in text how long the movie is and show how much has already played? Sometime like 4:40 played, 5:00 total.

Also, how do I keep the video from playing as soon as the swf loads and instead make them press the play button?

```auto
var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

theVideo.attachVideo(ns);

ns.play("goldfrapp.flv");

rewindButton.onRelease = function() {
    ns.seek(0);
}

playButton.onRelease = function() {
    ns.pause();
}

var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;

var duration:Number;
ns["onMetaData"] = function(obj) {
    duration = obj.duration;
}

function videoStatus() {
    amountLoaded = ns.bytesLoaded / ns.bytesTotal;
    loader.loadbar._width = amountLoaded * 219.9;
    loader.scrub._x = ns.time / duration * 219.9;
}

```
