title: How to call a VLC Player Intent With Stream url and User Agent
body: <p>I am trying to create a intent which will call a <code>mxplayer intent</code> and <code>vlc player</code> intent . This intent will contain <strong>live video link</strong> and <strong>user agent</strong> . I added the url using <code>intent.setData()</code> but how to add the <code>user agent header</code> ?
   <br>Code : </p>
  
  <pre><code>String packagename = "com.mxtech.videoplayer.ad";
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.setPackage(packagename);
  intent.setData(Uri.parse(now.video_url));
  //add the user agent header here     
  // now.user_agent contains the agent link                   
  context.startActivity(intent);
  </code></pre>
  
  <p>Also how to do it in vlc player , I didn't find anything in their <a href="https://wiki.videolan.org/Android_Player_Intents/" rel="nofollow noreferrer">android-api</a> with user-agent
  <br>My try for vlc:</p>
  
  <pre><code>String packagename = "org.videolan.vlc";
  Intent intent = new Intent(Intent.ACTION_VIEW);
  intent.setPackage(packagename);
  intent.setData(Uri.parse(now.video_url));
  
  intent.putExtra("user-agent",now.user_agent);
  //tried these too , doesn't work
  //intent.putExtra("http-user-agent",now.user_agent);
  //intent.putExtra("User-Agent",now.user_agent);
  //String[] headers = {
  //                            "http-user-agent", now.user_agent
  //                    };
  //intent.putExtra("headers",headers);
  context.startActivity(intent);
  </code></pre>