Hi!!!!!! I have made a video player in Flex project ......In source of video display I have added the path of my swf file which is as follows:
%26lt;mx:VideoDisplay id=''player'' source=''C:\Documents and Settings\sachin\Desktop\absolute-values.swf''
maintainAspectRatio=''true''
width=''450'' height=''300'' autoPlay=''false''
playheadUpdate=''videoDisplay_playheadUpdate(event)?;''/%26gt;
But when I am clicking on Play button ,I am getting following error:
Error: 1000: Unable to make connection to server or to find FLV on server.
at mx.controls.videoClasses::VideoPlayer/play()[C:\autobuild\3.2.0\frameworks\proj ects\framework\s rc\mx\controls\videoClasses\VideoPlayer.as:1327]
at mx.controls::VideoDisplay/play()[C:\autobuild\3.2.0\frameworks\projects\framewo rk\s?rc\mx\controls\VideoDisplay.as:1464]
at basicvideoplayer/___basicvideoplayer_Button1_click()[C:\Documents and Settings\sachin\video player\src\basicvideoplayer.mxml:44]
Can anyone help me in removing this error?Kindly give me a?code?to Play,Pause and stop my swf file.
Probably the path to the FLV file cannot be resolved.
If your video MXML component is in a different directory than the main MXML file, you may need to have the path to the FLV relative to the main MXML file, not relative to the video MXML component, because it all gets compiled into one SWF file.
If this post answers your question or helps, please mark it as such.
How to play swf file in flex builder3?If you plan on publishing the project to the internet, you can't use c:\harddrive\my.flv.
If you specifty the source as filename only, next to the main.swf.?It will work on the harddrive and the internet.
GRag and Mesh are correct. You cannot use Flex to access a file on a user's hard drive, which is where your path is pointing.
Instead, create a folder within your Flex project, under the ''src'' folder (example: src/assets/videos), and put the SWF there. Change the path in your code to point to the new location, like ''assets/videos/myVideoFile.swf''. Note that you don't refer to the src folder; it is the ''root'' of your application, and when you deploy all your files to your web server, you will be copying the folders you created to the root folder of your web server. So, all the paths will remain consistent. Flex will attempt to find ''assets/videos/myVideoFile.swf'', starting from the ''root'', or location, of the application itself.
VideoDisplay accepts only FLV format.
For SWF, you can opt for SWFLoader or Loader. For more, please refer to livedocs.
D'oh missed that minor point!
thanks for ur reply
hi,
i am making desktop application using flex builder3 and adobeAIR ........
In my project ,I want to play videos into a video player....
All my files are on?webserver in mysql database ..........Can anyone tell me how can I retrieve these video files and play them in this desktop application.
kindly ,give code for this,if u have any.
hi,
i am making desktop application using flex builder3 and adobeAIR ........
In my project ,I want to play videos into a video player....
All my files are on?webserver in mysql database ..........Can anyone tell me how can I retrieve these video files and play them in this desktop application.
kindly ,give code for this,if u have any.
hi,
i am making desktop application using flex builder3 and adobeAIR ........
In my project ,I want to play videos into a video player....
All my files are on?webserver in mysql database ..........Can anyone tell me how can I retrieve these video files and play them in this desktop application.
kindly ,give code for this,if u have any.
No comments:
Post a Comment