I want to play a video stream with HTTP request headers via Intent in VLC player (VLC for Android).
I'm using the following code to play normal streams:
Intent intent = new Intent(Intent.ACTION_VIEW);
Uri videoUri = Uri.parse(url);
intent.setDataAndType( videoUri, "application/x-mpegURL" );
intent.setPackage( "org.videolan.vlc" );
startActivity( intent );
The problem is that the link I'm playing requires a special HTTP header token, which means that the code doesn't work in my case.
How can I pass http request headers to VLC player via intent?