是否有可能改变Android的默认的MediaPlayer 用户代理
字符串?如果是这样,怎么样?
Is it possible to change Android's default MediaPlayer User-Agent
string? If so, how?
您'只是'需要覆盖 HTTPDataSource.cpp (见HTTPDataSource :: read_at)。 然后将其注入到媒体播放器=核心)(不是那么容易的事情,我需要说的) 看看这个研究第一次 - 的流媒体播放器创建的Android框架在事件
You 'just' need to overwrite HTTPDataSource.cpp (see HTTPDataSource::read_at). And then inject it to the core of media player =) (not so easy thing i need to say) look at this research first - The flow of events during the Media Player Creation in Android Framework