Java Code Examples for com.google.android.exoplayer2.util.Util#getBytesFromHexString()
The following examples show how to use
com.google.android.exoplayer2.util.Util#getBytesFromHexString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SsManifestParser.java From MediaSDK with Apache License 2.0 | 5 votes |
private static List<byte[]> buildCodecSpecificData(String codecSpecificDataString) { ArrayList<byte[]> csd = new ArrayList<>(); if (!TextUtils.isEmpty(codecSpecificDataString)) { byte[] codecPrivateData = Util.getBytesFromHexString(codecSpecificDataString); byte[][] split = CodecSpecificDataUtil.splitNalUnits(codecPrivateData); if (split == null) { csd.add(codecPrivateData); } else { Collections.addAll(csd, split); } } return csd; }
Example 2
Source File: SsManifestParser.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private static List<byte[]> buildCodecSpecificData(String codecSpecificDataString) { ArrayList<byte[]> csd = new ArrayList<>(); if (!TextUtils.isEmpty(codecSpecificDataString)) { byte[] codecPrivateData = Util.getBytesFromHexString(codecSpecificDataString); byte[][] split = CodecSpecificDataUtil.splitNalUnits(codecPrivateData); if (split == null) { csd.add(codecPrivateData); } else { Collections.addAll(csd, split); } } return csd; }
Example 3
Source File: SsManifestParser.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private static List<byte[]> buildCodecSpecificData(String codecSpecificDataString) { ArrayList<byte[]> csd = new ArrayList<>(); if (!TextUtils.isEmpty(codecSpecificDataString)) { byte[] codecPrivateData = Util.getBytesFromHexString(codecSpecificDataString); byte[][] split = CodecSpecificDataUtil.splitNalUnits(codecPrivateData); if (split == null) { csd.add(codecPrivateData); } else { Collections.addAll(csd, split); } } return csd; }
Example 4
Source File: SsManifestParser.java From K-Sonic with MIT License | 5 votes |
private static List<byte[]> buildCodecSpecificData(String codecSpecificDataString) { ArrayList<byte[]> csd = new ArrayList<>(); if (!TextUtils.isEmpty(codecSpecificDataString)) { byte[] codecPrivateData = Util.getBytesFromHexString(codecSpecificDataString); byte[][] split = CodecSpecificDataUtil.splitNalUnits(codecPrivateData); if (split == null) { csd.add(codecPrivateData); } else { Collections.addAll(csd, split); } } return csd; }
Example 5
Source File: SsManifestParser.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
private static List<byte[]> buildCodecSpecificData(String codecSpecificDataString) { ArrayList<byte[]> csd = new ArrayList<>(); if (!TextUtils.isEmpty(codecSpecificDataString)) { byte[] codecPrivateData = Util.getBytesFromHexString(codecSpecificDataString); byte[][] split = CodecSpecificDataUtil.splitNalUnits(codecPrivateData); if (split == null) { csd.add(codecPrivateData); } else { Collections.addAll(csd, split); } } return csd; }
Example 6
Source File: SsManifestParser.java From Telegram with GNU General Public License v2.0 | 5 votes |
private static List<byte[]> buildCodecSpecificData(String codecSpecificDataString) { ArrayList<byte[]> csd = new ArrayList<>(); if (!TextUtils.isEmpty(codecSpecificDataString)) { byte[] codecPrivateData = Util.getBytesFromHexString(codecSpecificDataString); byte[][] split = CodecSpecificDataUtil.splitNalUnits(codecPrivateData); if (split == null) { csd.add(codecPrivateData); } else { Collections.addAll(csd, split); } } return csd; }