FLVPlayback and VideoEvent.STATE_CHANGE Oddities
Hello all,
This is my first post, but this question has racked my brain and Google's servers all night, so I thought I would pose the question here.
Let me get started on the preliminaries of my problem so I can elaborate the issue. I know FLVPlayback is buggy but this seems like either a version problem or I might be in need of an update.
I currently monitor the VideoEvent.STATE_CHANGE event. When I first play a video with FLVPlayback by setting its .source property the VideoEvent.STATE_CHANGEevent fires in this order:
loading
buffering
playing
This is exactly what I need, however if I 'load a new video' by yet again setting the.source property the VideoEvent.STATE_CHANGE event fires in this order:
loading
paused
buffering
playing
paused
buffering
Which, incidentally, throws my event system out of wack, due to the video successfully playing while the last event fired is buffering. This causes my event tracking to be in an incorrect state.
I do handle the VideoEvent.READY event to run these methods on the FLVPlaybackobject:
video.pause();
video.playWhenEnoughDownloaded();
Am I doing something wrong in the order that I am calling the methods, or am I omitting a step in closing (which I've tired by getting the VideoPlayer.close() method) or disposing of something in the FLVPlayback object?
Any help or tips/direction pointing would be greatly appreciated! Thank you!
I am not well-addressed in video matters, but when I look thru the events of the FLVPlayBack component I don't see a PLAYING event associated with it. I do see a VideoEvent.PLAYING_STATE_ENTERED event and a variety of others that indicate various statuses being initiated. Have you tried that event using the approach you want to take? If you look thru the help docs you should find the complete set of them tabulated.
Similar Messages
-
Problem with FLVPlayback and component
First of all I had problem with control component. they are not working so i just named that ppo and change the visibility to false to get rid of problem!
ppo.visible=false;
Question1
(is there anyway to solve the problem? I mean to match the controlbar with screen of FLVplayer.)
Question2
what is the difference btw Flvplayback and FLVplayback 2.5 ?
Question3
whenever I click in btn1 it plays the flv.but sometimes it has no action so i click again and suddenly it plays the 001.flv twice and simultanously(even more than twice!)
how can I solve my problem ?
___________________Frame 1______________
import fl.video.*;
import flash.events.MouseEvent;
var myVideo:FLVPlayback = new FLVPlayback();
control.visible=false;
myVideo.x = 115;
myVideo.y = -10;
myVideo.skinBackgroundColor = 0x333333;
myVideo.skinAutoHide=true;
myVideo.skinFadeTime=300;
addChild(myVideo);
btn1.addEventListener(MouseEvent.CLICK , c1);
function c1(e:MouseEvent):void
myVideo.source = '001.flv';
Question 4 : I want to jump to another frame and start another flv but I want to stop previous flv. and again add myVideo2 to stage like frame 1 pattern. Is it true ? is there any better way to do this ?
---------------------------frame5-----------------------
import fl.video.*;
import flash.events.MouseEvent;
var myVideo2:FLVPlayback = new FLVPlayback();
control2.visible=false;
myVideo2.x = 115;
myVideo2.y = -10;
myVideo2.skinBackgroundColor = 0x333333;
myVideo2.skinAutoHide=true;
myVideo2.skinFadeTime=300;
addChild(myVideo2);
btn2.addEventListener(MouseEvent.CLICK , c2);
function c2(e:MouseEvent):void
myVideo2.source = '002.flv';
thank you in advanced..Question1
(is there anyway to solve the problem? I mean to match the controlbar with screen of FLVplayer.)
what are you calling the '..controlbar' and what are you calling the '...control component'?
Question2
what is the difference btw Flvplayback and FLVplayback 2.5 ?
2.5 has more features, http://blogs.adobe.com/ktowes/2009/05/announcing_dvrcast_and_flvplay.html
Question3
whenever I click in btn1 it plays the flv.but sometimes it has no action so i click again and suddenly it plays the 001.flv twice and simultanously(even more than twice!)
how can I solve my problem ?
remove the click listener so you can only click once. then you may need to wait if testing online.
___________________Frame 1______________
import fl.video.*;
import flash.events.MouseEvent;
var myVideo:FLVPlayback = new FLVPlayback();
control.visible=false;
myVideo.x = 115;
myVideo.y = -10;
myVideo.skinBackgroundColor = 0x333333;
myVideo.skinAutoHide=true;
myVideo.skinFadeTime=300;
addChild(myVideo);
btn1.addEventListener(MouseEvent.CLICK , c1);
function c1(e:MouseEvent):void
myVideo.source = '001.flv';
Question 4 : I want to jump to another frame and start another flv but I want to stop previous flv. and again add myVideo2 to stage like frame 1 pattern. Is it true ? is there any better way to do this ?
---------------------------frame5-----------------------
import fl.video.*;
import flash.events.MouseEvent;
myVideo.stop();
removeChild(myVideo);
myVideo=null;
var myVideo2:FLVPlayback = new FLVPlayback();
control2.visible=false;
myVideo2.x = 115;
myVideo2.y = -10;
myVideo2.skinBackgroundColor = 0x333333;
myVideo2.skinAutoHide=true;
myVideo2.skinFadeTime=300;
addChild(myVideo2);
btn2.addEventListener(MouseEvent.CLICK , c2);
function c2(e:MouseEvent):void
myVideo2.source = '002.flv'; -
FLVplayback and missing skin.
Helo all.
I am developing a website that uses the FLVplayback component to play a video. I have also made a custom skin for it as well.
- The SWF file that contains the FLVplayback component plays the video just fine, and has the skin.
- In the HTML document generated from Dreamweaver, everything plays fine as well.
- When i upload everything to a server, the video file plays, but the skin is MISSING!
The SWF containing the FLV playback component, the skin SWF and the FLV file are all in the same folder when i upload everything online.
I feel like I am missing something very simple.
If you have never been told the sky's color, or have ever seen it, how would you know it's blue?I had placed the containing asp file, the presentation.swf
file and the skin.swf file all in the same directory. -
Connecting flvplayback and an xml file
using flash 8 pro...
ive got a flv file saved in my folder... i am trying to use
the flvplayback component and get to the flv file via an xml
file... can someone please help me out with a sample of what the
xml file should look like...
right now this is what my xml file look's like and i have a
feeling it is wrong... in fact im pretty confident it is...
<?xml version="1.0" encoding="ISO-8859-1" ?>
<tirade>
<video url="mikegundy.flv" />
</tirade>
when i choose import video file i put this in for the path to
the xml file : rtmp://Documents and Settings/Angie/My
Documents/video/tirade.xml and of course it dsnt connect... also
can someone please help me out with the initial action script i
need to put on frame 1 for the flvplayback component...
i have been wrestling with this since yesterday.... i have
googled the heck out of it..
please help...
treyAre you referring to previewing the report using the embedded designer within Visual Studio? If so, what happens if you run the report through a custom application using the viewer?
-
When to use FLVPlayback and when to use MediaPlayback component
Hi,
I looked at at the FLVPLayback component and the
MediaPlayback Component and I wonder when one should be used over
the other? Any experienced designer out there that can tell me?
thanks
-MalenaHey, My problem with using flvplayback is that SOME windows
vista computers, and i seriously cannot figure out exactly what it
is but they will play the flv very choppy and so i had to use
mediaplayback and it works fine on all computers that i have tested
it on. it was VERY annoying because my client kept attempting to
watch video from his computer and it came through as garbage and
when i watched it, well it was perfect. so i tested it out on
several different computers and operating systems and found that
certain computers were just not compatible. I am assuming they were
just not up to date? i dunno, i have a mac, dont have those
problems :) -
i am trying to play a " flv " file in the flvplayback
component via an xml file...please help... i have searched high and
low for tutorial's... please take a look and let me know what i
need to do to fix it...
here is the action script in frame 1
import mx.video.*;
this.attachMovie("FLVPlayback", "my_FLVPlybk", 10,
{_width:320,_height:240,_x:100,_y:100});
my_FLVPlybk.skin = "file:///C:/Program Files/Macromedia/Flash
8/en/Configuration/Skins/SteelExternalAll.swf"
my_FLVPlybk.contentPath = "rtmp://Documents and
Settings/Angie/My Documents/video/videos.xml";
and here is the xml file it is supposed to pull the flv from
<smil>
<head>
<layout>
<root-layout width="320" height="240" />
</layout>
</head>
<body>
<video src="mikegundy.flv" />
</body>
</smil>
i dragged the component and placed it on the stage and then
editted the " as "... right now i get a black screen with the
player control's searching... finally no error's... it just isnt
finding the file...
thanks
treyif that xml file's name is flv.xml and you flvplayback component's instance name is flv, you can use:
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = parseXML;
xml.load("flv.xml");
function parseXML(){
flv.contentPath = this.firstChild.firstChild.firstChild.firstChild.nodeValue; -
FLVPlayback and streaming video
I am reading about the different between progressive and
streaming video on the web. I want to use FLVPlayback to play
streaming video. In Flash help, to use streaming video we have to
create a connection to server right? And the code to connect to
streaming video on the server (FCS or FMS) is:
nc = new NetConnection();
nc.connect( url);
ns = new NetStream(nc);
ns.connect();
Also in the Flash help, in the FLVPlayback section, how to
play video using FLVPlayback is shown, but I could not see anything
related to the connection or NetStream variable as the above code.
So how can the FLVPlayback play streaming video? Could anyone help
me please?Unless the video is completely downloaded to the iMac you can not rule out the Internet connection.
Since it plays all other video with no problem the downloading stream would seem to be the source of the problem.
I had cable modem and it is no guarantee of a fast connection. Also even having a fast connection on one end doesn't mean that the source of the video is pushing it all that fast. -
FLVPlayback and RTMP streaming
Hello, I'm streaming a video on my websites Flash page using the FLVPlayback component. I have two questions however: when I unload the containing SWF file the video continues playing. According to the AS3.0 reference for CS4 I can use closeVideoPlayer(0) to remove the video file. I keep getting this error however: VideoError: 1007: Cannot delete default VideoPlayer at fl.video::FLVPlayback/closeVideoPlayer() at Index/closeStreamPlayer() The other question I have is...I need to have the player resort to a local flv file instead of streaming if the connection is refused by the streaming server or the file can't be found. If I were coding this I'd just create a NetStream and check the status. I'm wondering how I can append a status checker to the player to do the same thing. I can't find anything useful or apparent to me in the reference. Thanks! David
Hello are you loading the webpage on that local machine ?
theres a security thing in flash that wont let you play the
video in that way. open the html file on a different computer to
the streaming server -
I recently upgraded from Flash MX to CS3. I am using the
FLVPlayback component to play some video. I am trying to get the
slider to work. In MX, (and the documentation for CS3 tells you to
do the same) you would set the Component Parameter of totalTime to
get the slider to work. But, when I open the component inspector
there is no parameter for totalTime listed there. I have done this
hundreds of times in MX and have had no problem, but I can’t
figure it out in CS3.set the publish setting to AS2, then drag the component on
stage, it will be the familiar component. -
FLVPlayback and MP3 Files - Possible?
I've got Flash 8 Pro on a Mac, and I'm trying to use the
FLVPlayback component to stream MP3s off a Flash Media Server (2).
The docs say: " New to Flash Professional 8, the FLVPlayback
component lets you quickly add a full-featured FLV or MP3 playback
control to your Flash movie. " but no matter what I do, FLVPlayback
doesn't want to look at my MP3. If I encode the same file into an
FLV wrapper, it works fine. Similarly, I can stream the MP3 off the
server using the MediaPlayback component, but I'd rather stick with
my existing (FLVPlayback-base) player if at all possible.
Any help? Is it possible?With Netstream object all will remain the same as with an FLV
file except the stream name in NetStream.Play API
For MP3 file using NetStream.play("Mp3:fileFile") should
work. -
FLVPlayback and preloader size difference
Hello,
I have put a preloader on a movie that plays a FLV (preloader on frame 1 and the FLVPlayback on frame 2). The problem is that the preloader thinks that the file size is only 38Kb and the FLV is 27,000Kb. So how do I make the preloader read the size of the FLV?
Thank you for your time,
Bernieyou need to create a preloader for the flv. i recently answered someone's inquiry about how to do that in this forum.
-
FMS 3.5.2 update, FLVPlayback and DVR?
Hello.
So, I have been told by various people that the new 3.5.2 update of FMS is supposed to fix the issues with live DVR playback and the FLVPlayback component. Specifically, that the progress bar is now supposed to update appropriately if new live video is still being added to the DVR'ed stream while the stream is being viewed in the FLVPlayback component.
However, I don't see any changes. There had been talk previously of a DVRCast application, but I don't see anything like that coming with the 3.5.2 update. Furthermore, the release notes for the update mention that users should update to the new version of the FMS Tools; however, as far as I can tell, there is no version of FMS Tools newer than the one that contained the original FLVPlayback_2.5 component... so, anyway, now I am using the 3.5.2 FMS and the version of FMS Tools currently available on the download page, and yet when I view a DVR'ed stream while the live video is still incoming, the progress bar doesn't update at all, and so for any video that arrives after what was the latest video when I opened the player, the playhead just sits at the very end of the progress bar.
Can anyone tell me what (if anything) I'm doing wrong here?
Thanks,
-DanThe development server is fully functional and you can connect up to 10 connections with it either locally or externally...open port 1935 in your router and use your external IP address for the rtmp connection.
-
Disk image mounting and disk utility oddities on Xserve running OS X Server
I continue to run into an odd problem on one of my server setups. It is a 1.33 GHZ Xserve running OS X Server 10.4.11. There are four ATA drive installed (two of which are mirrored using Softraid 3.6.6). There are a total of 6 Firewire drives on the Firewire 800 Bus. Three of those are used for sharing out files and the other three are for various backups.
What happens is that I sometimes run into an issue where dmg files will not mount. There are no error messages and nothing in the log, they just don't open. Likewise I am unable to launch Disk Utility, it just spins and spins never displaying the drives, again nothing in the logs, no crashreporter. I have also found out that the same thing happens in System Profiler when I try to get a list of drives on either the ATA bus or the Firewire bus. Mind you they all show up on the desktop. Likewise I have had no luck getting them to list or run permissions or the like from the diskutil commandline. Now I am able to mount actual drives. When I swap out the offsite backup drive it mounts the new drive just fine. However... when I eject the drive and it has disappeared from the desktop and then I remove it... I get the removal error.. you didn't put the drive away properly message.
Now there are no disk related events showing up anywhere in the logs. The only other oddity that I can see is that my rsync backups tend to generate a ton of zombie processes. I get zombies of cron, sh, rsync, and mail.
It is just a pretty straightforward shell script
/usr/local/bin/rsync -E --archive -eahfs --delete /Volumes/Files/Shared\ Items/ /Volumes/Backup\ Files/Shared\ Items/
Running in cron with it set to email the logs.
Now this does all clear up when I reboot the server... but it also doesn't reboot cleanly. It closes down all of the applications, login window and the like and then hangs on the shut down portion. Eventually I have to power it off manually. I've done the normal Volume checking on the main drives and they come up with 0 errors.
Hoping someone might have some ideas before I end up having to backup and reinstall the whole thing.Also when I try to open the disk image file I get the following error in the log.
xserve kernel[0]: disk10s10: media is not present. -
Batch Color Correction and Batch Levels oddities...help!
So I have an action that I've been using for the past couple years (?) now that involves opening an image, applying an auto color and auto levels, saving and closing. This has been working for me since probably a couple years ago when I made the action. Yesterday, I was working on a scanning project where I have groups of images in separate folders. I ran the action on the first 2 folders which went fine. When I got to the 3rd folder all the way up to the last one, PS just loads all the images, does the levels and color then fails to save/close them when done. On one of my folders, it gets through a few of them when it drops the ball and just opens all of them. I'm not sure what's going on as there's no real explanation as to why this is happening...especially when I've been using this action (and I even made a new action with still no luck). This is becoming a huge headache. Any feedback/help would be greatly appreciated...especially when last week I had about 300 images I had to work with and PS decided to pull this move on me after doing the first 30 of them fine...which is when I first noticed this happening.
To further add, I set my action to show everything step by step and it seems to happen with select images (in some cases, these select images are entirely what is in the folder). With the select images, it is not doing the actions entirely in order. Typically it does it in this manner:
1-Levels
2-Levels
3-Save
4-Close
What I'm now experiencing is this:
2-Levels
1-Levels
(Skips 3 and 4 since it is starting at 2 and working upward). Hopefully you understand what I'm talking about!They're all JPEG, all coming from the same source (Images coming off of a Kodak PS410 scanner). I've also checked to see if they're 'read only' but they aren't. Odd thing is, I've taken this same set of photos to another computer and ran the same action and everything ran fine. As far as memory goes, I don't think that should be an issue as I'm set up with 16gb of RAM. And as far as what I was recently working on, these folders had probably 40 images max in them.
I'll be running another batch on another set of images (coming from a different source) today and see what happens, if anything. -
FLVplayback and preview image how to do?
LIke youtube, they have a preview image of the flash video.
How do i get flash using actionscript to dynamically generate a
image realtime?
Oh, one more question, how do i convert any file to an flv
through the internet? dont worry, i'm not trying to beat youtube,
i'm doing this for a music studio website.
I heard of this ffmpeg.exe....how to use this? Do I put this
on my webserver? I use the paid yahoo webhosting.sorry kglad, that won't work. The image file has to be
dynamically generated on the spot online as i am creating a website
for new piano music company. He doesn't know how to use flash and I
have no time to manually do this for every video the web owner
uploads.
Speaking of which, ffmpeg is not compatible with yahoo
webhosting plan. yahoo is only limited to php 4.3.1.1. Switching
webhosts provider is not an option. is there any other way that
when the web owner uploads a video(any format), it can be converted
on the spot into any format(preferbly flv like youtube, but i wanna
add custom birates and such)? is there a way. I contacted yahoo
through email but they never answer(maybe they are too scared that
the answer may make me rethink of my webhosting).
Maybe you are looking for
-
Frequent interruptions when exporting to camcorder
When I export an edited movie back to the camcorder (Sony DCR TRV 240E; DV IN/OUT) I get small interruptions (freezing or vertical shaking) in the picture frequently (once every 60 seconds (approx.)). These interruptions are not there in the editing
-
We want to configure GOS for our IXOS archive server without coding. We did some search but all have some coding effort. Could you help provide some links to some documents about configuring GOS for the IXOS archive server without coding? Thanks!
-
JVM crash in netbeans 5.0 using JPDA
It happens almost all the time when I use netbeans 5.0 (jdk1.5.0_06-b05) attaching a remote java process with jpda. And the hotspot err file looks like below. I am not sure if this is due to Windows XP upgrade by the IT guys of my company. Thanks alo
-
Corrupt file/saving issues
Keynote suddenly wants to save every time I make a change. It is paralyzing, saving every ten seconds. This only happens with one file, others are normal, so it must be corrupt. Tried pasting all the slides into a new file. Nothing. How does one unc
-
i bought the elements 10 a year and a half ago. and i had to reset my computer. i didn't have to use it for like 5 months. and now that i try to download it from the adobe website it wouldn't download. it stop after like 5 mins or so. i still have ac