Closed kyriej closed 1 year ago
Hi , the code like this
var retriever = FFmpegMediaMetadataRetriever(); val header = HashMap<String , String>(); header.put("key1","val1"); var path = "https://example.com/test.mp4"; retriever.setDataSource(path , header);
it seems like the heder not include in the player request
===================================
public void setDataSource(String uri, Map<String, String> headers)
throws IllegalArgumentException {
int i = 0;
String[] keys = new String[headers.size()];
String[] values = new String[headers.size()];
for (Map.Entry<String, String> entry: headers.entrySet()) {
keys[i] = entry.getKey();
values[i] = entry.getValue();
++i;
}
_setDataSource(uri, keys, values);
}
private native void _setDataSource(
String uri, String[] keys, String[] values)
throws IllegalArgumentException;
I'll take a look, thank you @kyriej
This issue has been fixed in version 1.0.19.
Hi @kyriej, can you post a code example outlining your issue. I'm not sure exactly what the issue is based on your description. Thanks!