With VideoView I have problems to get a stream to work since it requires authentication.
Using VLC for ANdroid, I can get the stream to work including username and password in the URL like this:
http://user:password@192.168.1.5:8002.....
so it seems above method of authentication is supported by the server. This type of URL does not work with the VideoView wrapper.
I searched for this and I am unsure if it is possible with VideoView although this page at StackOverFlow,
http://stackoverflow.com/questions/5898271/authentication-for-videoview-in-android
seems to propose two methods that may work, namely:
1) a method using reflection
2) or to use MediaPlayer.setDataSource(Context, Uri, Map)
Can I implement one of above solutions using the VideoView wrapper, perhaps using reflection or JavaObject? If yes, could you help with the correct reflection-code?
Thank you.
Using VLC for ANdroid, I can get the stream to work including username and password in the URL like this:
http://user:password@192.168.1.5:8002.....
so it seems above method of authentication is supported by the server. This type of URL does not work with the VideoView wrapper.
I searched for this and I am unsure if it is possible with VideoView although this page at StackOverFlow,
http://stackoverflow.com/questions/5898271/authentication-for-videoview-in-android
seems to propose two methods that may work, namely:
1) a method using reflection
2) or to use MediaPlayer.setDataSource(Context, Uri, Map)
Can I implement one of above solutions using the VideoView wrapper, perhaps using reflection or JavaObject? If yes, could you help with the correct reflection-code?
Thank you.