ActionScript 3.0 :: FLVPlayback Cannot Play On First Visit
Jul 14, 2009
I have a strange problem that I was hoping someone might resolve. I'm a new visitor to the Flash world from other development platforms, so the language seems pretty straightforward, but I have now spent a week and a half on this one bug.
Basically, I'm trying to play an F4V using an FLVPlayback component. However, it seems that the video only plays if the f4v is already in the client cache. If the cache is empty, or disabled, then the FLVPlayback component throws an Error 1000, which seems to suggest it's having trouble connecting/pulling the video off the server. But since it does work on the second visit, then I suspect that it does indeed perform the download -- it just THINKS it can't. [code]...
View 2 Replies
Similar Posts:
Dec 11, 2011
I have a swf animation that plays a sound on the main home page. People are happy to hear the sound upon first entering the website but it starts to get annoying after that (people go to different pages on the site then come back to the home page).
Just wondering what would be a good way to do this? I can set it up so that he same swf file is used on every webpage.
I understand that I could do a cookie or something like it/ session variable, but is that over kill? Can I do something via actionscript / the swf by itself?
View 2 Replies
Jan 25, 2012
I have a flash logo on my website but I don't want it to play every page load.I'm a total newbie in actionscript but I've gone as far as I have with the logo by googling and asking questions. I hope someone can please tell me how to do this one last thing I need on my logo since I can't find it anywhere! :)I'm using AS2 but I guess I can use 3 as well.
View 1 Replies
Mar 2, 2007
I'm creating a banner navigation with quick animation and I just want to PLAY the animation when user visit the page for a first time OR only in homepage (index page).Basically when visitor go to another pages, they won't see the "banner" animation over & over again. How to accomplish this ?
View 3 Replies
Jul 9, 2009
I'm using the FLVPlayback component to play 4 FLVs.
There are 4 buttons in the swf that can call up each video to start playing. Here's what's on the button 1:
-----
function vid1(e:Event){
vidPlayer.source = "mymoviename.flv"
}
vid1_btn.addEventListener(MouseEvent.CLICK, vid1);
-----
All the controls in the skin (play, stop, pause, etc) are great, except I need to also have a "play next" control.
What type of script to do I need to attach to the "play next" control?
View 1 Replies
Aug 17, 2009
I'm using Flash CS3 Pro. I want to play over 5h FLV video by FLVPlayback. but 4h video -> no problem. 5h video -> seekbar and total time view have BUG. duration : 21117.796totalTime : 4340.615 why return different value??? FLVPlayback have limit of flv??
View 1 Replies
Mar 9, 2010
Is there any way that i can load a local mp3 file using flvplayback?
View 2 Replies
Apr 7, 2010
I wanna know how to play video in flvplayback in as3. in as2 the method was flvplayback.contentpath=video.flv
but what's in as3?
View 1 Replies
Sep 15, 2010
I didn't find any solution in the past discussions, I want to sync two FLVPlayback in the stage.Now I quickly solved with a Countdown of about 10sec;one can choose a project from a ComboBox and the two FLV play when the countdown reaches 1. That's not the right way as they never play in sync the first time..
I think a BufferingBar can do the job, detecting the end of the buffer. but I don't know the code to add...
This is the code I use with the Countdown:
cb.addEventListener(Event.CHANGE, changeHandler);function changeHandler(event:Event):void { if(ComboBox(event.target).selectedItem.data != "")
[Code]...
View 15 Replies
Aug 8, 2009
I am building a faq page with flvs for each of the 10 questions. But for some reason the flvs will not load dynamically (with Actionscript). When I load the source from AS and write play(); I can only hear the sound but no video.
The weird thing is that the flvs play ok when i specify the source in the component inspector and don't load them from the AS.
Even weirder, i tried replicating my project on a smaller version to show the problem, just with two buttons and two FLVPlaybacks and this time it worked. But will not work on my page! I am going nuts cause i dont know why it does that! I Mean it should work but it just doesnt![code]...
View 1 Replies
Apr 8, 2010
Video won't play from XML
I have been trying to pull a single random video (.flv) from an XML list to play it using the FLVPlayback component. I managed to get the description from the <desc> tag and the title <vidtitle> tag in the xml file but can't get the flv to play in the player.
I dragged a FLVPlayback component onto the stage and gave it an instance name of "display" but I still cannot get it to work. I get no errors when hitting "control + enter" the video never loads. My code is below.
Code: Select all//Let's load our video classes
import fl.video.*;
import flash.events.Event;
import flash.net.*;
[Code].....
View 1 Replies
Jul 17, 2009
If I double click on the published SWF file (thus opening it with the FlashPlayer 10 executable), the video plays correctly. Nonetheless, if I double click on the published HTML file, there isn't any video played at all. This doesn't happen if I put the files on a webserver, the video plays correctly on the browser.I checked the "source" property of the component, which doesn't have any absolut path (the video file resides on the same folder as the FLA/SWF folder, so the "source" property only has the FLV filename).
View 3 Replies
Sep 29, 2009
Will the FLVPlayback Component (version 2.5.0.15) play an MP3 file without it having to be streamed through a Flash Media Server? All I'm looking for is to place a player into my Flash that plays an MP3 file that's in the same directory as the SWF.
Here's my code... it's pretty simple:
import fl.video.FLVPlayback;
var myMusic:FLVPlayback = new FLVPlayback();
myMusic.source = "mySong.mp3";
myMusic.skin = "SkinOverPlayMute.swf";
myMusic.skinBackgroundColor = 0xCCCCCC;
addChild(myMusic);
View 3 Replies
Mar 24, 2011
I have FMS 4 and using AS3, no matter what I do I can't get any of my recorded FLVs to play in FLVPlayback.
Is there somethign I'm supposed to install on FMS to get it to play properly?
WHat should my path be? I've been told that the flv are living in the fms/applications/storyvideos/streams/videos folder.
I've tried every combination of paths I can think of.
View 2 Replies
Jul 27, 2011
i'm trying to embed h264 mp4 video into website using flash cs3 professional.
when i select the source file it's looking for .flv files and not the mp4 file so the mp4's are greyed out.i read a great tutorial using a pc which shows the workaround for being able to see the mp4 files.url...I'm however using a mac and this method of putting an * in the file name box doesn't work on mac.
View 1 Replies
Dec 18, 2009
I have this code as a preloader for flvplayback and it work ok
[Code]....
I have the flvplayback (flvplayer) inside a movieclip (mcfilm) all this I have in a function so I can easy call it when I need the movie to run. The problem is that it run the first time but if I stop it with a button and want to play it again, nothing happend, it just say loading (the mcladdar show)
View 0 Replies
Feb 22, 2007
Is it possible to play SHOUTcast streams using the FLVPlayback control?
View 2 Replies
Nov 18, 2010
Is it possible to use the FLVPlayback class to play an instance of the Video class? I'm loading the video (which is just an audio track with cue points) in using GreenSocks LoaderMax (along with the rest of my assets) and so have various instances of Video. The FLVPlayback class only accepts a String as its' source. Is there any way to hack it to bypass whatever loading it does and just feed it the video directly?
View 1 Replies
Nov 19, 2010
I want it to automatically detect if there's a live video,then play live;otherwise play back.
View 2 Replies
Mar 26, 2012
I am working with Playing FLVPlayBack Video. i was wondering about best practice to use buffer time and how exactly buffer behaves while video is in play, pause and stop states. If i set my FLVPlayBack instance buffer time to 30 sec, Is it contiguously keep 30 secs video in buffer. for e.g if video is on 15 sec , then it will be having upto 45 sec stream in buffer, for 25 it will have 55 sec stream , for 1.10 it have 1.40 sec stream and so on.? do it behave same as of in play, in pause and stop states . and if behaves diff. then what is the diff.
View 1 Replies
Aug 1, 2011
I am trying to play some videos from a XML based playlist. I found this, but it's for AS2: Quote:
[Code]...
The instance is named flv and the XML file flv.xml, what would be the correct way to do this in AS3?
View 9 Replies
Aug 2, 2006
My Challenge is this...To feed up to 5 video references (filepaths) into the SWF which contains the FLVPlayBack component, and have these play in sequence automatically.
Once the first video ends, the next begins...Currently our FLV player takes 1 filepath passed by FlashVars and play it.
First things first... I just want to get the function of having one .flv file play after the first has finsihed... do I need some kind of listener?
View 3 Replies
Feb 25, 2009
My scene has a video background which scales to the stage size. Then, each section has another video when transitioning in. The problem is that the videos play really slow than they should, very low fps. When there are 2 videos on the stage, it goes even slower. I've tried with embedding videos, using FLVPlayback, wrapping in movieclips, but still the same result. The videos are exported at 30 fps, same rate than the flash movie.
View 3 Replies
Jul 16, 2009
In order to play a FMS stream (live or on demand), either an FLVPlayback component or the Video class is needed.And they require ActionScript 3 and Flash 8 or above.
As far as i know , Youtube, Dailymotion and Google Video stream their on demand videos from a FMS, and their players are compatible with Flash 7.
How can they achieve this? If Youtube, Google and Dailymotion do that, i deduce it's possible..
I tried to create a Flash 7 application that plays a video coming from FMS, using a MediaDisplay component, but it doesn't work well. Sometimes it shows the video, sometimes not.So i don't think youtube player uses MediaDisplay..
View 7 Replies
Jan 17, 2011
I recorded videos using fms and i want to play them using FLVPlayback component. I've done some research but i cant find somethinguseful, I tried this code :
flvplayback.source = "rtmp://localhost/appname/instancename/video";
View 5 Replies
Nov 19, 2010
I've read the reference here,but it seems to me that I can only make it work with live OR recorded videos.How can I make it work with both live AND recorded videos?
View 7 Replies
Jul 9, 2008
I have been trying for days to write my own custom NCManager class that allows us to connect to a Limelight stream. We have to issue a NetCOnnect.call() that has the command "FCSubscribe" and the stream name. I've written a 100% custom player(url...) (have to register!) but what I want to to resolve that player with the video-on-demand player(url...) into a single Flash project.I want to allow our Graphics guys (aka Flash developers) to be able to use the standard Adobe FLVPlayback components and skins and also be able to p lay back files, streaming content and Limelight content. To this end I thought that writing a custom NCManager class would be the way to go.
I have 99.9% succeeded: my class gets the connectToURL(),connects to Limelight, subscribes and all is well but I am really really stuck now on how to tell the FLVPlayback component that it .can start playing back now that the stream is connected.FLVPlayback and VideoPlayer parts appear to be AS2 and I cannot call the rtmpStatusInfo() function on the VideoPlayer part to tell it that it is good to go.I am so close I can taste it: If I create a NetStream object and play() it, I can hear the content to I know that if I could only get the FLVPlayback / VideoPlayer dynamic duo to playback then the job would be done.
I have attached the code, warts and all in the hope that either somebody has done this before or can tell me what I have misunderstood about the internal state-machine / FSM logistics that VideoPlayer et al implement.By reading the source code and my debugging statements I can see that I have maneuvered it towards the ultimate goal of playback but I don't know how to make that final step.
PS: I *know* that reconnect() is non-functional but if I uncomment the call all it does is go around the loop again; the real problem is I cannot tell the VideoPlayer that it can play (via rtmpStatusInfo) the data etc
PPS: The meta-data related stuff *only* gets called if I uncomment the NetStream code; this was to check that I had a valid playback stream, which I do at that point.
View 13 Replies
Feb 15, 2012
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.
View 7 Replies
Apr 26, 2010
I am wanting to play a number of movie clips and flash produced video clips. On the main timeline I have a frame for each clip I want to play. In that frame is a flash movie that contains the video that I have embedded onto the timeline for the movie. The filesize for this project is massive and I am struggling to work on the file. I want to be able to play the video files with the playback component in each of the frames where the video was.
[Code]...
View 5 Replies
Aug 31, 2010
How can I have a Flash video not autoplay after the first visit?
View 2 Replies