Skip to main content
miquael
Inspiring
Jul 10, 2009 2:57 PM UTC
Answered

NetStream BytesLoaded not registering with streaming?

I'm working with a custom made Flash video player using FMS (Wowza, actually).

The video is working, yet when I access the BytesLoaded and BytesTotal, I get 0 (zero) for each.  This even persists as the video is loading and playing.  It's as if it is not even being registered at all.

Here's the code:

var amountPlayed:Number = Math.round(ns.time * tlInterval) / Math.round(duration * tlInterval) * tlInterval;

controls.tl.width = Math.round(amountPlayed) * controls.tlw / tlInterval;

outputBL.text = "Bytes Loaded: " + (ns.bytesLoaded).toString();

outputBT.text = "Bytes Total:  " + (ns.bytesTotal).toString();

The output produces "0";

I tested this with a similar player that uses progressive downloading instead, and I get real data.

Is this lost with FMS?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer
    Jul 10, 2009 4:04 PM UTC

    Yeah... the concept of bytesLoaded and bytesTotal is lost when using FMS. The server only sends data as needed, and video data is not stored in cache on the client side.

    2 replies

    Correct answer
    Jul 10, 2009 4:04 PM UTC

    Yeah... the concept of bytesLoaded and bytesTotal is lost when using FMS. The server only sends data as needed, and video data is not stored in cache on the client side.

    Translate
    miquael
    miquaelAuthor
    Inspiring
    Jul 10, 2009 5:00 PM UTC

    Thank you for confirming that!  Makes sense now that I think about it.  Good to know.

    Translate