Flex :: Play Flv Formatted ByteArray In OSMF?

Jan 9, 2011

I am developing an web application in flex which have a feature of recording the runtime by having a snapshot of each frames then encoding it into a ByteArray for video playback. I am currently using NetStream.appendBytes() for playing the ByteArray FLV. It is working, but I just found out about OSMF and thinking bout integrating it in my application. It is it possible to play the flv byteArray in OSMF?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Load A ByteArray FLV In OSMF?

Oct 21, 2011

I'm working on a local application ( it's not a website or nothing related ) and I have various FLVs with a very simple encryptation method (just like adding 10 at each byte). I can load/play them using NetStream.appendBytes() after my decrypt, but that happens only after I read all video data. What I really need is to stream those videos from a remote url, and decrypting while receiving data, using a OSMF player that I already have.
 
This is my current code just to play my decoded FLV byte array
 
private function playBytes(bytes:ByteArray):void
{
// detecting it's header
if (bytes.readUTFBytes(3) != "FLV")

[Code].....

View 3 Replies

Actionscript 3 :: Load A ByteArray FLV In OSMF?

Oct 20, 2011

I'm working on a local application ( it's not a website or nothing related ) and I have various FLVs with a very simple encryptation method by now (just like adding 10 at each byte).

I can load/play them using NetStream.appendBytes() after decrypting, but that happens only after I read all video data it's not streamed.

What I really need is to stream those videos from a remote url, and decrypting while receiving data, using a OSMF based player that I already have built. I'm lost on how OSMF deals with FLV, otherwise, I would try to create a plugin or something like. .

find a way to load a local file using OSMF, passing a ByteArray value, instead of a url (below). Or even giving me directions to create a OSMF plugin to solve my problem.

videoElement.resource = "video_url/video.flv";

This is my current code just to play my decoded FLV byte array

