title: Casting m3u8 file from android app
body: <p>I am trying to play a video on my TV using chromecasting framework provided. <a href="https://codelabs.developers.google.com/codelabs/cast-videos-android/#0" rel="nofollow noreferrer">The approach i followed</a> for playing a mp4 works fine. But now i have different source to play. I have a video file pointed by m3u8 file placed on my server.
  So, for playing m3u8 file on TV i am using the following MediaInfo object with variants for <a href="https://stackoverflow.com/questions/9178321/android-hls-video-mime-type">content-type mentioned here</a>.
  The MediaObject i am returning is:`</p>
  
  <pre><code>return new MediaInfo.Builder(Uri.parse(path).toString())
              .setStreamType(MediaInfo.STREAM_TYPE_LIVE)
              .setContentType("videos/mp4") //need to know **what should be content-type here**
              .setMetadata(movieMetadata)
              .setStreamDuration(mSelectedMedia.getData().getDuration() * 1000)
              .build();
  </code></pre>
  
  <p>Please guide me for playing m3u8 file on my chromecast or TV.
  Thanks</p>