How to change default User-agent in mediaplayer of the android -


this question has answer here:

in file of android repo have change default user-agent? need set string default user-agent media-player: htc streaming player vodafone_uk / 1.0 / htc_bravo / 2.2

public void setdatasource (context context, uri uri, map<string, string> headers); 

in app controls mediaplayer instance, pass user agent in header map follows:

map<string, string> headermap = new hashmap<string, string>();; headermap.put("user-agent", "my user agent value"); mediaplayer.setdatasource(context, uri, headermap); 

Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

Java - Returning an array from a method to main -