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
Similar Posts:
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
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
Mar 31, 2011
I have a load of information in a swf that I'm loading at runtime. From that swf I need to get raw vector data out of some MovieClips, and other MovieClips I need to instantiate and put on the stage.Currently I can get at the vector data by loading the swf as a ByteArray using a URLLoader and parsing it with a bit of help from as3swf.
However, if I want to instantiate one of the MovieClips directly I would usually load it with a Loader and get at the MovieClip via loaderInfo.applicationDomain.My question is: can I either load the swf as a ByteArray with URLLoader and somehow instantiate MovieClips from that, or can I load the swf as a DisplayObject using a Loader, get the MovieClips and then convert the swf to a ByteArray before giving it to as3swf for parsing?
View 2 Replies
Oct 26, 2006
Any way to load an FLV into a ByteArray, modify it (maybe add a water mark) and pass it to the Video Object for display?
View 2 Replies
May 21, 2010
I would like to know if it is possible to load an external movie and add code with ByteArray inside, in order to add anymore properties, functions or why not Sprites?
View 2 Replies
Feb 23, 2011
Load an MP4 as ByteArray and Append it to NetStream?
View 4 Replies
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
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
Jul 12, 2011
I am developing a video player using the OSMF library. I have the problem that I sometimes lose the connection to the server. So I set up an object that watches the connection to the server and in case of connection lost it tries a limited number of times to reconnect before giving up. Everything works just fine except for the message that I get on the debugger version of the player which states:[code]But I still get the error. The onNetStatus method gets events like NETSTREAM_BUFFER_EMPTY, NETSTREAM_BUFFER_FULL or NETSTREAM_PLAY_START but not NETSTREAM_PLAY_STREAMNOTFOUND.
View 2 Replies
Apr 29, 2010
OSMV is very thick so so I'm trying to put a series of minimalist tutorials and again I'm stuck with something that should be dead simple.I have a VideoElement that I added to a MediaPlayer. Now now do I set the size of the video?I'd like to just set the size on the mediaPlayer or MediaElement and not include 20 layout classes like the OSMF examples.
private function handle_elementLoaded(e:MediaFactoryEvent):void
{
mediaPlayer = new MediaPlayer(e.mediaElement); [code]....
View 1 Replies
Jun 5, 2010
I'm trying to add a cuepoint to a video using OSMF. I built an OSMF video player, and I'd like to use this instead of the FLVPlayback component, which seems like the only way to add an actionscript cuepoint? Anyhow, I created a cuepoint by writing this:
[Code]...
View 2 Replies
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
Jun 29, 2011
I'm building a pretty simple player and have a a buffer size set on my MediaPlayer (mediaPlayer.bufferTime = BUFFER_TIME). That's working but I want to show a graphic whenever it starts to buffer. I have an Event Listener on my mediaplayer to show and hide but it doesn't seem to be working properly.[code]...
View 1 Replies
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
Sep 5, 2011
I'd like to crossfade two AudioElements inside a SerialElement but I don't know where to start.
View 1 Replies
Dec 1, 2011
I have a HTTP video player built using Adobe's OSMF and I am experiencing a strange behavior when trying to seek within a subclip.The player requests data from the server using URL like "http:[url]...." to get the full video, and appends "?begin=123456" to request a subclip starting at 123456 bytes offset.Whenever I try to seek within a loaded subclip, the playhead just drops to the start of the subclip and the video plays from there. Although both mediaPlayer.canSeek() and mediaPlayer.canSeekTo(newtime) return true.
View 1 Replies
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
Apr 7, 2011
I use OSMF's SWFElement for my project to load SWF file in to main Application but the main app can't detect event from child SWF at all, .CODE in the Main App
mediaPlayerSprite = new MediaPlayerSprite();
var swfElement:SWFElement = new SWFElement();[code]....
CODE in the Child Flash SWF using Flash CS3 add code in The FLASH TimeLine
this.dispatchEvent(new Event('animationEnd') );
View 1 Replies
Jun 7, 2011
I've written a little OSMF player that streams via RTMP from Amazon Cloudfront. There's a known issue, the mp3 duration is not correctly readed from metadata and thus the seek function is not working.
I know there's a workaround implying the use of getStreamLength function of NetConnection, which I successfully implemented in a previous non-OSMF player, but now I don't know how and when to call it, in terms of OSMF Events and Traits. This code is not working:
[Code]...
View 1 Replies
Jul 5, 2011
I have written a program to publish the audio and video data to the FMS. I am publishing the video data to FMS in live mode and trying to play back via OSMF player. When i start publishing video data in the livepkgr application folder of FMS files like .bootstrap, .control, .meta are getting created. But when i try to playback via OSMFplayer i will get error 1009 and one intersting thing what i have observed is after 7 minutes this error won't come and OSMF player starts playing properly. give the solution for error 1009 which comes only for first 7 minutes?
View 12 Replies
Sep 11, 2010
Does anyone have an experience of using Strobe Media Playback (OSMF) in a real project? How is it compared to JW Player and Flowplayer?
View 2 Replies
Sep 14, 2010
I am trying to use BitmapData.draw() on a video object, but using the OSMF framework.My hosting service has set up the following so that I can access my rtmp video:
<VideoSampleAccess enabled="true">/</VideoSampleAccess>
Simplified code is as follows:
_videoURL = "my-url-here"
resource = new StreamingURLResource(_videoURL);
videoElement = new VideoElement(resource);
_player.media = videoElement;
[code]....
However, I am getting the following error message:
SecurityError: Error #2135: Security sandbox violation: BitmapData.draw: ...
View 2 Replies
Oct 26, 2010
What's the best way to check whether there is video data (or not) in a live RTMP stream? For example, if a broadcast terminates, can I auto-detect that condition, to perform some sort of "thank you for watching" behavior?Also, how can I know if a visitor somehow gets disconnected from the Internet during the broadcast? (So I can notify the visitor of the problem, and give instruction.)
View 1 Replies
Dec 13, 2011
I'm setting up a simple little OSMF-based media player, and I have hooked up the org.osmf.captioning plugin found in the samples. It is working just groovy with video, but I also have audio files to play with captions, and it doesn't seem to do anything for those. On initial inspection, I can't see anything in the plugin that ties it to a specific type of media. Nor can I find any indication that the timeline metadata used for captioning is only relevant to certain types of media. Does the captioning plugin support audio playback? Might I have set it up incorrectly?
View 1 Replies
Apr 28, 2011
i'm working on a AS3 project including video reproduction managed with OSMF 1.5. Now i must implement analytics using AppMeasurement.swc. How use AppMeasurement to track data from my video?
View 0 Replies
Oct 13, 2010
I know this stream works because of two reasons:
1) It works OUTSIDE of OSMF
2) It works in the akamai support player: [URL]. I don't believe the current akamai support player is using OSMF (which is suprising since they built the predecessor to osmf..)
My question is: How in the world do I play a live stream in osmf? This should be very simple if not automatic. However, I'm getting the following error when I try to play a working live stream:
Error: Stream not found
Which is a bunch of garbage since a non-OSMF player can play it. I have the Akamai Basic Streaming plugin which doesn't seem to be working either.
View 1 Replies
Feb 24, 2011
Here's my function:
ActionScript Code:
private function onTrackClickHandler( e:MouseEvent,trackWidth:Number):void{
mps.mediaPlayer.seek((skinControls.trackBg.mouseX/trackWidth) * mps.mediaPlayer.duration);
[code].....
View 0 Replies
Sep 30, 2010
If been trying to refurbish my website using solely OSMF but, the sound part gives problems in various browsers. It works in IE6 and FireFox but, it doesnt in Chrome and Safari. Does anyone know what is happening and what their differences are when it comes to file loading?[URL]check it for yourself clicking the buttons in various browsers the Flash button uses native flash sound libs the OSMF button the OSMF implementation.
Main.as
Code:
package {
import org.osmf.elements.AudioElement;
import org.osmf.media.MediaPlayer;
import org.osmf.media.URLResource;
[code]....
View 1 Replies
Dec 28, 2010
I downloaded OSMF Sample player and opened osmf.html, (C:playerosmf.html)it worked perfectly without any problem.The same file when I deployed onto tomcat server,[URL] I get the error "The specified capability is not currently supported" while debugging.
View 2 Replies