I am looking to support playing DRM into custom player which is built using NDK C++ library as plugin which decodes, converts and then perform some image processing before final presentation. In this scenario, what is the best way to support DRM (I will use NDK's Crypto and DRM interfaces) given that documentation hints at only supporting MPEG-DASH format, which is not natively supported.
Clarify if any of my assumptions are incorrect or there are simple libraries (like libdash) which can solve the problem. Extreme solution in ExoPlayer but current infrastructure is built using C++ and NDK interface to leverage hardware decoders, which excludes that as an option.
If your image processing requires access to the raw image then unfortunately you won't (or you shouldn't!) be able to do this as encrypted video is designed to play via a secure media path which does not allow access to the raw video.
Related
I'm developing an embedded DLNA audio media renderer in C++ which will capture audio stream and use it as a source for LED controller to create visual effects.
Currently I have chosen gupnp library. Its documentation claims that it can generate C code "scaffold" if I feed it with a correct service description XML file.
I read DLNA specifications documentation but it's not easy to put all the absolute minimal requirements together. For now, I know only that I'll need ConnectionManager, RenderingControl and maybe AVTransport service but I'm not sure which methods will be absolutely required to allow the device to receive mp3/aac/wav audio streams from any DLNA media server/radio streamer etc. out there.
I'll be grateful for information where to find such a template or instructions for building a DLNA compatible XML audio renderer template (MediaRenderer:1 should work fine) with minimum required functions and variables to feed into UPNP generator tools (specifically, gupnp).
I have an app that I have written using Xamarin forms. I wanted to know if there is any media
class I could use to record audio as well as stream audio from a server. All articles I have found on the web are platform specific so far.
thanks in advance
There currently isn't any audio support in Xamarin.Forms. You will need to write platform specific code for handling the audio and use the XF DependencyService (or something similar) to call it from your shared code.
I have written an NPAPI browser plug-in (using Firebreath) that Unity uses
to access a Kinect camera. I can retrieve skeleton data from Unity through JavaScript easily since it isn't too big, but the problem is in retrieving color image data.
Is it possible to send a native texture pointer (GetNativeTexturePtr)
from Unity through JavaScript into the C++ plug-in so that it can write the texture data directly? (tested in standalone version and it works)
Any other suggestions on how to transfer image data from browser plug-ins to Unity web player are very welcome.
Unfortunately NPAPI plugins do not contain any mechanisms for exchanging binary data with the page. Probably the most performant way of doing that that I know of would be to base64 encode it and send it as part of a string.
Note that strings in NPAPI are UTF8.
The only way to get anything from Unity in your plugin would be to use the javascript interface, so you can use whatever methods you can find and then pass the data into your plugin; however, note that Unity is most likely running in another process, so you probably can't use any direct memory pointers that you might get from it.
I understand that with MonoTouch and MonoDroid that you develop against the native UI layer, which is a good thing. However, I was wondering if there were any cross platform Mono API layers for features such as camera, location, storage, notifications etc... ?
PhoneGap supplies a JavaScript a abstraction layer that does just this. Is there a Mono equivalent?
There is an official monomobile api project from xamarin - that provides camera, contacts and gps abstractions, plus there are discussions (but not firm roadmaps) about extending this further. See http://blog.xamarin.com/2011/11/22/introducing-the-xamarin-mobile-api/ for an intro
Beyond that:
some api's exist cross platform from the start - eg isolated storage can be used on all platforms.
I've seen a few other GitHub projects started - eg chrisntr's mono extensions
I've written a few abstractions (e.g. File, gps, camera) in http://GitHub.com/slodge/mvvmcross
I recently came across MonoDroid.Dialog. I have yet to use it, but if it is as easy as MonoTouch.Dialog to do tables then I will be very happy with it.
I'm trying to develop the application based on native audio in gingerbread,
I executed the sample native audio program under the NDK ,but I'm not clear with
that. I need some example to learn how to use the openSL library.
Can any one suggest an example of open SL|ES based code ?
OpenSL ES documentation and that sample app are the best resources that are out there. Not to say that they're great, but they are definitely sufficient provided that you have the knowledge of object-oriented programming and audio. If you don't, those are the things you should look into first.