My suspicion is that there are some serious challenges here.

First, getting the operating system to launch the air application based on 
clicking on a link. I think most operating systems map http links to the 
default browser, mailto links to the default a mail client, etc. There may be a 
way to add new mappings, but I don't know what it is. Unless you can find a way 
for the air application to tell the operating system how to map a link to your 
air application, I don't see how this would work. Presumably, you would need 
something unique about the link which the operating system would use for this 
purpose.

Second, if you did get the operating system to launch the application, it would 
then need some way to pass in the video id to the launched application. I'm not 
sure if there is a way to set up air applications so they receive commandline 
parameters, but I think you would need that, or something like that.

What seems much more likely to work is giving people a text input field where 
they can paste in the URL, and parsing it to extract the video id which the air 
application could then display. Needless to say, it would probably be easiest 
to just give people a video id input field, and include a line in your email 
along these lines: "if you already have the video player application installed, 
enter the following id on the video retrieval screen: idNumber."



----- Original Message ----
From: rin_boating <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, July 15, 2008 10:20:03 AM
Subject: [flexcoders] Passing variables into your AIR application from a 
website?


Pardon the cross post

Hello everyone,

I'm hoping someone can advise me on the possibilities of this 
functionality:

I have an AIR application that is used to play videos. I'm storing 
the videos remotely and then calling them through several methods 
defined in my application. The videos are also all located on my 
website for quick access (in the event that a person does not have 
the AIR application installed). Right now, inside my AIR application, 
users can pick their video, and then e-mail it to themselves, their 
friends, etc. When a user e-mails it to a friend, I am simply sending 
the user a link to my website with the appropriate video. I need to 
know if the following things are possible (and to what extent):

1. Is it possible to link directly from any HTML compliant area to my 
AIR application (if the user has my AIR application downloaded), with 
a video directly tied in that link? (e.g. through like a URL 
parameter)

Purpose: This would allow my users to click on 
http://www.mywebsit e.com/my_ Air_app_extensio n/user_video_ id
Which in turn would allow my users to start up my AIR application 
with their video selected instead of starting at the default Welcome 
page of my AIR application.

If you have any other thoughts on how to accomplish this 
functionality, please advise.

Thank you 

    


      

Reply via email to