private function playBytes(bytes:ByteArray):void
{
// detecting it's header
if (bytes.readUTFBytes(3) != "FLV")

[Code].....

View 1 Replies

Actionscript 3 :: Introduce A Sound From The Library To A ByteArray (and Then Play That ByteArray)?

Feb 16, 2011

I am working on a game, made with Flash (using AS3) The game has a fast ball and when this ball hits an object it has to make a sound... but the sound starts with delay (so the ball is far away when the sound is played).This sound is edited by me and it hasn't got any silences at the beginning.The method i'm currently using is the simplest one:

public var sonidoPuntos1:sonidopunto1 = new sonidopunto1()

and then...

sonidoPuntos1.play()

I am trying to introduce the file into a ByteArray and then playing it from there...

View 2 Replies

Flash :: Flex - Play FLV From ByteArray In Player

Oct 12, 2009

I have a flash video file (FLV) stored in the ByteArray object and would like to play this video.

View 5 Replies

Eclipse :: Flex 4.1 And OSMF 1.5 - Does It Work?

Apr 29, 2011

The Flex 4.1 SDK ships with OSMF 1.0. For new features, OSMF can be updated. Adding the updated osmf.swc to a Flex 4.1 project, I get error messages as soon as I add an OSMF component in my application (VideoDisplay in the sceenshot): Screenshot: [URL].png OSMF 1.5 download page According to the documentation, OSMF 1.5 should work with the Flex 4.1 SDK. Unfortunately, I have to stick to Flex 4.1 because Flash 10.1 needs to be supported (Flex 4.5 needs Flash 10.2) When I change the SDK to version 4.5, the error messages disappears and it compiles as expected. --> Is the documentation wrong about supporting Flex 4.1 or am I doing something wrong?

View 2 Replies

Flex :: OSMF With Basic Authentication?

Jul 24, 2011

How would one create a video or audio stream using OSMF when there must be basic authentication on the url?Can one feed in Audio/Video using HTTPService to provide the header authentication?

View 2 Replies

ActionScript 3.0 :: OSMF Player Without Flex (Flash Only)?

May 28, 2010

I am looking to build a custom OSMF player such as this OSMF player sample, however I only have Flash CS but not Flex. Is it possible to build a OSMF player without using Flex?

View 2 Replies

Flex :: Actionscript - Flex 4.6 - Custom Item Renderer - HTML Formatted Text?

Dec 7, 2011

ow do you display HTML formatted text in a Spark custom item renderer (Actionscript)?

Sample Code:

The html content in item.post_content displays as plain text in the IconItemRenderer messageFunction snippet below (which is just the default generated code for Icon Item renderer):

<s:itemRenderer>
<fx:Component>
<s:IconItemRenderer iconField="iconField"
iconWidth="64" iconHeight="64" labelField="post_title" messageFunction="getPost">

[code]...

View 1 Replies

ActionScript 3.0 :: Play A FLV From A ByteArray To A Video Object?

May 14, 2009

I wrote an application that loads a FLV into a ByteArray object at runtime. Now I want to play this FLV into a Video object. The problem I have is that the Video object won't accept anything else than a NetStream (or a Camera) as its source, and I can't find a way to set an in-memory FLV as a NetStream's source for playing.

View 2 Replies

Flash - Play RAW Video Data From A ByteArray?

Nov 17, 2011

According to the NetStream API, Flash can play LOCAL RAW video by calling ns.play("raw:filename");.My question is how can Flash play RAW video data from a ByteArray? I have basically set my NetStream object to data generation mode by calling play(null), but whenever I call ns.appendBytes(byteArray) nothing is happening because apparently, appendBytes only support FLV data. how can I make Flash play raw video data from a ByteArray?

View 1 Replies

Flex :: Display XSL Formatted XML On A Control?

Dec 8, 2010

I have XML files formatted with XSL. They look great on IE.

Now how do I do the same with Flex (not AIR)? I would like to use something like TextArea and not data grid.

View 2 Replies

ActionScript 3.0 :: Play MP3 Sound From Buffer (ByteArray / Stream)?

Oct 25, 2009

I have a buffer with MP3 data (If I would save this buffer and call it buffer.mp3 it would play, but in this situation I should not save it to file system). I have to play it, but I can not, what shall I do? I tried the next code to play that buffrer(ByteArrayStream) (I get MP3 data from server the method of getting data works fine (tested on text int's etc) I call the returned ByteArray readResponse because I have some seading method and It is it's response).

[Code]....

View 5 Replies

Flex :: Create XML Object From Poorly Formatted HTML?

Dec 29, 2010

I want to make an XML document from an HTML one so I can use the XML parsing tools. My problem is that my HTML is not guaranteed to be XHTML nor valid. How can I bypass the exceptions? In this string <p> is not terminated, nor is <br> nor <meta>.

var poorHtml:String = "<html><meta content="stuff" name="description"><p>Hello<br></html>";
var html:XML = new XML(poorHtml);

TypeError: Error #1085: The element type "meta" must be terminated by the matching end-tag "</meta>".

View 3 Replies

Jquery :: Accept HTML-formatted Text Through Flex Textarea?

Jun 11, 2011

I've been experimenting with MXML- and spark-textarea (and richtexteditor)when I copied some formatted texts like Test tes1 from MS Word 2007 and paste them inside the flash textarea , the formattings are gone (I only receive the plain texts)But when I do the same to the Jwysiwyg (a jquery wysiwyg text editor), the formatting doesn't disppear.Is there a way to make flash textareas receive formatted texts without destroying the formattings?

View 1 Replies

Flex :: Import A Html Richly Formatted Text Into A Textflow At Runtime?

Nov 23, 2010

i am trying this:

open google docs, new document, and type in: hello world (world bolded)

then download it as html(zipped)

i unzip the html file, and save it to the assets folder in src folder of my Flex app

i have a Spark:TextArea instance and i want to do:

var importer:ITextImporter = TextConverter.getImporter(TextConverter.TEXT_FIELD_HTML_FORMAT);
myTextArea.textFlow = importer.importToFlow(htmlSource);

where htmlSource should point to the saved html file somehow

how do i do this? i tryed embedding, converting to ByteArrayAsset and to String, but i always get the source of the html file and not it's rendered rich text (ie "hello world).

[Code]....

View 1 Replies

Flex :: Flex - Decompress Zlib Files Created With ByteArray.compress?

Dec 21, 2010

I work on a Flex application that creates compressed files and uploads them on a server. The files are created with ByteArray.compress method, which is zlib compression. I can decompress them using Python API on the server but I prefer to keep the files compressed there. I want to be able to download and decompress the files later, however WinZip and WinRar fail to decompress them. When I google for zlib utility, I only find zlib dll library. I need a simple application for Windows (and/or Linux)

View 1 Replies

Flex :: Datagrid - Flex ByteArray Data Field

Mar 25, 2010

The data provider (ArrayCollection) for my data grid consists of objects with ByteArray (int) fields. How do I make the data field display as int without transforming my data provider?

View 1 Replies

ActionScript 3.0 :: Convert Wav ByteArray To Mp3 ByteArray?

Mar 28, 2011

I know its a true Pain but does anyone know any way to convert wav ByteArray to mp3 ByteArray.

View 1 Replies

Flex - SWF To Bytearray From A PHP Script?

Nov 7, 2010

i'm using AMFPHP to stream content from my server to my Flex application, since Flash is a clientside technology i would like to make it harder for people to grab protected files, so i created a system that streams swf file to another flash player, i've done all the testing on URL stream, now i want to pass the swf file to the player as bytearray .. since i think it's safer and harder to break and in the future i even might do some encryption of my own if i became more familiar with bytes and bits .. anyways is my method the best one? (SWF to ByteArray?) or is there a better one? if the bytearray method is the best, i am facing a problem in outputing the swf file in the right format, i'm using a very primitive method .

[Code]...

View 1 Replies

Flex - Loading Swf With Bytearray In AIR?

Jan 25, 2011

We have requirement with the AIR application which loads the flex generated swf which inturn loads the flash generated swf using SWFLoader. This is not working as desired.This gives the following error: SecurityError: Error #3226: Cannot import a SWF file when LoaderContext.allowCodeImport is false.

[Code]...

View 2 Replies

Flex :: Core ByteArray Image?

Sep 6, 2009

var myFile:File = new File("./test.jpg");
var myFileStream1:FileStream = new FileStream();
myFileStream1.open(myFile, FileMode.READ);[code].....

now how can i add byte variable to the canvas ? for example

var canvas:Canvas = new Canvas();
canvas.addChild(byte);

is it possible to add ByteArray to the canvas?

View 2 Replies

Flex :: How To Turn Bytearray Into IList

May 30, 2010

How to turn Array (like Camera.names) into IList (for for ex MXML s:DropDownList

<s:DropDownList x="113" y="121" selectedIndex="0" dataProvider="{Camera.names}"></s:DropDownList>
)?

[code]....

View 1 Replies

Flex :: Binary String To ByteArray

Aug 3, 2010

I have an array of objects. Each object has 3 integer fields and 2 binary fields.I've utf encoded the binary data and json encoded the array & sent it to Flex client side.On the client side, decoding data, I've got a String representing the binary data (utf decoded).Now, how can I convert this String to ByteArray? Or how can I read each byte of the String?

View 1 Replies

AS3 :: Flex - When To Use WriteUTF() And WriteUTFBytes() In ByteArray

Apr 5, 2011

I am trying to create a file format for myself, so i was forming the header for my file. To write a known length string into a ByteArray, which method should i use, writeUTF() or writeUTFBytes(). From the Flex 3 language ref, it tells me that writeUTF() prepends the length of the string and throws a RangeError whereas writeUTFBytes() does not.

View 2 Replies

Flex :: Get ByteArray Of File When Uploading?

Apr 12, 2011

There is a WSDL which have one method which take byteArray & fileName(which i want to write) as a parameter to write a file in local system, the following is the code...

public void writeLocation(byte[] byteToWrite, String fileName) throws FileNotFoundException
{
StringBuffer fileLocation = new StringBuffer("D:\Products\Device");

[Code]....

but the flex 2 showing the error when i searched i found out in flex 2 there is no "data" property. so i am unable to create the selected object into byteArray..

View 1 Replies

Flex :: Uploading Bytearray Via URLRequest?

Sep 4, 2011

I'm trying to upload a bytearray, but am struggling to make the content-type go as image/png (it always goes as application/octet-stream no matter what I do.).I've checked the request with Charles Proxy, and can confirm that it indeed always goes as application/octet-stream.My code is:

protected function onObjectLoaded(event:Event):void
{
var byteArray:ByteArray = new ByteArray();
var fileName:String = fileReference.name;
var uploadPath:String = serviceURL;

[code]....

how to change this, so the bytearray itself gets passed in as image/png instead of octet-stream This image is being upload from the client side, and being passed as a FileReference, which I then invoke load(), and then get it's "data" attribute, which is where the bytearray is.

View 1 Replies

Flex :: FileReference And ByteArray Compress?

Oct 19, 2011

I have a FileReference that is being uploaded. But before upload, I call the compress() method on the ByteArray of the FileReference i.e. fileReference.data.compress().

But I observe that the uploaded file is the raw file and not the compressed file.

Is this a Flex bug or expected behavior? The data field in the FileReference is read-only. Does that come into play?

View 1 Replies

Flex :: Convert A File To A ByteArray?

May 29, 2009

how to convert a file I have on my server (pdf/excel/ppt) to a ByteArray. The reason I want to do this is to display the dialogue open/save as to the user and I must set the Content-Type to octet-stream. The dialogue shows fine with just navigateToURL() but for pdf's it is the user's local browser setting. For a URLRequest I must set the data as a ByteArray. I'm trying to use the code located here:

Custom printing with Flex

View 2 Replies

Flex :: Open File And Get Its Content As A ByteArray In AS3?

Sep 1, 2009

How do i open file and get its content as a ByteArray in AS3. I saw examples, using FileStream & File classes from flex.filesystem, but the doc says it's for AIR only.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved