ActionScript 1/2 :: Know How Much Of The Video Has Already Been Downloaded/streamed
Oct 20, 2006
I need to create a progress bar for my streaming video to let the user know how much of the video has already been downloaded/streamed. Making a progress bar for a progressive download is easy, just check the bytesLoaded vs the bytesTotal. But apparently with a streaming video those do not work. What exactly do I need to check in order to create a progress bar for a streaming video. Here is my sample code that doesn't work for the progress bar.
View 9 Replies
Similar Posts:
Sep 21, 2008
I'd like to make a preloader for a flv playback, so while waiting for the video to load, you can have the preloader. What I did was put the flv playback inside a movie clip, which has as the first frame the preloader and as the second frame the flv playback (which I call as instance myVid). But it doesn't work, it stays in the first frame with the bar loaded and never goes to the second with the movie clip. Maybe I shouldn't use the normal code I use to make a preloader for a whole site. Can anyone help? I attach the code I use for the preloader.
View 8 Replies
Feb 23, 2010
[code]This is my code that i have inserted into the first frame(?) of the fla file.When I use the swf in a html web page, i can hear the video but I can't see it and play skin cannot control the video.This is also a part of a security token code which i'm implementing on the client-side.
View 14 Replies
Jul 19, 2010
1) I want a 60 seconds video to start playing after 40 seconds have been downloaded - to do that I set the NetStream.bufferTime to 40 seconds and retrieve "NetStream.Buffer.Full" event causing the video to really start playing. This step is OK.
2) However, the "NetStream.Buffer.Full" causes data to stop downloading. So the remainder of the video begins to download no sooner than after the 40 seconds have been played. This step is my issue. Can anyone tell me how to avoid this unintended effect? (i.e. playing a video and downloading data at the same time?)
View 2 Replies
Nov 8, 2010
Flv seems like can't be use with loader but NetStream. But I wanted to play the video only after I have completely download it (smooth viewing with no buffering time). How can I do it with NetStream? And Can I have multiple video load at same time, and play it according to some array arrangement?
View 1 Replies
Apr 30, 2009
I am using progressive download to play video files in a video player. When I seek to a point that has not downloaded yet the video player freezes. The player enters the seeking state and stops playing.Clicking the play and pause buttons has no effect. The video player comes out of the seeking state and resumes playing only when the video file has completely downloaded. How do I implement the functionality where the player when seeked to a point that has not downloaded simply seeks back to the amount that has downloaded.
View 1 Replies
Mar 24, 2010
I have Flash Media Server, and I think it's free edition coz i dont input serial number when i installed it..I have problem to have people stream from my pc, there's a public IP address assigned/mapped to a development PC here..I'm able to stream it locally from my computer, fyi, my computer is using windows XP and the development PC is using windows 2003 server..and there's an apache webserver already installed there..
1. if i dont install the apache server bundled with the FMS, is it okay? I dont intend to stream through port 80...
2. what is the difference between port 1935 and 19350? I saw 2 files in the FMS directory, namely fms.ini and Adaptor.xml in fms.ini it binds to 1935, but in adaptor.xml it binds to 19350...
3. in adaptor.xml there one value like this:
<HostPort name="edge1" ctl_channel="localhost:19350">${ADAPTOR.HOSTPORT}</HostPort>
there's an explanation in above it that it binds to some ip we configure here, but if you wanna bind to any ip then omit the localhost and leave it like ":19350" my question is that is this necessary to do so in order for people outside our network to connect the development PC ?
4. about security at the proxy server or ISP, I've confirmed with my boss that he's opened the port 1935 to be allowed, and he's also confirmed with the ISP that they dont block port 1935..
View 2 Replies
Aug 5, 2009
Im trying to capture mic data from a swf, stream it to adobe flash media server, and save it as a wav file. Currently I can only stream the mic data to the server and save it in FLV format. how I can covert it to a WAV or save it as a WAV?
View 2 Replies
Jan 11, 2011
I am loading various movies into a "shell"movie as and when they are needed using loadMovie... However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the complete path...
_root.holder_mc.loadVariablesNum("scorevars.php"," post");
But this doens't pick up the vars. My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact...
View 1 Replies
Feb 24, 2004
I am loading various movies into a "shell"movie as and when they are needed using loadMovie.However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the complete path _root.holder_mc.loadVariablesNum("scorevars.php"," post");My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact.
View 5 Replies
Feb 24, 2004
Scenario:I am loading various movies into a "shell"movie as and when they are needed using loadMovie... No problems there.However I have one movie which I am loading in to the shell "holder" movie which is supposed to load in variables from a php file. Now when this swf file is run in the browser outside of the shell, it loads in all the variables just fine. The loadVariablesNum command loads into "0" the root timeline, but when I run the shell and navigate to the swf file, none of the variables appear.I am guessing I need to load the variables into 'this' movie, but I have tried that by using the completepath..._root.holder_mc.loadVariablesNum("scorevars.php"," post");But this doens't pick up the vars. My problem is I am not fully understanding the relationship between swf's loaded into each other and how the timelines interact.
View 5 Replies
May 3, 2010
I have spend my whole day trying to find a good way to access ID3 tags in AS3.0;In my project I am making a sound object and assigning it a URL: Then I stream the sound into a sound channel:[code]I want to read the ID3 tag somehow and display the artist name or anything in the ID3 tag, onto the screen.I Have the URL change through user input, and naturally I want to update all the information with the new ID3 tags information.[code]
View 9 Replies
Oct 13, 2011
Just wanted to ask, is it at all possible to create sound spectrum from the data that RTMP server streamed? I read this computeSpectrum and it says
"In addition, this method cannot be used to extract data from RTMP streams, even when it is called by content that reside in the same domain as the RTMP server."
I will not be using FMS so it stays inpossible. Are there any available hacks with php and the server or whatever?
View 1 Replies
Dec 14, 2011
In my case I need to be able to cancel loading as the user could possibly be scrolling through alot of images and the if not canceled it can take a few minutes to catch up to the scroll position.So after research the URLStream class seems to cure this problem and I found a good streaming class hereThis class works very nice except when there is heavy load on the server causing lag.When this lag happens the class will dispatch the complete event yet the image will not show.Watching the download with HTTPFox shows the image in fact does get loaded.
I assume there is some kind of delayed issue with the URLStream class and the author of this class tried to correct it using the setTimeout method. I also tried delaying the dispatching of the complete event using a timer and not dispatching until if( this.width != 0 ) was detected and this seemed to work much better.But it is still haunting me just not as often.
View 1 Replies
Apr 10, 2012
Does anyone know if Flash Media Server has a function that allows you to see statistics on which particular streams are being delivered?Seems like that would be a handy tool in determining which bitrates are important to continue providing, and which are superfluous, and if it's time to try encoding at higher bit rates.
View 2 Replies
Nov 8, 2004
I am trying to have a streamed mp3 loaded from xml, randomly play a new song on complete. I already have it play randomly onload. Here is what I have, and it doesnt work .
Code:
tickerLength = 52;
for (i=0; i<tickerLength; i++) {
leading += " ";[code].........
View 1 Replies
Nov 8, 2004
I am trying to have a streamed mp3 loaded from xml, randomly play a new song on complete. I already have it play randomly onload. Here is what I have, and it doesnt work :
Code:
tickerLength = 52;
for (i=0; i<tickerLength; i++) {
leading += " ";[code].....
View 1 Replies
Apr 7, 2011
is there a way to define a client side playlist like this:[code]but instead of a single videofiles for each playlistentry use dynamic streaming?I know how the DynamicStream class is working and how to set it up but i can't find any information if it is possible to combined those two techniques.
View 1 Replies
Nov 10, 2009
I'm a teacher and I have some animations made in flash language (swf). I would like to publish these animations on my web site so my students could see, but I wonder if there is any way to prevent these animations being downloaded.
Example: when I see an animation published on my web site, this animation is stored in Internet Temporary Files and I can save this animation anywhere. How can I prevent an animation is stored in the temporary folder? In other words, this animation can only be seen if the user is logged on the site.
View 11 Replies
Dec 20, 2009
I downloaded Flash, extracted it, and open the folder. However,when i click on setup.exe, nothing pops up. I looked inside task manager and see that the setup is using up 50% cpu but nothing pops up.I am using vista home premium sp2.
View 1 Replies
Jan 25, 2012
I'm starting a project that will build a flash file with quite complex capabilities. I expect the size of the swf/swc files will be quite big. In order not to slow down the page download, can I build the swf file so only immediately needed components are loaded with the page and other later-stage components can be silently loaded in the background?
View 1 Replies
Feb 15, 2012
I am developing a elearning site and we have developed our courses in Flash. I want to know how we can prevent our courses from getting download from our site. Technology used for developing website is ASP.NET with C#.
View 2 Replies
Jun 23, 2010
I have a question how can I secure my flash website (*swf) for being Downloaded??
View 2 Replies
Jun 14, 2009
All I want to do is to preload an flv in a similar way a regular preloader works with the first frame having a clip that displays "LOADING" when the correct amount of the flv is loaded it moves to frame 2 and plays.I have looked at the Flash docs for this and all the codes are based on using a component, my flv's are being streamed and downloaded from a regular server and I need to have the playback based on the buffer time. So figure if 50% of the flv is downloaded then play the flv.
View 1 Replies
Jun 4, 2010
im using flash cs3, i have downloaded swf and used decompiler to generate fla...now there is coming one error in script.[URL]..
View 2 Replies
Dec 16, 2009
I wanted to know if there is a way to embed a pdf file into a flash document to be downloaded by the customer. I want them to be able to click on the thumbnail version of the file to start the download of the high res version of that file. I am making an interactive cd so the files would be stored on the cd itself. I know I could do it by storing the files on the internet but I would like to keep everything local
View 2 Replies
Jun 19, 2010
I would like to develop a package made in Flash, if I put it on the internet as such and have downloads etc, is there a way to generate a password (or activation key and a password) that can then be embedded with the download so it can be used offline. If I can automate the process so I do not need to make individual packages but can control their use... this would be good. I don't have a problem if they also have internet connection, but the package needs to function off line. I guess I could use a batch passwords then selectively send out passwords in that batch, but this seems heavy.
View 7 Replies
Dec 17, 2009
[I posted a similar question on serverfault.com, but had very little feedback so trying here]
I can do this just fine under Apache with htaccess
But at work its all M$ all the time...
I need to lock off access to any .fla files that might come up on a virtual host. We keep them next to the few .swf we use on some of our sites, I just want to be sure they are not being downloaded by people or spiders that may scrape the site.
There isn't really anything sensitive in the fla's but I'd rather keep them in the same folder and have them forbidden to downloaders.
I've tried the MIME type route (check if MIME type is defined under HTTP Headers > MIME Types, remove if it was, etc;), but there is no FLA defined, but I can still download the file by default. I recall this was the opposite if you WANTED to serve .flv files, but not .fla's[code]...
View 1 Replies
Nov 22, 2010
How would you be able to stop people from downloading flash video from your site instead of viewing it in a flash player. I would like to prevent people from downloading the flash video by ripping the stream. I am not looking for 100% prevention but ways to make this difficult and annoying.
View 4 Replies
Dec 13, 2009
ive got this problem, i downloaded a website template and now im changing it to what i want. The 5 menu names are inside the same movie clip called Menu01. however its the same movie clip in each place of each menu so when i go to edit in place each menu comes up with home. Yet when i play the file they all come up with what there suppose to?
View 1 Replies