Flash :: Use FlvPlayBack To Play Back And Live Videos?
Nov 19, 2010I want it to automatically detect if there's a live video,then play live;otherwise play back.
View 2 RepliesI want it to automatically detect if there's a live video,then play live;otherwise play back.
View 2 RepliesI'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 RepliesIn 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..
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?
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 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";
I have uploaded two videos to the website I work on. Both play perfectly in all browsers when I pull up the pages on my C drive, but just show up as a blank page on the website.[URL]
View 4 RepliesI 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.
I am publishing video content to FMS with my program to livepkgr application. After i start publishing the vidoe content, files like .bootstrap, .conrol, .f4f and .meta are gettign created inside the livepkgr folder's my stream folder. But when i try to playback via OSMF player, the player is throwing error 1009. This happens for some few minutes. After some 4-5 minutes, the player start playing the live video content properly (.f4f file size is not getting updated for those few 4-5 minutes)
View 2 RepliesI'm now working on a flash website, i need to play a youtube video inside my flash movie. In this Flash file i have a FLVPlayback component and i tried to link the youtube video into this but did'nt work.
View 1 RepliesI wonder how I can stream FLV videos live with Red5 open source flash server.
I've tried most of the methods I know of, but can not get it to.
script that can stream live FLV videos.
I'm having a problem making my FlvPlayback go full screen. In FF it works great but in IE (8) it will only work once! the next time, it will flicker and return to normal state.
View 1 RepliesI am building a video player which should load multiple videos in a FLVPlayback. When the loading of the first video has finished, the second one should start, using the VideoProgress Event.
My code looks like this, videos is an array with the paths to the videos:
flvPlayback.addEventListener(fl.video.VideoProgressEvent.PROGRESS, progress);
flvPlayback.addEventListener(VideoEvent.COMPLETE, onComplete);
private function progress(e:fl.video.VideoProgressEvent):void
[Code]....
Now I have the problem when I test this locally, the first video is invisible sometimes when starting to play. This is not happening everytime, but sometimes the video is not shown, but I can hear the sound, and I can see the scrubber on the seekbar moving.
I already tried to check in the progress function if the video is already playing, and if not, set a timer that will call the progress function again in 1 second.
I am currently working on a project (AS3), where I have 2 frames, with 2 videos (using the FLVPlayback component) and I want to switch from one video to the next video, however the catch is when I switch to the next video I want the new video to play at the previous video time. Example: Video 1 plays, 10 sec later, you click a button to go and see the next video (in another frame) and that new Video starts 10 sec into it.
This is the codes I been using so far:
import fl.video.VideoEvent;
import fl.video.MetadataEvent;
video1.addEventListener(VideoEvent.PLAYHEAD_UPDATE, timer);
function timer(e:VideoEvent):void {
var newTime = video1.playheadTime;
[Code] .....
I imported multiple flvplayback videos on my file via the Video Wizard Import. After that I removed all videos except one. But it's still trying to load those old video and the skin of their player when I preload the file. I am sure there's no player on the stage except the one I need. And when I need to play the file, it's working well, the only problem is the extra loading for 6 skins that I don't use anymore and the time to look for 6 videos that are not there. So here're my questions;
1- When you import a video via Wizard, it there a script hidden somewhere that can be found?
2- When you import a flv to the stage, there's a loading bar saying getting metadata. Is there a place to edit or erase this metadata?
3- Any other ideas of where I could look to find this hidden data or trace or ghost that needs to be remove from the file ?
I am building a video player using FLVPlayback and some custom controls (AS3). At the moment when you click the thumb in the progress bar the video pauses and you can drag to a new position on the track and resume playing from there when you release the thumb (this is done using FLVPlayback.seekPercent()).I need to update this so that as you are dragging the video is constantly updating to the correct frame.
I tried using the working that fires on release and calling it on enterframe while the thumb is dragging and everything went wrong. I can't see any reason for this to be a problem and the code so far is pretty straight forward.
I'll start by saying that I'm in the process of learning actionscript. That said, I'm wanting to play two videos with actionscript. I went through a tutorial and using a pre-built flash player I used the following script
[Code]....
Which worked fine. That said, that was just a test. We are wanting to use the F4 Player. I opened up the player and looked at the actionscript (which is below). I had some trouble, so I posted on here and this was my response..
[Code]....
I need to know how to start and stop my flvplayer and my live stream.
I think this is kind of what I need but I've tried bits and pieces of it inside of functions triggered after a certain time and its not working.[code]...
I just wanted to know how to play youtube videos within my own flash player (the .flv/low quality ones) i made a long time ago.I think they're not allowing this now or they've changed something ?
View 2 RepliesI can play my live rtmp (fms) stream through the FLVPlayback component without any problems. I even figured out how to make my own player in AS2. But I still can not get a LIVE player in AS3. I keep getting "onMetaData", "Async" and "onBWDone" errors in varying combinations.Can someone, please find it in their heart to provide me with the appropriate code? Every single tutorial online is either AS2 or is for flvplayback (nc.connect goes to null).[code]
View 13 RepliesI can play my live rtmp (fms) stream through the FLVPlayback component without any problems. I even figured out how to make my own player in AS2. But I still can not get a LIVE player in AS3. I keep getting "onMetaData", "Async" and "onBWDone" errors in varying combinations. Here is my working AS2 code. I have a "linked video" thing from the library named "live_feed" on the stage.
Code:
//connect to the Flash Media Server
client_nc = new NetConnection();
client_nc.connect("rtmp://12.34.56.789/live/");
[code]....
How to stream videos in youtube in a flash website?
View 2 Repliesi have encoded(converted) some video files through Adobe Media Encoder to f4v. and i play them inside flash, through a flvlplayback component.I've placed the videos inside the same folder as my swf file.is there anyway i can protect the videos to be shown only inside my swf file?via the cue points and actionscript or something??something like a code to be placed at the begining of the clip, and be checked inside my swf file (while loading the video, into the playback component). if the condition was confirmed, the video plays.so that the video files don't play with other players outside my swf file..
View 1 RepliesI want to be able to stream a live video using Flash Media Live Encoder 3 using two options of 300 kbps and 150 kbps.I want to give users a choice of stream quality depending on their available bandwidth to maintain the live feed.I have set it up so that the Bit Rates are 300 and 150 and tick marks on: 1 and 2my FMS URL is correctin the Stream: box I have written: test1;test2The SMIL file has the following:
<smil> <head> <meta base="rtmp://live" /> <body> <switch>
<video src="mp4:test1.f4v" system-bitrate="150000"/>
[code].....
I am trying to make a swf with one FLV playback player and 6 buttons. I've got 6 different videofiles that I want to have linked to this swf. Some of the videos are quit large.When starting the Swf, the first video has to start, after playing it, it has to stop. Then you must be able to choose which video to play by clicking one of the buttons. I don't want to have small thumbnails of the video, just plain and simple buttons.I have to have all my files, both fla, swf and xml files in the same directory (I cannot have them stored in different folders, since I have to upload this to a cms system which has limited upload properties).
I've tried to find the right script on the internet, I'm not very good at scripting myselve, actually rather poor educated there.It seems to me that I have to make an xml file with a list of all my videos, I have my default swf ready, with a FLVplayback and buttons.Now there's just the coding part....
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 RepliesHow to record a live video stream playing on an FLVPlayback?
View 1 RepliesI'm completely new to Flash and actionscript, so please bare with me. But I'm in a bind, so I thought I'd give this a shot.I'm needing to play a commercial before playing an actual video on my company's website. Once the commercials ends, I'd like for the video to start automatically. Is there an open souce (free) flash player that will let me do this?I've watched a tutorial on how to do so, but when I try to make it work with a player, it never works.
View 1 Repliessetup multicast event with recorded videos not with live stream. how to setup multicast address that ask in multicast configuration utility....
View 1 RepliesI want a Flash player which can play a live video in a web browser. My video is increasing per second.
EDITED: I am making video using images by FFmpeg. I want to play that video in a web browser, but when the video is playing the size of that video keeps on increasing.
To view the increased video the user has to reload the page.