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

  • SEARCH
  • Home
  • 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 449835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:48:31+00:00 2026-05-12T21:48:31+00:00

I have a flv video file. I loaded the binary data of this flv

  • 0

I have a flv video file.
I loaded the binary data of this flv file to memory by using

var myFile:File = File.documentsDirectory.resolvePath("AIR Test/video.flv");
var myFileStream:FileStream = new FileStream();
myFileStream.open(myFile, FileMode.READ);
var **bytes**:ByteArray = new ByteArray();
myFileStream.readBytes(bytes);
myFileStream.close();

Now I’d like to change some header of this loaded flv in bytes memory variable, but after changing header, changed header was stored in bytes memory variable that is overwritten.

How can I play that flv file from this memory (bytes memory variable)?

  • 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-12T21:48:32+00:00Added an answer on May 12, 2026 at 9:48 pm

    One option would be to save the bytes as a temp file and then play back from the local filesystem.

    // write to temp file
    var f:File = File.createTempFile();
    var fs:FileStream = new FileStream();
    fs.open(f, FileMode.WRITE);
    fs.writeBytes(bytes);
    fs.close();
    
    // play back
    var display:VideoDisplay; // created somehow
    display.source = f.url;
    

    Not sure about some of the details (Does the temp file need a .flv extension? Does the source URL need to be the native path or some such?) but that approach should work within AIR.

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

Sidebar

Related Questions

I am making an app in which I have to play video file. .flv
I have a flash video player which requests a flv file from a central
HI I have a URL var str:String = conn=rtmp://server.com/service/&fileId=myfile.flv or var str:String = fileId=myfile.flv&conn=rtmp://server.com/service/
I have a flash player playing a .flv video file How could I reproduce
I have a flash video file (FLV) stored in the ByteArray object and would
I have a class which load and play a flv video file. My problem
I have loaded an external swf file which plays a flv file by default
I want to load .flv video in webview. I have taken help from this
I have created a SWF file using Flash that loads an FLV file on
I have an FLV without sound, and a sound file without video. Can I

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.