Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6867499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:19:02+00:00 2026-05-27T03:19:02+00:00

I am streaming flv file trough vlc media player running as http streaming server.

  • 0

I am streaming flv file trough vlc media player running as http streaming server. So I am able to get the bytes but how to decode them?

Shoud I take float from the URLStream with readFloat() or plain bytes with readBytes()?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T03:19:03+00:00Added an answer on May 27, 2026 at 3:19 am

    So long as only flv’s are streaming, you will want to use the NetStream.appendBytesAction and NetStream.appendBytes for http streaming flv playback. Checkout the following blog post at ByteArray.org and also the quick example below:

    AppendBytes


    Playback Initialization:

    var video:Video = new Video(width, height);
    var video_nc:NetConnection = new NetConnection();
    var video_ns:NetStream = new NetStream();
    
    video_nc.connect(null);
    video_ns.play(null);
    video_ns.appendBytesAction(NetStreamAppendBytesAction.RESET_BEGIN);
    
    video.attachNetStream(video_ns);
    

    ProgressEvent.PROGRESS Handler:

    video_ns.appendBytes(bytesAvailable);
    

    This is essentially the jist of it, bytesAvailable will represent the read bytes from the event data buffer. A full example is listed below:

    package
    {
    
    import flash.display.Sprite;
    import flash.events.NetStatusEvent;
    import flash.events.ProgressEvent;
    import flash.media.Video;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.net.NetStreamAppendBytesAction;
    import flash.net.URLRequest;
    import flash.net.URLStream;
    import flash.utils.ByteArray;
    
    [SWF(width="1280", height="720")]
    public class NetStreamAppendBytes extends Sprite
    {
    
        var video:Video;
        var video_nc:NetConnection;
        var video_ns:NetStream;
    
        var video_stream:URLStream; 
    
        public function NetStreamAppendBytes()
        {
            super();
    
            video_nc = new NetConnection();
            video_nc.connect(null);
    
            video_ns = new NetStream(video_nc);
            video_ns.client = this;
            video_ns.addEventListener(NetStatusEvent.NET_STATUS, ns_statusHandler);
    
            video = new Video(1280, 720);
            video.attachNetStream(video_ns);
            video.smoothing = true;
    
            video_ns.play(null);
            video_ns.appendBytesAction(NetStreamAppendBytesAction.RESET_BEGIN);
    
            video_stream = new URLStream();
            video_stream.addEventListener(ProgressEvent.PROGRESS, videoStream_progressHandler);
    
            video_stream.load(new URLRequest("path_to_flv"));
    
            addChild(video);
        }
    
        private function ns_statusHandler(event:NetStatusEvent):void
        {
            trace(event.info.code);
        }
    
        private function videoStream_progressHandler(event:ProgressEvent):void
        {
            var bytes:ByteArray = new ByteArray();
    
            video_stream.readBytes(bytes);
            video_ns.appendBytes(bytes);
        }
    
    }
    
    }
    

    Best of luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I'm planning on using the JW FLV Media Player for streaming some videos:
anyone know whether Windows Media Service supports streaming flv on Windows Server 2003? I
I need to stream an flv file. Streaming should look like live streaming, and
Can i use publish method to record flv file with streaming servers other than
I'm looking into streaming of prerecorded h.264 videos of HTTP. I'm running into too
I want to streaming flv video in Media Element in WP7. I can play
Live streaming video in html 5 - what is required from server to stream
I am streaming an MP3 file using MPMoviePlayer, and I would like to have
Where to get streaming (live) video and audio from camera example for Nokia (5800
How can you do a streaming read on a large XML file that contains

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.