Actionscript 2.0 :: Seek Bar Making For FLV Player?
May 22, 2009Now i am doing a FLV Player. But how to make a seek bar for that.?
View 5 RepliesNow i am doing a FLV Player. But how to make a seek bar for that.?
View 5 RepliesI built an MP3 player a couple years back in AS2. I have tried various tutorials and can't seem to implement a basic seek bar. I am hoping for something with a draggable scrubber bar.I have attached the .as file, and stripped out all my failed seek bar code. It's currently published to work with Flash Player 8, and works fine - except for no seek bar.
View 2 RepliesI want to make seek bar in my MP3 Player.
View 1 Repliesimplement a seek bar for a video player. I know some basics about that. If possible send me any tutorials for that.
View 2 RepliesHow can I convert the hslider data format from decimal into an H:M:S?
View 1 RepliesI'm building a video player here[url]...
It's streaming RTMP, and I'm trying to get my video to seek correctly if the user clicks on the groove bar (gray bar under the green progress bar) Currently it does not seek and gives me a NaN on my duration variable and an error on my progress bar width variable, which is puzzling me.
For some reason my videoDuration variable is coming up as NaN when used inside of my seeker function, also I'm getting a null object reference error when trying to trace out playerCntrls.progressTotalW which is the total width of the groove bar[code]...
I am creating a custom flash video player for my friend's wife's surprise 40th birthday party. I was progressing through and everything was working fine, but now the seekbar and volume bar handles are completely gone. I was working on doing some buttons to load each video segment when I realized the missing handles. My actionscript is below:
import fl.video.*;
var flvPlayer:FLVPlayback = new FLVPlayback();addChild(flvPlayer);
flvPlayer.playButton = playbtn; flvPlayer.pauseButton = pausebtn; flvPlayer.seekBar =
[code].....
I have a video player that doesn't have "seek from unloaded time" functionality. I want to add it now. I simply 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");
Doesn't work! No metadata what I should do after?
I created a flash video player. Could any one show me how to seek unloaded time in flash video player?
View 1 RepliesI 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 RepliesI am trying to make the SIMPLEST POSSIBLE MP# player using the player component preinstalled in flash.It is very simple, the code is as follows:
Code:
on (release) {
player.contentPath ="Song.mp3"
player.play()
}
("player" is the mp3 component)
This works if I want a single track to be selected and played.Now, I need it to AUTOMATICALLY LOAD THE NEXT TRACK, which I will input in the code.I am thinking something like this:
Code:
player.onSoundComplete = function() {
player.contentPath ="Song.mp3"
player.play()
};
But this is not working.
PS: I know an XML file would be the best here, but I don't want to use it. I just want to enter the next track's code inside the swf.
I'am looking for a flv/video player which allow to seek for not loaded part of the video,just like on youtube.
View 1 Repliestutorial for making a buffering video player, with scrubber etc that lets the viewer see how much of the video has loaded whilst they watch it. I've been searching for ages but to of no avail!I'm using MX, not MX 2004
View 2 Replieswe need some movie clips.Place in a movie clip (MC) with the instance name "volume" of a line with a width of 250 exactly, do it with the properties tab.Once you have done that double click it. Inside this MC lock the layer with the line on it, and lock it. Create a new layer, and on that put in a picture of a slider, and give it the INSTANCE NAME, "knob_mc".Now, make another image,which will be easy for users to click on, make the the width of this, 250 exactly also. Instance name it mask.
Now, create your buttons. Name the buttons for the songs respectively, song1, song2, etc...Also make an image of a speaker, with no sound wave coming out of it. Make it an MC, then, inside this movie clip insert 4 keyframes of the speaker,each with one more sound wave than the other, starting with no waves. Put stop on each frame, in the actions.Then on the last frame,frame 5, make the mute image, also put stop on the layer.
Place in a movie clip with the instance name "slider_mc" of a line with a width of 200 exactly, do it with the properties tab.Once you have done that double click it. Inside this MC lock the layer with the line on it, and lock it. Create a new layer, and on that put in a picture of a slider, and give it the INSTANCE NAME, "knob_btn".Now, make another image, which will be easy for users to click on, make the the width of this, 200 exactly also. Instance name it mask.Then insert a picture of speakers, width of 100 exactly, instance name of speaker. Then inside that, create an image to show the amount of balance to one side. With a width of 50, instance name of balance.
Others;Play button, instance name "playbut", 2 keyframes, frame 1 play image, frame 2 pause image.
Stop button, instance name "stopbut".
Next button, instance name "next".[code]......
I got a problem while making a fullscreen enabled flv player.I developed a player which will got to fullscreen but the problem comes when the monitor is wide. There comes blanh space left and in the right side of the video.
my code is like this
function goFullScreen() {
Stage["displayState"] = "fullScreen";
flvplayer._width = 600;
flvplayer._height = 450;
[code].....
flvplayer is the movieclip which contain the video.
I am trying to make the stage follow the player in AS3 (basically, so the 'view' follows the player and he remains in the center of the screen throughout).Here is what I tried:
Code:
this.x = player.x-stage.width/2;
this.y = player.y+stage.height/2;
I've been working on a game for my AS3 class that involves enemies randomly spawning from all direction and following the player in an attempt to collide with him. I can get the enemies to spawn from one direction as well as move in a single direction but I can't get the spawning from all sides or the following the player around to work.
I've been at this for a couple of weeks now and followed several suggestions and tutorials (including one from here) with no success and this thing is due by tonight . Here's the code from my enemy class. All of the code of the game is done through AS files with no coding done within movie clips or on the timeline.
package
{
import flash.display.MovieClip;
import flash.display.Stage;
import flash.events.Event;
[code]....
I have a small media server. It's actually a Netgear GoFlex Home (NAS) running Plugbox Linux. It's currently running a bunch of servers HTTP/FTP/WebDAV/DLNA/Webmin etc and I want to create a frontend for my multimedia that I can access from the internet. (I preimarily use it as a DLNA media server).At first I considered using a Java Servlets backend with a Flex based frontend but that fact that I can't use Flex Builder from work (licensing) and I'm unwilling to pay a few hundred pounds for it, that's out of the question.
View 1 Replies[URL]
On the first page, my player begins to play like a radio show. i have different sections which are all individual tracks. the player works and plays each track when i manually press next or previous...but it doesn't automatically play through all the tracks. instead it pauses after the first track and i have to manually press next.
here is what i used...can you find the problem:
stop();
playlist = new XML();
playlist.ignoreWhite=true;
[Code].....
I am in the process of making my first FLV player in Flash CS4, for videos I plan to upload on my site. The play/pause/rewind buttons seem simple enough. However, I have searched and can't find-a timeline 'duration' that tells how many minutes have been played and how many total there are-a fullscreen button that toggles full/not fullscreen in the browser-if possible, some way to manipulate the timeline (e.g. drag the cursor forward to make the movie skip ahead)or explain to me how to do thisAs I said, I have searched for the above and found the play/pause/rewind tutorials but no timeline/fullscreen ones.
View 2 RepliesIm new to the AS3 game but I need some help with something. I have built a pretty good website mp3 player but it plays the songs in order. I want the the mp3 player to play a different song everytime it loads.[code]
View 2 RepliesI'm an actionscript beginner and trying to write a class to make the 'enemies' follow the 'player' (shown below). I'm trying to write it such that it takes two MovieClips as arguments, and moves the first one toward the second one. When I import the Class try to use it in Main.as by typing " var followPlayer:FollowPlayer = new FollowPlayer(fishMov0, player);", I get the following error:
"ArgumentError: Error #1063: Argument count mismatch on jab.enemy::FollowPlayer/followPlayer(). Expected 2, got 1."
[Code]...
How would I go about making a 2d lighting shader, that only made the things near the player visible?
View 3 RepliesRight I'm back on making a video player with selectable dubbing for different languages. On 56k simulator. (3min video.....audiolessFLV =5MB, mp3 = 707KB)using net stream
Preload - ---------------------------------- 19 seconds
aprox "6 Minutes worth of subtitles" (2xmls) + 50% audio -- 1min27secs
NB... this is NOT including FLV download as the DL sim, doesn't account for that.
For saftey lets say 10 second audio buffer delay... so what double/triple accounting for flv? Another issue is sync. According to ns.time and s.position, the audio is half a second early... when in sync.
1-2 moves of the scrubber is ok, but if you start messing around with the scrubber it goes out of sync.
Is the sync issue my code problem or an inhertant issue?
Code:
_root.controlbar.loader.scrub.onPress = function() {
vFrame.onEnterFrame = _root.scrubit;
this.startDrag(false, 0, this._y, 298.3, this._y);[code].....
I have the site: [URL]
There are videos there and they play fine and get removed when I change pages. The problem is, if I leave a video playing and then switch pages the sound continues even though the video disappears. How can I make the sound stop? I have done quite a lot of research. My video's appear code is:
Code:
this.createEmptyMovieClip("video_mc",10000);
this.video_mc.loadMovie("youtube video");
[Code]......
i'm making somekind of music / video player in flashmx2004. it plays streaming mp3 en flv files. random people can put a link into the players database. ofcourse there will be some that insert a dead link, now i want to check with actionscript (1.0) if the link is dead and if so, the player automaticly will skip this track. this is what i've got allready to load te streaming sound:
[Code]...
Is it possible to use Flowplayer (flowplayer.org) and the seek() function with an FLV file?
View 3 RepliesI have created a flash movie in AS3, I wanted to have a seek bar [or a Back and Forward button] to move my movie forward/backward.
View 1 RepliesI am working on a music player where the music list is loaded using xml. I am using sound object and the streaming property is set to 'true'. Now I want to calculate sound.duration, but I don't get the actual value when it is streaming, probably because the entire file is not downloaded at once because of streaming, and it is returning the duration of the portion of the file downloaded. So I am unable to develop a seek bar which shows the current position of the music.
I even tried to get the file duration using ID3 tag but the TIME property does not seem to work either.
Another options could be using php to get the duration of the mp3 file and generate an xml file which specifies the duration of the file.
if Flash can listen for a click/drag on the seek bar playhead from the FLV player controls? I'm attempting to perform an action when a user drags the playhead through the video.
View 2 Replies