Hi Amar,

Thanks for the reply

I am trying to launch avi file from my application in the an application
which is register as default application to launch that file( Could be VLC
or FFMPEG)
Problem that i am facing is that if my system has Window media player as
default application to launch avi file then avi file are launche properly in
it. But if system has VLC player as a degault application to launch avi
files then my appliation breaks i.e. it doesnt launch selected avi file.

i have use NativeProcess as well as File.openWithDefaultAppliation method to
open avi file in dafault application but with negative result.
would like to know is there something that i am missing.


code
////////////////////////////////////////////////////////////////////////////////////

videoClickHandler(event:ListEvent):void
{
        var $fileToLaunch:File = new File();

        try
        {
            $fileToLaunch =
File.applicationDirectory.resolvePath(_videoList[videoDetails.selectedIndex].nativePath);

            $fileToLaunch.load();

            $fileToLaunch.downloaded = true;

            $fileToLaunch.openWithDefaultApplication();
        }
        catch ( err:Error )
        {
            trace(err.name + " : "+ err.message );
        }
}


////////////////////////////////////////////////////////////////////////////////////
-- 
----------------------
Regards
Gaurav Patel

On 27 September 2011 14:28, Amar Shukla <[email protected]> wrote:

> Hi Gaurav,
>
> Please provide more details. Which program you are trying to launch to
> play this avi file for example ffmpeg or vlc ??
> I am assuming that you already know how to work with NativeProcess
> API. Please ensure that your plateform supports NativeProcess using
> something like -
>
> private function isNPSupported(): Boolean
> {
>    if (NativeProcess.isSupported)
>    {
>        return true
>    }
>    else
>    {
>        return false
>    }
> }
>
> Thanks & Regards!
> Amar Shukla
>
> On Sep 22, 10:49 pm, Gaurav Patel <[email protected]> wrote:
> > Hi,
> >
> > I want to launch a .avi file from my AIR application.
> >
> > I am using AIR 2.0 and tried using
> >                     - File.openWithDefaultApplication method.
> >                     - NativeProcess Class
> > but with no success.
> >
> > It would be very appreciative for your help to provide me pointer for
> this
> > solution.
> > Thanks in advance.
> >
> > --
> > ----------------------
> > Regards
> > Gaurav Patel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to