Authentication for Videoview in android

前端 未结 3 1675
说谎
说谎 2021-01-06 11:37

I\'m using a Videoview to play http video.That Http video url needs Authentication.

So please let me know how authentication can be

3条回答
  •  感动是毒
    2021-01-06 12:38

    The reflection API access to the setViewUri(Uri, Map) worked for me.

    I guess a safer alternative is to use the MediaPlayer.setDataSource(Context, Uri, Map):

    A risk of using the reflection API is that the API might disappear in a future release...

提交回复
热议问题