Use flash video coponent in flex?
Hi
I want to use flash player video player feature.Please let me
know how to do this.
I need use the class fl.video.VideoEvent but it is not flex
libary.do I have to build swc file,what is the steps to do this.
Thanks
Mk
Hi Mk,
Emanuil Rusev has created an an easy to use, open source Flex
video player called FX Video. You can find the FX Video home page
here:
http://www.fxcomponents.com/?p=29
And the FX Video source here:
http://www.fxcomponents.com/src/fxvideo_0.92/
Thank you Emanuil!!!
Please take a look at the FX Video video player and see if it
provides the functionality that you need. If not, please post back
with detail on what further functionality you require.
Regarding
fl.video.VideoEvent,
Flex does have a similar event
mx.events.VideoEvent
The Flex VideoEvent is related to the Flex UI control
mx.controls.VideoDisplay.
VideoDisplay is pretty rudimentary. The FX Video video player cited
above uses both VideoDisplay and VideoEvent. If you are not
familiar with the Flex VideoDisplay control, you can find a
runnable example online in the Flex docs here:
http://livedocs.adobe.com/flex/3/langref/mx/controls/VideoDisplay.html#includeExamplesSumm ary
Please post back regarding whether the above answers your
question, and if you find it helpful :-)
Best regards,
g
Similar Messages
-
Using a video file in Flex ?
I've been trying to use one video file in my flex project but the problem here is that after giving the source location it's not showing anything except a black pane and the format of the video file is in .AVI.I'm using VideoDisplay class to show the video.
Any help on this guys...Just check it with the .flv files. If it works fine for them
then your code is fine and you have to search for your format or convert it in flv my any means.
with Regards,
Shardul Singh Bartwal -
MPG to FLV prob using Flash video encoder
I've been using the flash video encoder to convert videos to
FLV to put on websites.
Today I converted a MPG file to FLV.
The original MPG video worked fine, the FLV file played sound
but no picture....any ideas ?Hi,
I have this problem too - I have converted wma files and mpg4 to flv. The encoder does not error but when I play the FLV there is audio but no picture. I am using Windows XP. Is there a solution to this issue? -
Error message using Flash Video Converter
When trying to encode a simple mpeg file using Flash 8 Video
Converter I get an error message - as simple as that, no
explanation, just a "Encoding is not possible because an error
occurred".
I've also tried importing the mpg onto Flash's stage and
going through the steps of the "Progressive download from a web
server" - again, nothing happened, just an error message.
Any ideas, help, advice?
Thanks, Raf.ram66 wrote:
> When trying to encode a simple mpeg file using Flash 8
Video Converter I get an
> error message - as simple as that, no explanation, just
a "Encoding is not
> possible because an error occurred".
>
> I've also tried importing the mpg onto Flash's stage and
going through the
> steps of the "Progressive download from a web server" -
again, nothing
> happened, just an error message.
>
> Any ideas, help, advice?
>
meaning the file is not flash compatible.
Try to resample or another format.
Not all mpegs are compatible, they come with very large
variety
of compressions for video and audio while flash has very
particular
range, specified in help files.
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
Hi,
I am creating some custom controls whose interface is a bit
complicated (and hence would be far too much of an effort to create
using graphics.draw methods). So I tried building the user
interface as Flash 8 symbols. What I do is,
- Create the symbols in Flash 8
- Embed them in my Custom Control class
- Create instances of the embedded class as a SpriteAsset
object
- Add it to the childrens list of my control class so that it
is drawn
So far, so good.
The slight issue is that I also need to allow the user to
modify the custom control interface (line color, fill color etc.)
and I cant figure out how I can modify these properties on the
Flash Symbol through the SpriteAsset class.
Any ideas....The short answer is you can't do that. Flash 8 is
ActionScript 2 while Flex 2 is ActionScript 3. When ActionScript 2
is loaded into the Flash Player it is put into a separate virtual
machine than the ActionScript 3 code. This is how the Flash Player
maintains backward compatability. There isn't a way for the AS3
code to reach in and tinker with the AS2 code and vice-versa.
But all is not lost. You can use LocalConnection to
communicate between the two virtual machines. Check my blog,
there's an article about doing that:
Using
ActionScript 2 SWFs with Flex 2 -
Using Flash videos in Premiere
I would like to create a video in Flash, and then stick that video in between live video clips using Premiere. I don't feel like this is something out of the oridinary, but I'm not sure what settings I should use when exporting the Flash movie or the best settings to use whem importing that video into Premiere.
I don't have any pre-conceived ideas about how to do this, so I was wondering what other people woudl do if they wanted to do something like this. I am an open book.I would like to create a video in Flash, and then stick that video in between live video clips using Premiere. I don't feel like this is something out of the oridinary, but I'm not sure what settings I should use when exporting the Flash movie or the best settings to use whem importing that video into Premiere.
I don't have any pre-conceived ideas about how to do this, so I was wondering what other people woudl do if they wanted to do something like this. I am an open book. -
Use Flash CS3 component in Flex
As a bit of a n00b, this may be a stupid question...
If I were to get a component made for use with "Flash CS3",
once it's compiled to a swf & fla, is it entirely usable in
Flex [Builder] 3 ? Say I didn't want to re-skin it, and it was
fully programable via AS?
Is this a "it depends"? Is it a "absolutely, you just need
CS3 to compile it first"?
Thanks in advance,
AJ"GuinnessIsGoodness" <[email protected]>
wrote in message
news:gbe131$c20$[email protected]..
> As a bit of a n00b, this may be a stupid question...
>
> If I were to get a component made for use with "Flash
CS3", once it's
> compiled
> to a swf & fla, is it entirely usable in Flex
[Builder] 3 ? Say I didn't
> want
> to re-skin it, and it was fully programable via AS?
>
> Is this a "it depends"? Is it a "absolutely, you just
need CS3 to compile
> it
> first"?
I think you need to either use it as an as file or compile it
as a swc,
unless you want to load it into a swfloader.
HTH;
Amy -
Using flash debugger player with Flex application
I am building my first Flex app and have run into a problem that I can't figure out. When publishing a .swf in Flash I sometimes run the debugger to generate the swf. When I do so, I can view the swf through my browser (using the debugger version of flash player) and the exceptions that are thrown include a stack trace (complete with line numbers) of any error that occurred. I have tried running the debug compiled version of my swf from Flex and it does not show the line numbers.
Is there some way to do this? I have several thousand lines and the location of the error is tough to figure out becuase it is an instance where I am casting an event to the wrong type through my typed params for a function. So, for example, I am dispatching a MouseEvent but the listener function has a typed parameter of Event instead.
Can someone please point me in the right direction?
Thanks.Thanks for the feedback. Our debugger documentation definitely needs to be refreshed. The PPAPI debugger on Chrome is even more complex. I blocked some time out on my calendar for Friday to try and get these revised.
-
Going to youtube crashes my browser; going to youtube with noscript on, and allowing the videos, does the same - as does using google talk's built-in video chat. I assumed something was wrong with Flash, but checking via about:crashes gives me nothing. I downloaded the flash uninstaller from adobe's website but now, when I try to get flash again, the program crashes. Maybe something's wrong with my PC, not with Firefox...but I simply have no idea.
== This happened ==
Every time Firefox opened
== this morning I started up my computer after a supposed crash (although I suspect it was the Vista automatic updater/restarter cropping up while I was asleep). Skype's exe was corrupted and I had to reinstall; then FF wouldn't work with flash.As it turns out, Skype also crashes if I try to use video - so I'm forced to confront the possibility that the problem is actually with my PC, or the updates windows has just installed.
-
Using Flash Video Encoder Programmatically
Is there a way to use the Flash encoder programmatically from
Action Script or command line? I am looking at developing a batch
process that compiles a list of files to be encoded into FLV for
later consumption.As far as I know about FFMPEG, it does not encode using on2
vp6, which is the superior codec for flv. I too am looking for a
programmatic way of transcoding to flash using the on2 vp6 codec.
on2 has the Flix Engine SDK, which is quite expensive, but it
allows you to programmatically transcode using vp6.
If there is another product out there that can do this (at a
non-expensive cost) I would love to hear about it. -
How can I display Flash Videos without any Flex application decoration
I develop a flv video player with Flex3 and have problems to
get rid of the application decoration (frame, border and the like)
that is part of a standard Flex application. My video player is
200px x 200px and I only wanna see what the video shows, so that
the Flex application allocates 200px x 200px.
It is not clear to me if this can be reached through special
tags resp. attributes or if I have to do something in the CSS
area.copy and compile this one taken from www.theflexteam.com with
a couple of extra things, is that it?:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical" backgroundColor="#000000"
backgroundGradientColors="[#000000, #000000]">
<mx:Script>
<![CDATA[
private function playVideo():void
videoPod.play();
private function pauseVideo():void
videoPod.pause();
private function stopVideo():void
videoPod.stop();
]]>
</mx:Script>
<mx:VideoDisplay id="videoPod" source="
http://www.theflexteam.com/gfx/flvs/gorillaz_high.flv"
backgroundColor="#000000" backgroundAlpha="0"
shadowDistance="0" shadowDirection="center"
/>
<mx:ControlBar>
<mx:Button id="stopBtn" label="Stop"
click="stopVideo();"/>
<mx:Button id="playBtn" label="Play"
click="playVideo();"/>
<mx:Button id="pauseBtn" label="Pause"
click="pauseVideo();"/>
</mx:ControlBar>
</mx:Application>
/cujino -
Flash Video in flex Applications
I'm working on making a web cast template for my clients in
flex and I'd like to do the entire template in flex, however, I'm
not sure about the best way to go about importing flash video into
a flex application. Is it the same as flash 8? Does it include all
the automatic play controls that flash 8 offered?
The flv will be delivered via progressive download.Hi
Flash and J2me both can be use differently, not together till now. We can either use Flash or J2ME as a development tool.
Cheers,
Rohan Chandane -
.swf to .flv using Flash 8 Video Encoder
I have brought a .swf file in to Flash 8 Video Encoder to
convert to a .flv file, after Queue is completed the .flv file
doubles in size. I tried changing the "key frame placement" and
"Date rate" to bring the file down but the .flv file doesn't go
down that much. So what am I missing? I want a .swf 8,166 KB to be
a .flv about half that size, is this possible? If so, am I using
the wrong program?
vickywell that's the thing - the metadata never traces out if the
video was encoded with flash video encoder, but that code would
work fine with video encoded with sorenson squeeze.
think I have worked it out now though: in order to pause the
video at start I am calling NetStream.seek(0) when I receive
"NetStream.play.start".
For some reason when I do this with flvs encoded using flash
video encoder, it stops the onMetaData event from firing - but
works fine with other flvs! weird... shall have to find another way
of pausing the video at the start I guess.
thanks for the reply though -
Flash Video Cue Points don't work
I used the template sample from Adobe named :Flash video
template: Showcase website for personal video...I followed all the
steps sugested. I used Flash Video Encoder, created the cue points,
worte down the location of those cue points, which I wrote exactly
in the Settings.XML file for each chapter....etc. I guarantee you
that I did it all as sugested...In fact several months ago, it
worked for another project and another videos that I had.
But this time, when I am testing it, the video appears in the
screen all right but when I select a chapter for the section of
that video, an error appears like this :
VideoError: 1003: Invalid seek
at fl.video::VideoPlayer/seek()
at fl.video::FLVPlayback/seek()
at
Video_fla::MainTimeline/chapterClickHandler()[Video_fla.MainTimeline::frame1:184]
VideoError: 1003: Invalid seek
at fl.video::VideoPlayer/seek()
at fl.video::FLVPlayback/seek()
at
Video_fla::MainTimeline/chapterClickHandler()[Video_fla.MainTimeline::frame1:184]
My Settings file has the correspondent locations for each cue
point, like this :
<?xml version="1.0" encoding="utf-8"?>
<showcase>
<!-- Video section #1: Safety Fair 2008 -->
<section>
<title>Safety Fair 2008</title>
<video>video/MOPS_safetyFair.flv</video>
<cuepoints>
<cuepoint>
<title>Fire Department 1</title>
<time>00:00:13.291</time>
<image>img/Gath1.png</image>
<caption>What to do in case of a fire at
home...</caption>
</cuepoint>
<cuepoint>
<title>Fire Department 2</title>
<time>00:01:39.686</time>
<image>img/Poison Center.png</image>
<caption>How to escape from a fire at
home</caption>
</cuepoint>
<cuepoint>
<title>Crime Stoppers</title>
<time>00:01:51.869</time>
<image>img/TxDepTra.png</image>
<caption>Buckle up...</caption>
</cuepoint>
<cuepoint>
<title>Texas Dep of Transportation</title>
<time>00:01:51.869</time>
<image>img/Poison Center.png</image>
<caption>Assistance by phone in case of
emergency...</caption>
</cuepoint>
<cuepoint>
<title>Poison Center</title>
<time>00:02:02.946</time>
<image>img/Gathering3.png</image>
<caption>Mops Gathering at the FLC Picnic
area</caption>
</cuepoint>
<cuepoint>
<title>Fellowship</title>
<time>00:02:09.591</time>
<image>img/Kids-with-Jenny.png</image>
<caption>Nice visit and gathering w/our
children</caption>
</cuepoint>
</cuepoints>
</section>
I have my file structure right as well in each folder IMG and
VIDEO.
What does this error means and how can I correct the
problem.....I have been expending hours trying different ways and
still can't get it to work.
Thanks,
Ednayou don't need a cuepoint to detect the end of your video. use:
var lo:Object = {};
lo.complete = function(eObj:Object):Void {
next_btn._visible=true;
flv_pb.addEventListener("complete", lo); // <- use the instance name of your flvpb component -
Links to and from a Flash video?
(Sorry for the long post, trying to explain in detail what
I'm looking for ...)
Maybe you guys can tell me if this is possible using the
current version of Flash (I will not be doing this myself, but I
need to know if Flash is the way to go).
1) Embed several videos/audio files in an HTML page, with the
usual playback controls.
2) Place links or form elements (buttons) in the page *to*
those videos, allowing (via JavaScript/DOM) the user to
a) play, pause and jump to a specific (SMPTE) position in a
video.
b) loop a section of the video (by giving two positions and a
loop command)
c) change audio volume.
(I know this is normally done with controls in the video
player, but I need interaction with the page.)
3) Have links *from* the videos to the page/DOM - i.e., when
the video is running, JavaScript events should be sent to the page
to hide/load/update content - either automatically or user-driven
(by clicking on the embedded video at a certain time - if possible,
with hotspots so multiple options can be triggered; similar to a
DVD menu).
I'd like to do the same with audio. So I am basically looking
for a mechanism to link to and from real-time content.
Beyond the "Yup, possible!" I expect to hear ;) I have
another question regarding workflow.
The scenario for producing this stuff (e-learning)
will/should be something like this:
- Developer A builds a nice little audio/video player we can
embed in our pages. This will be used to show/play our content.
- Person B records video and audio, does a little post
production, delivers media/files (DV, MP3).
- Person C batch-converts the videos to FLV format, but
doesn't (have to) do any creative work.
- Person D with some HTML/JavaScript knowledge and a
stopwatch :) builds the page, embeds the player(s) and sets the
cues that will jump to certain positions. HTML pages, SWF, FLV and
MP3 files are uploaded to a plain-vanilla HTTP server.
Is this a realistic scenario? I.e., can we buy (or have
someone develop) a player so that no tinkering with Flash itself is
required anymore once we have established this workflow?
I would appreciate your comments. Also, if the above is
possible, I'd be grateful for links to showcase sites.
Thank you.In theory - yup!
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15683
Html pages can communicate to the flash file using
javascript. The fla page can communicate to the FLV file using
actionscript. So in theory you can send javascript commands to
flash from the html page, and then have that set off some
actionscript to control the movie.
Can I be Person C? Sounds like easy money!
Good luck. Check out the forums at www.gotoandlearn.com -
that site has a lot of creative people with a very high knowledge
of using Flash video.
Maybe you are looking for
-
How can i copy videos from my computer to iphone 4 using itunes 10
how can i copy videos from my computer to iphone 4 using itunes 10
-
Association Wizard; DB Constraints, Composition, & Cascades
A couple of clarifications please: 1. When would I want (ie 'be better off) with a composite association (fk) that is NOT in the database and only at he bc4j level. 2. If I do want the fk in the database, how can I specify (page 3 of 3 of the wizard)
-
I spilled diet fanta lemon on my macbook pro, it turns on then off
I, stupidly, spilled fanta lemon on a coffee table which flowed over onto my MacBook pro which was powered on. I unplugged it and powered it down, dried it off removed my hard shell case andl eft if to air out for 3 days. When I came back to it and p
-
Dropped ipod touch and wont come on
i dropped my ipod touch and it will not power up and when i put it on the dock the apple logo shows up for a minute or two and shut s off,it only powers up when on the dock
-
Can we change VI properties without actually opening it?
Hi I am making executable out of my VI. I wished that the window should close once we exit the program through exit button. Hence I used "Quit Labview" function from Application Control pallette. At the same time inadvertantly I have set the VI prope