title: Get twitter video mp4 url
body: <p>Question I am working with twitter API now and when post includes video. Twitter returns only thumbnails urls and not main video file url. Twitter returns such JSON:</p>
  
  <pre><code>["media_url"]=&gt; string(86) "http://pbs.twimg.com/ext_tw_video_thumb/../pu/img/p1R5iC_7fN-lqNuK.jpg" 
  ["media_url_https"]=&gt; string(87) "https://pbs.twimg.com/ext_tw_video_thumb/.../pu/img/p1R5iC_7fN-lqNuK.jpg" 
  ["url"]=&gt; string(22) "http://t.co/UViL9KykF*" 
  ["expanded_url"]=&gt; string(63) "http://twitter.com/.../status/..../video/1" 
  </code></pre>
  
  <p>And first two is jpgs, and other urls redirect straight to post.
  As I am using php to get all information, for vine.co there was such code:</p>
  
  <pre><code>$dom = new DomFinder($media_url);
  $video_cell = $dom-&gt;find("//meta[@property='twitter:player:stream']", 'content');
  </code></pre>
  
  <p>But twitter doesn't have such meta tags in  and I can't find a way to access video file.
  Maybe someone know how to get mp4 url?</p>