문제

OpenMax has a concept called "Data Sink".

Specification says about them:

Its data locator which identifies where the data resides. Possible locators include:
• URIs (such as a filename)
• Memory addresses
• I/O devices
• Output Mixes
• Cameras

Here is some sample code from specification:

/* Setup the data sink structure */
uri.locatorType = XA_DATALOCATOR_URI;
uri.URI = (XAchar *) "file:///recordsample.wav";
audioSink.pLocator = (void*) &uri;

Some other places, however, it says:

URIs pointing to audio files in the local file system

Does anyone know whether OpenMax with these URI's / data sinks can be used to implement a streaming app that captures live data from mic/camera and streams it to server? Example?

도움이 되었습니까?

해결책

The short answer is "NO". The NDK document explicitly says that the Androoid implementation of OpneMAX AL does not, as of today, expose any features beyond that of the Java MediaPlayer.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top