Trying to stream a video from an external server.
_mediaPlayer = new MediaPlayer();
_mediaPlayer.setDataSource( this, Uri.parse( _uri ) );
Works fine for an openly accessible server, but throws an Exception when the server requires authentication. I've looked at the code inside setDataSource and haven't found any way to set a cookie programmatically for a ContentResolver.
ContentResolver resolver = context.getContentResolver();
fd = resolver.openFileDescriptor(uri, "r");
Any thoughts?