I know I can include a swf in an Adobe AIR application, and communicate between the two with localConnection, but is there a better way to have the swf communicate with the application containing it?
You can embed the SWF in the AIR application and instantiate the classes inside the SWF within AIR application.
Embedding with Flash
Embedding Assets in AS3
Related
Hello I have to play swf file in UIwebview. I did r&d on it. But didn't get the solution for it.I know ios does not support swf file.Also safari support it in mac not in iphone.Is there a single alternate way to play swf file in ios8? Its mandatory for me. Thanks in advance
Flash is never supported on iOS devices , Steve jobs Decision
No you can't. Playing swf file is strictly prohibited in iOS. Still this one might help you,
UIWebView html file with swf load external link, but internal
I have used Streaming Media and successfully played m3u8 URLs in windows Phone. But, now I am struggling with m3u8 in video tag using WinJS. Can I some how use those DLL's for playing M3U8 in html5 in Windows Phone 8.1?
We are currently in the same boat; we have WinJS apps which require m3u8 video's to be played. The Streaming Media is written in C# and therefore does not work in WinJS.
I'm currently investigating to see if it's possible to write a 'wrapper', that is, create a Windows Runtime Library as a proxy between WinJS and C#. This, in basic, is working, however I'm not sure how to access the video-element of the C# video-player (if this is even possible at all...).
I used:
http://www.ronaldwidha.net/2012/05/10/winrt-calling-c-csharp-class-libraries-from-winjs-javascript/
as a starting point.
So any solution would be welcome!
Update: as I suspected, it's not possible to use a C# DLL with a UI component (say, the player's view) to display in Javascript.
See also: Passing UI elements to and from Windows Runtime Component in different environments??
I have a requirement where by I need to attach audio/video media submitted as binary files to be embedded into pdfs that are residing on the server. BTW, the audio/video binary is coming from mobile App.
Is there a pdf library out there that allows for embedding Audio/Video in a pdf? Also, I need these media embedded in the simplest form so that when this pdf containing the media is opened on a target device, there should be no need for installing additional media decoders.
My server side environment is in .Net/C# so would need the pdf library to be compatible with .Net
Almost any PDF for .net supports movie annotations, iTextSharp (open source), TallPDF, xfinium.pdf (i work for this company), pdf4net, docotic.pdf, just to name a few.
The thing is that the media files are embedded as they are (converting video is not their job) and the target machine must have the required codecs in order to play the media. If you have control over the media format, you can choose a format that is supported by many platforms.
In which programming languages can we develop applications for adobe air ? java ?
You can use HTML & AJAX (HTML is a markup language and AJAX utilises JavaScript) or you can use ActionScript from within Adobe Flash and Adobe Flex.
Adobe AIR Developer Centre
ActionScript
http://www.adobe.com/devnet/actionscript/
Air is in fact a "non-web web browser". IOW, the runtime has WebKit (HTML+SVG+JavaScript) + Flash (ActionScript 3 + Flex library); but instead of an URL field to type an address, it opens a downloaded package.
So, to answer your question:
you can write as a modern Ajax-Heavy web app; with the advantage of not having to support a variety of browsers.
you can write Flash applications, either with or without Flex; which is a nice GUI library.
The best way to develop RIA application is Adobe Flex
You can see some RIA application in Tour de Flex
The Adobe Air introductory documentation and samples seem to separate Air development into 3 different categories:
HTML/Ajax
Flash
Flex
I've read the tutorials and examined some of the code, but I'm not totally clear what the differences between them are, and more importantly why you would choose one approach over the other. Sorry for asking such a basic question (please bear in mind I come from a Windows development background).
I will answer this myself since I've done the research. Here's a summary:
HTML/Ajax, Flash, and Flex are
different approaches to developing
web apps. These technologies can be
combined in a single web app.
Adobe AIR is a runtime which allows you to take those web technologies and run them as a desktop app instead of in the browser. You can combine them in the same app.
Flash is a runtime that was originally created to provide a rich UI to browser based apps. AIR brings the Flash runtime to desktop apps.
Flash runs compiled SWF files and is scripted via ActionScript. Flex is a tool
(SDK, MXML schema for defining UI, etc), which makes it easier to create apps that run on the Flash runtime (it generates SWF files).
Further details see: Adobe AIR FAQ, Adobe AIR (Wikipedia), Adobe Flash (Wikipedia), Adobe Flex (Wikipedia).
As for deciding which approach(es) should be used when developing for AIR, I think that should be based on the experience and preferences of the developers working on it. I don't think Adobe gives any guidance here, because their goal is simply to provide the same options for desktop developers that web developers already have.
I haven't used Flex myself, but I know that you can use it to interact with HTML elements, rather than providing the interface itself via Flash. I'm not clear on what Flash vs. Flex is though.