Changing Android's default MediaPlayer User-Agent string

前端 未结 2 998
小蘑菇
小蘑菇 2020-12-11 11:34

Is it possible to change Android\'s default MediaPlayer User-Agent string? If so, how?

2条回答
  •  旧巷少年郎
    2020-12-11 12:02

    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

提交回复
热议问题