ActionScript 3.0 :: Seek To Initialize The Change In Time Vs Play
Jun 25, 2009
I have a custom video player I've built and have been adding a seek function to it lately. I ran into an issue where seeking backward in the timeline stalled my timecode. I could seek forward and my timecode updated as expected, but seeking backward, my timecode would stall at the current time before the seek was requested. I run a function on netStream.time() in order to set my timecode.
I have a problem with listed code that every time I click on btn1 the variable (num) will be initialize to 1. so what is the best practice in my case to initialize the variable (num) for only one time when the flash loaded.
stop(); var num:Number =1; function b1(event:MouseEvent):void[code].........
I know seeking to a cue point is known to be inaccurate at times so I'm wondering if the accuracy of seeking to time and secs better. So far I've seen no true difference.
The problem is that I have an fla video player that uses the netstream class in order to pull a stream (mp4 h264), I've tried this with a few different mp4 files and they all behave the same..Basically, when I goto seek to a position, say 10 seconds into a 300 second mp4, the movie buffer goes blank and my readout of the current time I can see climbing from around 7 seconds and keeps going all the way to the end.. almost as if the seek command is trying to find a keyframe where it can resume from..I'm using http (not rtmp), and thus streaming directly from naive http.After awhile I decided to use the FLVPlayback component, set the source to the same, and it read in some initial metadata.. when I try the movie with the FLVPlayback component I can pause, seek resume to any position without problem, at first I was thinking the problem might have been http related but if the FLVPlayback component works then I'm a little stuck..Also note that I've checked the seekpoints of the movies and there are TONS of them, so the seek command should be able to find a nearby seekpoint to where I suggest.
I've been toying around with this RepublicOfCode tutorial and changed a few things here and there.For example, I wanted a play/pause button in stead of seperate buttons. And I wanted a stop button so people can actually stop the music.Now here lies the problem, play/pause works BUT after I've stopped the music, the music will start again with the play button but it wont pause, it will just start the song again and again and again... On a side note, I wanna try to add a volume slider, seek bar, time remaining, and possible (if i can figure it out, probably also has to do with the XML) a playlist.[code]
I have used the Dvrcast application with FLVPlayback 2.5.0.26 for playing the dvr video.I have successfully achieved the dvr functionality with that application but i don't know how to update the seekbar max time (ex: while I play the video it the video length say for example 3min after i play the video it is keep on increasing the length since its dvr publishing will continue in other hand).It shows the max time of video when I enter to play the video not the current length of the video. I need the help to achieve this function.
how to add like a youtube type control bar into a swf to control a movieclip inside the swf so i can add any movie clip in and change a few varibles and still have the whole thing self contained inside the swf. I have been looking for about 2 hours now and i cant find any info on what im looking to do has
Is there a way to disable/enable the buttons in FLVPlayback component? I got a flv files loaded into a fla file and the swf file then loaded onto the main fla file which where I want to disable/enable the FLVPlayback button at certain time.
I have a video player that doesnt have "seek from unloaded time" functionality. I want to add it now, but i am having headaches. I sipmly load video like this; stream.play("vidurl.flv"); (pseudo streaming) Server side is ready. I can call videos like videourl.flv?start=xxx but cant play them in player cuz video comes without metadata
To sum up;
1. stream.play("vidurl.flv"); works, video plays 2. user clicks to seek bar. on unloaded part. i get the position and convert it to seconds
stream.play("vidurl.flv?start=10"); doesnt work! no metadata what i should do after?
I'm testing Live streaming with FMSS. The stream is pushed to FMSS buy Adobe FMLE software. Streaming works fine until I reach 1300-1400 simultaneous connections.No matter what the encoding ratebit is (150kbps or 2000kbps) the stream is no longer play from time to time (5-8 seconds).
The CPU (2xIntel Quad) is loaded less than 20% and memory used is about 2 GB (there is plenty of memory installed 32G). The OS is RedHat 5.3 64bit platform. Network uplink maximum rate is 4Gbps.I disabled the Queue but the problem still persist.
I added in my application universal time, and I gave start and stop time. The process is going smoothly, but if I change my system (local) time, the entire time will be changed. Is there any solution to solve this problem?
My goal is to change the time for setInterval each time the function is called. Planning to replace myInterval = 5000; with a randomized number. My problem is getting setInterval to recognize the myInterval variable from the function.
i use a code in order to have the time who run during my animation. but when i use setinterval, the speed can't change. how can i change the speed of my 'time'
I would like to play two videos (progressive), on top of each other. Nothing serious. But the second video contains multiple counters that has to play synchrone (with other words:simultaneously) with the first video.The second video (which is much smaller than the first) will preload much quicker and thereby starts playing earlier than the other video. Is there a way to start the video's at the same time and play them in progressive mode? (embedding is not an option because of the large filesize)
This thread i speak of is about how to play certain .swf's or MC's during the morning/afternoon/night.
I know for a fact i've seen this thread here before, but i just can't find it. Or if anyone wants to let me know how to accomplish this without the previous thread, that would be great also.
I am making a website (even tough i don't know much about editing and stuff yet) and i'm trying to use this Template.. there are tabs on the site with option etc, and i am having trouble editing 1 tab at a time .. everytime i change something in 1 tab, it automatically changes all the others as well .. i don't know why .. there is a green 'glowing' light green retangle around all the tabs.[code]...
I need the movie to play just once (the top header) per user session and then other pages not to restart the same movie from the beginning...At the same time protection against hotlinking should remain. Is it possible to make this without storing the swf file on the user's machine?[code].,,.
if sound is playing - dont play sound, else, play sound?
so that the sound effect only plays one at a time. So if holding down SPACEBAR for example, the sound will play and only after the sound finishes, can it loop if SPACEBAR is still pressed.
I have two animated SWFs on the same web page and I am trying to get them to play at the same time when only clicking on one of them. How do I make this happen?
How can I stop one SWF file playing when playing another in a HTML page?
I currently have a carousel that displays multiple SWF files and I don't want any overlapping of video or audio. I've been looking into LocalConnection and JavaScript options but with no luck. My SWF files are currently ActionScript 3 and Flash Player 10. I have a large play button on them, with the ActionScript code:
I'm having a problem with sounds in AS3. I'm using the following code.
ActionScript Code: sound = new Sound(new URLRequest("mytrack.mp3")); channel = sound.play();
If i want to skip to a certain location in the track, say 1/2 way through, i then use
ActionScript Code: channel.stop(); //stops old sound from continuing sound = new Sound(new URLRequest("mytrack.mp3")); channel = sound.play(location); // location = time in ms to start from
I've noticed by using loading bars, that in most browsers, if the song has not fully downloaded, it restarts downloading from 0 and then when completely done, plays at the desired point. If the song HAS downloaded, it quickly loads (as if downloading from 0 to complete in about 1/2 second) and then plays from the desired point.
My question: Is there a better way to seek to a position in a song, that would stop this strange behavior?
i have a about 20 frame animation but what I want to do is to find out is there a way to set a time to play a certain frames i.e when movie starts it plays only 10 frames and then stops for a minute then after 1 minute it continues from frame 10 to frame 20 and then again stops for one minute and it starts over again