Talk:Flash-Ajax Video Component
From Adobe Labs
| Table of contents |
Welcome!
Welcome to the Flash-Ajax Video Component discussion page on Adobe Labs. Please enter your comments regarding this technology here. To help identify the author of comments, please create a new section and use ~~~~ at the end of your talk entries to automatically create a signature.
Comments should be added in list format, but feel free to add your comment under an existing comment to follow a thread structure. If you are responding to a thread, please use the H3 style for your subject (=== TEXT ===) so that the page is easier to read.
To discuss Flash-Ajax Video Component with the community, please use the Labs forum
Daniel T 17:27, 26 Jul 2007 (PDT)
Not seeing videos when viewing the example HTML files
I downloaded the zip. On both a mac and a win pc I do not see videos with both example files. Might something be wrong with the package?
Urs Hunkler 10:06, 28Jul 2007 (PDT)
Response
I'm not having trouble so I don't think it's the a problem with the download -- it's possible the problem you've run into is related to where the video is located. When a local web page connects to video on a website (such as if you are developing/testing locally), a security dialog will be displayed by the Flash Player. This can be disabled for testing -- details are in this documentation: http://livedocs.adobe.com/flash/8/main/00001611.html
AdrianLudwig10:30, 2 August 2007 (PDT)
Error playing Video
Hi, I'm trying to run the examples locally. I've changed the security options, but I get this error:
Firefox 2.0.0.6
uncaught exception: Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.].
Line 0
Internet Explorer 6:Unkown Exception line 48
Debuging with Microsoft Script Editor
an exception occurs "script block" line 49
return eval(instance.CallFunction("<invoke name=\""+name+"\" returntype=\"javascript\">" + __flash__argumentsToXML(arguments,0) + "</invoke>"));
Jose Montiel 09:48, 11 Aug 2007 (PDT)
FAVideo with ASP.NET Webforms.
Hello,
I am trying to use the FAVideo component with an asp.net webform and cannot get it to work. The problem lies in theAny ideas on how to make this work ?
Thanks, SK -=-
<form id="form1" runat="server">
<script type="text/javascript">
playerOne = new FAVideo("divOne", "http://musc.edgeboss.net/download/musc/videos/2007/3dtechnologymed_prog001.flv",0,0,{ autoLoad:true, autoPlay:true }); </script> </form>
this component is busted
I have my global security settings setup correctly. I've attempted to demo this component on my local machines (mac & pc) and on an apache server and no matter what I do no video whatsoever loads or plays.
This component works nicely, I am only having trouble with two issues:
- When I add Cue Points to the FLV it doesn't return the data in the event returned from Flash. I am trying to facilitate Captioning Support Embedded within the movie. (Added the following code to FAVideo.as to duplicate the cuepoint object)
static var refCount;
private function duplicate(cuePoint:Object):Object { var obj:Object = new Object(); obj["blah"] = "test"; if ( refCount == undefined) { refCount = 0; } refCount++; if ( refCount > 4 ) { refCount--; return;
} if ( typeof(cuePoint) == "object" ) { for ( var prop in cuePoint) { if ( typeof(cuePoint[prop]) != "object" ) { obj[prop] = cuePoint[prop]; } else { obj[prop] = duplicate(cuePoint[prop]); } } }
refCount--;
return obj;
}
and changed private function onNetStreamCuePoint(cuePoint:Object):Void { sendEvent('cuePoint', duplicate(cuePoint)); }
- When I try to open the ".fla" file to try to modify the cuepoints returned event it tells me unsupported version. I have tried using Flash MX Pro, Flash MX 2004 Pro, Flash 8 Pro. All of these have the same results. (downloaded demo of CS3 and it opens and works)
- I would also like to know if there is an easy way to embed this component as an embed tag by itself. I want users to be able to view the videos on my page with captioning and then be able to have a simple embed tag they can place into there pages to contain the video and apply any settings i may want to apply.
Michael Schmidt 10:07 07 September 2007 (PDT)
Problem with FireFox
In IE, when I hide the DIV container and then unhide it, the video continues from where it left off. In FireFox it starts the video from the beginning and it reloads the file from the server so I cannot use seek to get back to where I was. I tried using display:none and visibility:false and they both do the same thing.
This is a real problem since I need to cover the video at different times. I have discovered that if I just put something over the video without hiding the div then the video shows through whatever is on top of it.
Any ideas on how to get around this problem?
mchahn 10:55, 8 Sep 2007 (PDT)
Firefox
mchahn, What version of Firefox you used? I use mp3/20071127 Firefox/2.0.0.11 - no problems
Streaming?
No RTMP streaming support? Is there any documentation?
--Adam Leckron 07:11, 1 Feb 2008 (PST)
No Video, Just Audio... sometimes
So I'm having this problem where the video will play... without the video portion. It just plays the audio. This has nothing to do with security issues as all the local settings have been set. It's just playing without the video part. Any ideas? Thanks.
+dk
--Derek Kinsman 15:14, 6 March 2008 (EST)
Drive Favideo with javascript
Hi all,
I'm seeking howtos to use javascripts commands to drive Favideo but all i found are the commands we can read in the html source code of the zip file.
I would like to start/stop the player when users lunch another player instance in a fullscreen window (Thx to the amazing Shadowbox script because the favideo don't use the fullscreen mode :uglllll: or i don't found yet how to too !!) but i must understand the javascript code in the examples given but it is not always so simple.
My problem is i don't know which variables are available and which one i can use with javascript and i don't know javascript enought. Where can we found all the parameters we can modify on fly ?
Like the very good Jeroen Wijering FLV player, i thought it was possible and easy to make it working...
So, if i have to reopen the flash sources to seek all variables i prefer to use another one :( and any way, i can no longuer use again a new demo trial.
PLZ help, thx
Can I suggest this is renamed from FAVideo to FVideo
Would it not be more appropriate to rename this to FVideo as the component DOES NOT WORK in ASP.NET (or in a <FORM> tag which the content of ASP.NET pages reside in).
Alternatively, you could fix this bug and rename to FAWIFTVideo (for Flash-Ajax-Works-In-Form-Tag Video) which would allow it to be used in the most abundant Ajax development platform.
If you do any web development STEER CLEAR of this component that is evidently unmaintained!
change the look of the player
hello, I don't understand how to change the API. If I want to use an other color How do I do? thank's a lot for your help.
Bug when initializing playing video at reduced size (width/height)
To reproduce the bug, modify the SimpleDemo.html (that comes with FAvideo) and modify the first <script> tag in the <body> from:
playerOne = new FAVideo("divOne", "demo_video.flv",0,0,{ autoLoad:true, autoPlay:true});
to:
playerOne = new FAVideo("divOne", "demo_video.flv", 200, 150 ,{ autoLoad:true, autoPlay:true});
Then reload the web browser. The default size of the demo.video.flv is 320x240, when you specify an initial smaller video size the video displays the size of a postage stamp on screen. Try different width/heights less than 320x240 and you'll see the same problem. When using sizes larger than 320x240 everything performs as expected.
I tested this on: - Mac OS X 10.5.3 (Intel Core 2 Duo) - Web browsers: Safari 3.1.1 and Firefox 2.0.0.14 - Flash player 9,0,124,0
I am having the same issue. Anything under 320x240 will not size correctly.
SimpleDemo.html not working with IE 6
I have VMware with a fresh install of Windows XP Professional Version 2002 with SP2 and IE 6.0. According to http://www.macromedia.com/software/flash/about/ I have Adobe Flash Player 6,0,79,0
No video/warning or error message shows up using SimpleDemo.html from favideo_072707.zip with IE 6.0
Here is the generated HTML code added to SimpleDemo.html in IE 6:
<DIV class=FAVideo id=FAVideo_divOne_Container style="WIDTH: 320px; HEIGHT: 240px"> <OBJECT id=FAVideo_divOne type=application/x-shockwave-flash height="100%" width="100%" align=middle classid=clsid:d27cdb6e-ae6d-11cf-96b8-444553540000 name=FAVideo_divOne> <PARAM NAME="_cx" VALUE="8467"> <PARAM NAME="_cy" VALUE="6350"> <PARAM NAME="FlashVars" VALUE="8467"> <PARAM NAME="Movie" VALUE="playerProductInstall.swf">
<PARAM NAME="Src" VALUE="playerProductInstall.swf">
<PARAM NAME="WMode" VALUE="Window"> <PARAM NAME="Play" VALUE="-1"> <PARAM NAME="Loop" VALUE="-1"> <PARAM NAME="Quality" VALUE="High"> <PARAM NAME="SAlign" VALUE=""> <PARAM NAME="Menu" VALUE="-1"> <PARAM NAME="Base" VALUE=""> <PARAM NAME="AllowScriptAccess" VALUE="always"> <PARAM NAME="Scale" VALUE="ShowAll"> <PARAM NAME="DeviceFont" VALUE="0"> <PARAM NAME="EmbedMovie" VALUE="0"> <PARAM NAME="BGColor" VALUE="000000"> <PARAM NAME="SWRemote" VALUE=""> </OBJECT> </DIV>
It appears that it's looking for the "playerProductInstall.swf" which does not come with FAVideo. Is there anyway to have that file hosted by Adobe.com using an absolute URL or would that generate a security warning?
While I'm on that idea, wouldn't it be great if Adobe.com hosted the FAVideo.swf as well, that way it could be updated and cached by web browsers (the same way that Yahoo and Google are hosting javascript frameworks)?
Doing that would allow more web developers to embed flash video players in their web sites and help Adobe extend their Flash video platform.
Thanks!
HTML5 media API
The current working draft of the HTML5 standard adds a <video> and <audio> tag along with a javascript HTMLMediaElement API which is very similar to the FAVideo API.
The working draft can be found at http://www.whatwg.org/specs/web-apps/current-work/#media
There are only 5 methods:
load() play() pause() addCueRange(...) removeCueRange(....)
along with 14 settable attributes/properties:
DOMString src /*** Playback State ***/ float currentTime float defaultPlaybackRate float playbackRate; boolean autoplay; attribute float start; /*** Looping ***/ float end; float loopStart; float loopEnd; unsigned long playCount; unsigned long currentLoop; /*** Controls ***/ boolean controls float volume boolean muted
And 23 events to listen for.
I would like to recommend that the Adobe FAVideo player adopt the HTMLMediaElement API, this would allow for standard interface to web video players and ease of use for developers and end-users.
Also this would mean that the documentation is already written and there are many examples available on the web.
FAVideo could always add to the API with its specific features. It would only require a partial re-write of FAVideo.JS. FAVideo.swf and the Flash detection would not have to change at all.
This would be a great opportunity to show Adobe's commitment to the standards process and help make life easier for web developers who want to implement video in the web pages.
Thank you.
Source Files For Skins
I want to use this componenent with a custom skin. If I understand this right, this component works with the skins of the Flash 8 Generation. Using CS3 I havent got the Source FLAs from Flash 8 to use as a Template. Any suggestions how to make this work with a Flash 9 skin, or where to obtain the source FLAs from Flash 8?
posted by Joachim Tillessen, tillessen(at)emjot.de
