Adobe Air Mobile: offline playback of DRM videos - actionscript-3

I have videos with DRM using flash Access. I would like to be able to play these videos on mobile devices using Air when offline. It is possible to play streaming DRM content on mobile devices but I'm unsure how to save a voucher for offline playback. Since DRMManager is not included in Air Mobile, is this possible and how would it be done?

If DRMManager is not available in the mobile runtime then there is no way to use it, simple as that. Welcome to the perils of coding in a scripting language, that is, being bound to the whims of the people who control the runtime source code.

Related

Full functional audio player using Web Audio API?

I'm carrying out a feasibility study to create an audio player for windows phone. I could go for native implementation or web view based implementation.
I'm wondering weather Web Audio API could full-fill the following requirements.
Music Playback with high quality? Will there a huge difference between native playback quality vs Web Audio playback quality ?
Web Audio API support for Equalizer ?
What would your choice be (Native or Web based) ?
Thanks.
Does windows phone support WebAudio? Certainly Internet Explorer does not (yet).
But I think the answer to your two questions would be yes, if WebAudio were implemented correctly. You have to create your own equalizer, but that's not hard.
yes this is possible, instead web audio provides higher quality playback to your music files, If you need full functional player, then you can get it here
https://github.com/davinder17s/unplay
Demo:
https://davinder17s.github.io/unplay/

Optimizing video playback in AIR for iOS

Developing an AIR for iOS app that involves video playback. Are there any best practices for optimizing video content for use in AIR applications?
Best route for video through AIR on iOS is to use an h.264 encoded video. These will be hardware accelerated and be better on battery than FLV (the other usual type for Flash).
The problem, of course, is that most h.264 videos cannot be played back using standard Flash video players on iOS. To get around that, you'll want to try one of two things:
Use StageWebView. This will open the video in the standard iOS video player, which is purpose-built to play h.264 videos. The downside here is you have absolutely no control over the video other than unloading the StageWebView. You also have no control over the GUI and the video will display over the entire application and can be difficult to position in Flex.
Use StageVideo which will allow for hardware accelerated h.264 videos and use the built in video playback mechanisms. It works fantastically, you have full control over your video, and it is just the video, so you can skin it as you see fit. The only downside is this displays the exact opposite of StageWebView and displays under your app. You will have to create a mask to see the video.
It's unfortunate that the two best options for playing video on iOS do not reside in the Display List, but that is what we have to deal with.
Hopefully that helps.
You can use component FPVideoPlayer from ane library FPNativeUI, which displays video over display list: http://www.youtube.com/watch?v=G5IdHnms2Dc. http://flashpress.ru/blog/ane/native-ui/?lang=en

does as3 require the flash player

I am helping to build a video based website. My client wants the website to be viewable on ipads/iphones. Therefore, I absolutely can not require the flash viewer.
One of my developers wants to use AS3 for scripting special features in our player. If AS3 scripting is used, does that mean my users must have the flash plugin?
Thanks!
If it's just about playing videos, then html5 based option would be great. But if the requirement is more complicated and the developer is more comfortable with AS3, then you can have an AIR app re-packaged as iOS app (that's a supported workflow from Adobe).
Yes, the users would have to have the Flash Player installed to view an AS3 flash file (.swf).
But your developers might implement an html5 alternative of the video player for iOS that doesn't require flash (which probably will be missing some of those special features) so the website might still be viewable on iOS devices.
My advice would be to simply ask them if it will work on iPad and iPhone :-)

jQuery Mobile video website, convert to PhoneGap app with videos on SD card instead of streamed

I have a jQuery Mobile website I created for a friend/client of mine. It only has 6 pages or so (2 of them are dialog windows). The site has HTML5 video with fallback for flash support via the videojs library. All videos are encoded properly in mp4, ogv (theora), and webm and so far play on every device I have used.
My problem lies bandwidth, the purpose of the program really needs to be an application because these are informational videos that may need to be viewed at any time, even with no web access (web access is required for first login to verify credentials).
I was left with 3 solutions, try writing native apps for all the platforms myself in their native languages, use Sencha Touch (which I am comfortable enough with extJS to do), or taking my existing jquery mobile app that is 100% functional including log-in and some backend package management to assign users a package of videos (there are multiple packages each with between 8-20 videos), and follow the jQuery Mobile tutorial for getting your app ready for PhoneGap, I believe its only enabling two settings, and both are to enable "cross-domain" requests, since my current web app would be running as localhost, it would see the scripts as external pages.
My main question/problem is for one, I have never used PhoneGap; aside from their Hello World android tutorial, and I know there are other all-in-one frameworks out there now: PhoneGap, Titanium, Corona, Adobe Flex (which I am installing while writing this tutorial, to see what it has to offer. If it has features like encoding videos automatically for the target device (video resolution changing), or even has local video playback features at all that may work.
Does anyone know which of the current frameworks have the ability to install a set of videos to the sdcard, (totaling around 6mb per install), and play them natively (by that i mean, in the devices native player, not inline inside of a webview). Which on android phones anyways, my current videojs based player plays the files natively in everything I have tried it on.
I just need a push in the right direction, if there is a PhoneGap plugin that I don't know about that allows videos to be played from the sd card, that would be terrific. Although I am not very happy with the speed of the android and blackberry webview controls. So something that uses 100% native controls would be great. I hope you guys can come up with some ideas, you can see the current app in action at m.yourvideobenefits.com email:abc#tool.com password: demo
You should view it from your phone if you want to see it properly, but if you do not have a smart phone; keep in mind that when viewing this page certain desktop browsers, the videos become their actual size after they are through loading. This is because i have autoload="true" in the video tag (which is ignored on most phones, but believe it or not, setting autoload="true" is what actually allowed the videos to not play inline on certain devices. A bug on the device, I am sure...but without this tag the videos played inline on iPhone 4 with the latest iOS version.
You could do it very easily with phonegap; you already have your web page, so it would be much less work, probably.
You could get the videos from inside your apps bundle in ios, and then it wouldn't be hard to select the one with the best resolution for the device being used. You could also download the videos at the perfect format and resolution the first time your app plays from your server using the file api. That convined with the storage api is nice for actualizations.
There's a plugin I use for android, because video tag is sometimes bugged or doesn't work at all in older versions, https://github.com/phonegap/phonegap-plugins/tree/master/Android/VideoPlayer.
It only plays from web or sdcard, but that's rarely too bad.
I can't help you with black berry, but I'm pretty sure there must be a way of doing it. And, anyway, appcelerator doesn't support it yet, so you would probably had to do it natively. Even if there isn't a plugin for black berry, you'd probably have to chose between native developement and html5 player inside phonegap. I won't give you my opinion about it here, for I'm not the one to give it and Stack Overflow says I shouln'd give it anyway.

Embed windows media player in HTML web page with playlist feature

I want to embed an audio player into my web page with a playlist feature. How can I do this?
A simple, clean way of doing it via Jquery (one of many options out there): http://www.happyworm.com/jquery/jplayer/
The (somewhat clunky) Microsoft way of doing it: http://www.mediacollege.com/video/format/windows-media/streaming/embed.html
Using an audio player that's not proprietary is good UI practice. For instance, Flash isn't available on all user's computers. WMV (which the windows example uses) is a very windows-centric format, and may not be supported to some linux or mac users. Many people don't run quick time, so the AAC format might not be a great format to embed.
You should probably use Windows Media Metafiles.