Flash :: Use Netstream.appendBytes() For Http Dynamic Streaming?
Jul 10, 2010
I am trying to figure out how to use http dynamic streaming with flash 10.1 but I can't get the basic functions working. What is the syntax for using appendbytes with a video file?
package com.player {
import flash.display.Stage;
import flash.net.NetConnection;
[code]......
View 1 Replies
Similar Posts:
Apr 9, 2011
I am using NetStream.appendBytes() to play a local video (no server involved) in Adobe AIR. I would like to use BitmapData.draw() to take a picture of the video output, but I am getting this error:
Error #2123: Security sandbox violation: BitmapData.draw: cannot access null. No policy files granted access.
Here is some sample code:
package
{
import flash.display.Sprite;
import flash.filesystem.File;
[Code].....
This is only sample code use for an explanation. The error would happen when calling the getImage method while the video is playing. The error mentions a policy file not found. Since the file is loaded locally there isn't really a place to put a policy file. Is there a policy setting somewhere that needs to be set or is the BitmapData.draw feature just not available when using appendBytes?
View 5 Replies
Apr 14, 2011
I am trying to play a mp4 video file with netstream.appendbytes method. But the video downloading. When I load a flv video file, the player play the flv video but when I am trying a mp4 video file, don't loading. flv works, but mp4 don't works.
My code is
import flash.net.URLRequest;
import flash.net.URLStream;
import flash.events.ProgressEvent;
import flash.events.Event;
import flash.utils.ByteArray;
[Code] .....
View 4 Replies
Apr 15, 2011
i am trying to play a mp4 video file with netstream.appendbytes method. but the video down't loading. when i am load a flv video file, the player play the flv video but when i am trying a mp4 video file, don't loading. flv works, but mp4 don't works.my code is
Code:
import flash.net.URLRequest;
import flash.net.URLStream;
[code].....
View 3 Replies
Sep 13, 2011
I have a simple flv player which connects to a CDN which can take header byte range requests if a user wants to skip through a flv without the need for the flv to be 100% loaded.I am using a third party http librabry to add the range header to the request.My code plays the flv but when I try to skip to 30 seconds into the video it just freezes. I beleive the cdn does return the file as i can trace through the bytes and the header has the content-range repsonse (below).[code]
View 0 Replies
Nov 14, 2011
the tips: Error #2123: Security sandbox violation: BitmapData.draw: cannot access null. No policy files granted access.
Here is some sample code
[Code]...
This is only sample code use for an explanation. The error would happen when calling the getImage method while the video is playing. The error mentions a policy file not found. Since the file is loaded locally there isn't really a place to put a policy file. Is there a policy setting somewhere that needs to be set or is the BitmapData.draw feature just not available when using appendBytes? It is a local flv file, not an ramp stream from a server.
View 9 Replies
Nov 20, 2010
When using DVR with RTMP streaming the stream could/would be saved as single big file on the server, but when using HTTP streaming the stream will consist of numerous chuncked files; in this case how will the stream get saved, will FMS 4 assemble the chunks? unlikely, will the chunks of stream get saved? in this case I wonder which tool could be used to access it and make VODs of it. What is the exact behaviour of FMS4 when dealing with storage of DVR HTTP streaming?
View 9 Replies
Nov 8, 2011
I am a video producer for a Non-Profit and in the next couple of weeks we are launching an online training, half of which requires watching multiple different video clips for this particular training around 50 deferent online videos. I'm a bit experienced with encoding video for the web (FLV, H.264) but would love to know more about HTTP Dynamic Streaming. As of now we just use a progressive download type of playing.
We recently hired a web dev and knows servers a bit but didn't seem like he knew anything about HTTP Dynamic Streaming said maybe we should search the internet for an auto detecting flash player? Anyways, is this something that I should be looking into for our organization if we do a lot of online video? If we purchased Flash Media Server would this be all we need? Is there like a Dummies book on this subject?
View 7 Replies
May 23, 2011
We recently purchased FMS4 and I'm in the midst of setting it up. However, not that it's a HUGE deal, but....
I see conflicting answers in the forums about whether or not it is possible to stream media in the HTML5 <video> tag (going back to early 2010).
Ideally, I'd like to stream (most of the time using flash), but for the specific browsers that support it, (chrome, ff, IE9, and select iOS devices) HTML5 video tags.
So, can FMS 4 do that?
<video id="something" controls="controls">
<source src="http://video.mydomain.com/vod/myMovie.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
[Code].....
If so, how? I gave it a shot using the above code (minus the "blah, blah, blah" ), and the video doesn't play - if all it is, is a syntax error, then please be so kind as to provide the correct syntax.
However, if it isn't possible unless you download something else, like the File Packager for HTTP Streaming or the Origin module for HTTP Dynamic Streaming..
View 7 Replies
Nov 10, 2011
Will the use of HTTP Dynamic Streaming in place of the RTMP protocol aleviate the connectivity problems experienced by users who are sitting behind restrictive corporate firewalls?
View 2 Replies
Dec 14, 2010
As of Flash 10.1, they have added the ability to add bytes into the NetStream object via the appendBytes method URL...The main reason for this addition is that Adobe is finally supporting HTTP streaming of video. This is great, but it seems that you need to use the Adobe Media Streaming Server (URL...) to create the correct video chunks from your existing video to allow for smooth streaming.I have tried to do a hacked version of HTTP streaming in the past where I swap out the NetStream objects (URL...), but there is always a momentary pause between the chunks. With the new appendBytes, I tried to do a quick mock up with the two sections of video from the preceding site, but even then, the skip still remains.Does anyone know how the two consecutive .FLV files needs to be formated in order for the appendBytes method on the NetStream object to create a nice smooth video without a noticeable skip between the segments?
View 6 Replies
Jun 22, 2010
I need to be able to play MP3/AAC audio with a custom-built Flash player, embedded in a web page using my standard HTTP server. The loadSound() method seems to work fine for this, but I need to be able to skip the MP3 to unbuffered regions of the audio timeline and to start it streaming/downloading from there.
Anyone know how I can accomplish this? I've used the excellent mod_h264_streaming plugin for Apache for f4v "pseudostreaming" so I'm trying to accomplish the same thing on my audio files.
View 1 Replies
Feb 23, 2010
I read Flash 10.1 supports HTTP adaptive streaming.
View 1 Replies
Jun 29, 2010
I want to use http streaming (ie. partial download) to serve some videos (medium to HD quality) to public.Idea is to have videos on server and offer some web page with embedded video player for user to watch selected video.Planned capacity is about 250 to 1000 daily views, with low concurrency requirement (ie. not many users in parallel watching video)I am thinking of complete solution like FLVPlayer or flowplayer to support this.What bothers me are network bandwidth requirements (what is minimum kbps) mainly, and this video player performance when in "heavy" use.For "heavy use" I consider adding possibility to stream many separate video files that I will add in back-end (via XML file or similar) and don't have experience with these players.
View 1 Replies
Feb 11, 2011
I'm looking for a solution to provide streaming video to a variety of clients. I have iPhone clients as well as Flash-based clients. I'd like to not have to provide two separate mechanisms for delivering streaming content. Apple has decreed that HTTP Live Streaming is the way to provide streaming video to the iPhone (though does carve out an exception for small progressive downloads).Are there examples of Flash implementations consuming HTTP Live Streaming content? What challenges might be faced if I were to try and implement such a player? Are there other technologies I should consider?
View 1 Replies
Mar 23, 2011
I'm building a very simple publisher for the webcam in Flash. I want to select a camera and send the stream to a RTMP URL, basically:
Camera camera = Camera.getCamera();
NetStream ns = new NetStream(connection);
ns.attachCamera(camera);
ns.publish("stream name");
Now, I know I can set a mode on the camera, like this:
[Code]...
View 1 Replies
Sep 9, 2011
We're using HTTP live streaming service designed for Apple's iOS devices. It's working well with iOS devices currently.
Source video fragments are stored in server formatted in H.264 and with MPEG2(.ts) container. Is there a way to play these video in Flash platform?
[Code]...
View 2 Replies
Dec 26, 2010
I notice that, when I pause the video, the event "NetStream.Buffer.Flush" is triggered. And according to the language reference: "Data has finished streaming, and the remaining buffer will be emptied.", I have to re-buffer it, right? However, also according to the reference, it shouldn't stop buffering:
Starting with Flash Player 9.0.115.0, Flash Player no longer clears the buffer when NetStream.pause() is called. This behavior is called "smart pause". Before Flash Player 9.0.115.0, Flash Player waited for the buffer to fill up before resuming playback, which often caused a delay.
I'm using Flash Professional to do the debugging, and the traced version number is: MAC 10,0,22,91, and it appears for both FMS4 and red5.
View 1 Replies
Jan 3, 2012
We have setup a brand new FMS 4.5 for http streaming to ios devices. We are feeding the source via rtmp to livepkgr application. Upon digesting the iOS feed via the url below, there is no audio being passed. I can check the stream using the rtmp protocol and there is audio. [URL]..
View 5 Replies
Jan 27, 2010
How do i reset netStream.time for a streaming .flv that was intiatied on the server side? It just keeps incrementing on me even after the streaming .flv is done playing.
View 4 Replies
Sep 29, 2011
I just install 2 FMS 4.5 server and HTTP streaming is not working Tried using OSMF with HDS-LIVE ... failed Tried using SAFARI with HLS-LIVE failed too but when tested on my trial server, everyting is working fine. The open ports are 1935 and 80 Do I need to restart the server to make it works?
View 2 Replies
Mar 12, 2012
[URL].. The only difference i can make out is that flash http streaming uses an xml manifest and apple http streaming uses playlist warper. I Am not sure if these are any different in concept. What exactly is the purpose of having two different ways of implementing the same concept?.
I can see from the documentation the flash http streaming needs a flash based player built using OSMF. What player is required for apple http streaming.?
View 3 Replies
Jun 24, 2009
I have an http streaming .mp4 file that is encoded to 300kbps. The file size is 2.9mb and the play time is just over one minute. I want to set the buffertime to a low number so the video starts playing almost immediately, but whether or not I set the buffertime to 6 or do not set it at all (which should put it at the default of 0.1) it still completely buffers the entire video before starting play back. Is there I am missing about http streaming and buffertime? PS This happens with my own player AND the flash cs3 FLVplayback (I changed the file name to .flv for this one.)
View 2 Replies
Nov 11, 2010
i have a video object on my stage and i make it play by using ns.play();However, when i want to stop playing by ns.close(), i see from httpfox that streaming doesnt stop but continues.is there any way to really stop steaming anytime i want?it is same when i use FLVPlayback component. when i assign path to its source attribute, it starts streaming without saying it to play..
View 3 Replies
Mar 26, 2010
I have a flex 3 app that uses netstream and a video object to stream .mp4 movies. I want to use the bytesLoaded and bytesTotal properties of the netstream to display the buffering information. I would also like to get any information about the number of frames that are dropped if possible.
When I've tested on .flv I'm able to get the information without a problem, but it doesn't seem to work on .mp4.
Is it possible to get this information streaming .mp4? Is there some configuration that I'm missing to make things work the same for .mp4 as .flv?
View 1 Replies
Dec 15, 2011
The documentation is for FMS "4.5.1". Is PHDS for a live HTTP stream also supported in FMS 4.5? I tried setting Application.xml as instructed in the guide, and when I viewed the .f4m from the live stream, I did not see any indication that it was encrypted.
View 3 Replies
Jul 10, 2009
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;[code].....
I tested this with a similar player that uses progressive downloading instead, and I get real data.
View 2 Replies
Jun 29, 2011
I have a Flex/AIR desktop application that connects a local camera and microphone to a NetStream for delivery to a Flash media server.However, I would also like to archive a copy of the outgoing stream locally on the filesystem. Is there any access to the actual bytestream of a NetStream object (even in the dreaded mx.internal namespace) that I could turn around and feed to a FileStream for the local archive?
View 1 Replies
Feb 1, 2009
hey guys, what would be best to use on a full browser video, where the video should resize as the browser resizes and the flv will be streamed?
View 3 Replies
Nov 3, 2011
I am trying to config custom encryption key for different pieces of content at streaming level using jit.conf for On-demand Apple HTTP Live Streaming.I tried to set "HLSEncryptionScope content" in httpd.conf and placed jit.conf in ../webroot/vod but not success, the m3u8 generate not contains EXT-X-KEY.and, I tried and got nothing in access plugin log file while i http stream a m3u8 file, is it possible to log HTTP Live Streaming using plug-in?can plugin got any event triggered by http streaming?
View 4 Replies