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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -