mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Merge pull request #856 from IanDBird/dev
Make MediaCodecUtil.getMediaCodecInfo public
This commit is contained in:
commit
2d967a1b6d
1 changed files with 8 additions and 1 deletions
|
|
@ -94,8 +94,15 @@ public final class MediaCodecUtil {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the best decoder and its capabilities for the given mimeType.
|
* Returns the name of the best decoder and its capabilities for the given mimeType.
|
||||||
|
*
|
||||||
|
* @param mimeType The mime type.
|
||||||
|
* @param secure Whether the decoder is required to support secure decryption. Always pass false
|
||||||
|
* unless secure decryption really is required.
|
||||||
|
*
|
||||||
|
* @return The name of the best decoder and its capabilities for the given mimeType, or null if
|
||||||
|
* no decoder exists.
|
||||||
*/
|
*/
|
||||||
private static synchronized Pair<String, CodecCapabilities> getMediaCodecInfo(
|
public static synchronized Pair<String, CodecCapabilities> getMediaCodecInfo(
|
||||||
String mimeType, boolean secure) throws DecoderQueryException {
|
String mimeType, boolean secure) throws DecoderQueryException {
|
||||||
CodecKey key = new CodecKey(mimeType, secure);
|
CodecKey key = new CodecKey(mimeType, secure);
|
||||||
if (codecs.containsKey(key)) {
|
if (codecs.containsKey(key)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue