{"id":37795,"date":"2016-07-21T14:55:59","date_gmt":"2016-07-21T09:25:59","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=37795"},"modified":"2016-07-21T15:03:30","modified_gmt":"2016-07-21T09:33:30","slug":"playing-different-videos-with-exo-player-in-android-tv","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/","title":{"rendered":"Playing different Videos with Exo-Player in Android TV"},"content":{"rendered":"<p>There are usually 3 types of videos while streaming in any Video Player. While working on Android TV we categorize these in<\/p>\n<ol>\n<li>\n<p class=\"western\" align=\"left\"><span style=\"font-size: medium\">Dash Videos<\/span><\/p>\n<\/li>\n<li>\n<p class=\"western\" align=\"left\"><span style=\"font-size: medium\">HLS Videos (.m3u8 &amp; .ts)<\/span><\/p>\n<\/li>\n<li>\n<p class=\"western\" align=\"left\"><span style=\"font-size: medium\">Others (.mp4,.mpeg etc)<\/span><\/p>\n<\/li>\n<\/ol>\n<p class=\"western\" align=\"left\"><span style=\"font-size: medium\">We need different types of ExtractorRendererBuilder for playing different videos with Exo-Player. In this article I will be describing the difference between Other Videosand HLS Videos (.m3u8 &amp; .ts).<\/span><\/p>\n<p>For HLS Videos we need to create different ExtractorRenderBuilder for reference I will be taking them as <strong>HlsExtractorRendererBuilder<\/strong> and <strong>ExtractorRendererBuilder<\/strong> respectively.<\/p>\n<p>In PlaybackFragment <em>getRendererBuilder()<\/em> method will be implemented somewhat like this<\/p>\n<p>[java]private VideoPlayer.RendererBuilder getRendererBuilder() {<br \/>\n    String userAgent = Util.getUserAgent(getContext(), &quot;ExoVideoPlayer&quot;);<br \/>\n    Uri contentUri = Uri.parse(mSelectedVideo.videoUrl);<br \/>\n    int contentType = Util.inferContentType(contentUri.getLastPathSegment());<br \/>\n    switch (contentType) {<br \/>\n        case Util.TYPE_OTHER: {<br \/>\n            return new ExtractorRendererBuilder(getContext(), userAgent, contentUri);<br \/>\n        }<br \/>\n        case Util.TYPE_HLS: {<br \/>\n            return new HlsExtractorRendererBuilder(getContext(), userAgent, contentUri);<br \/>\n        }<br \/>\n        default: {<br \/>\nthrow new IllegalStateException(&quot;Unsupported type: &quot; + contentType);<br \/>\n        }<br \/>\n    }<br \/>\n}<br \/>\n[\/java]<\/p>\n<p>userAgent : Util.getUserAgent() gives ExoVideoPlayer which tells that what kind of VideoPlayer we are going to use. Internal implementation of getUserAgent() is<\/p>\n<p>[java]<br \/>\npublic static String getUserAgent(Context context, String applicationName) {<br \/>\n  String versionName;<br \/>\n  try {<br \/>\n    String packageName = context.getPackageName();<br \/>\n    PackageInfo info = context.getPackageManager().getPackageInfo(packageName, 0);<br \/>\n    versionName = info.versionName;<br \/>\n  } catch (NameNotFoundException e) {<br \/>\n    versionName = &quot;?&quot;;<br \/>\n  }<br \/>\n  return applicationName + &quot;\/&quot; + versionName + &quot; (Linux;Android &quot; + Build.VERSION.RELEASE<br \/>\n      + &quot;) &quot; + &quot;ExoPlayerLib\/&quot; + ExoPlayerLibraryInfo.VERSION;<br \/>\n}<br \/>\n[\/java]<\/p>\n<p><strong>ContentUri :<\/strong> Video Url to be played<\/p>\n<p><strong>contentType :<\/strong> Util.inferContentType() extracts the video type. Internal implementation of inferContentType() is<\/p>\n<p>[java]public static int inferContentType(String fileName) {<br \/>\nif (fileName == null) {<br \/>\nreturn TYPE_OTHER;<br \/>\n} else if (fileName.endsWith(&quot;.mpd&quot;)) {<br \/>\nreturn TYPE_DASH;<br \/>\n} else if (fileName.endsWith(&quot;.ism&quot;)) {<br \/>\nreturn TYPE_SS;<br \/>\n} else if (fileName.endsWith(&quot;.m3u8&quot;)) {<br \/>\nreturn TYPE_HLS;<br \/>\n} else {<br \/>\nreturn TYPE_OTHER;<br \/>\n}<br \/>\n}<br \/>\n[\/java]<br \/>\nFor playing different type of videos we create different rendererbuilders, Each RenderBuilder class implements RenderBuilder interface and we need to implement buildRenderers() and cancel() methods.<\/p>\n<p>Playing TYPE_OTHER Videos in ExoPlayer<\/p>\n<p>The buildRenderers() for TYPE_OTHER videos would be as following code.<\/p>\n<p>[java]<br \/>\n@Override<\/p>\n<p>public void buildRenderers(VideoPlayer player) {<\/p>\n<p>Allocator allocator = new DefaultAllocator(BUFFER_SEGMENT_SIZE);<\/p>\n<p>Handler mainHandler = player.getMainHandler();<\/p>\n<p>\/\/ Build the video and audio renderers.<\/p>\n<p>DefaultBandwidthMeter bandwidthMeter = new DefaultBandwidthMeter(mainHandler, null);<\/p>\n<p>DataSource dataSource = new DefaultUriDataSource(context, bandwidthMeter, userAgent);<\/p>\n<p>ExtractorSampleSource sampleSource = new ExtractorSampleSource(uri, dataSource, allocator,<\/p>\n<p>BUFFER_SEGMENT_COUNT * BUFFER_SEGMENT_SIZE, mainHandler, player, 0);<\/p>\n<p>MediaCodecVideoTrackRenderer videoRenderer = new MediaCodecVideoTrackRenderer(context,<\/p>\n<p>sampleSource, MediaCodecSelector.DEFAULT, MediaCodec.VIDEO_SCALING_MODE_SCALE_TO_FIT, 5000,<\/p>\n<p>mainHandler, player, 50);<\/p>\n<p>MediaCodecAudioTrackRenderer audioRenderer = new MediaCodecAudioTrackRenderer(sampleSource,<\/p>\n<p>MediaCodecSelector.DEFAULT, null, true, mainHandler, player,<\/p>\n<p>AudioCapabilities.getCapabilities(context), AudioManager.STREAM_MUSIC);<\/p>\n<p>TrackRenderer textRenderer = new TextTrackRenderer(sampleSource, player,<\/p>\n<p>mainHandler.getLooper());<\/p>\n<p>\/\/ Invoke the callback.<\/p>\n<p>TrackRenderer[] renderers = new TrackRenderer[VideoPlayer.RENDERER_COUNT];<\/p>\n<p>renderers[VideoPlayer .TYPE_VIDEO] = videoRenderer;<\/p>\n<p>renderers[VideoPlayer .TYPE_AUDIO] = audioRenderer;<\/p>\n<p>renderers[VideoPlayer .TYPE_TEXT] = textRenderer;<\/p>\n<p>player.onRenderers(renderers, bandwidthMeter);<\/p>\n<p>}<br \/>\n[\/java]<\/p>\n<p>We include Video, Audio, Text types of renderer as per our need.<\/p>\n<p>[java]<br \/>\n@Override<\/p>\n<p>public void cancel() {<\/p>\n<p>\/\/Do Nothing<\/p>\n<p>}<br \/>\n[\/java]<\/p>\n<p>Playing TYPE_HLS Videos in ExoPlayer<\/p>\n<p>As we know that HLS stands for HTTP Live Streaming, So we need to implement AsyncRendererBuilder for streaming HLS type of Videos.<\/p>\n<p>BuildRenderers() for HLS Videos :<\/p>\n<p>[java]<br \/>\n@Override<\/p>\n<p>public void buildRenderers(DemoPlayer player) {<\/p>\n<p>currentAsyncBuilder = new AsyncRendererBuilder(context, userAgent, url, player);<\/p>\n<p>currentAsyncBuilder.init();<\/p>\n<p>}<br \/>\n[\/java]<\/p>\n<p>Cancel() fir HLS Videos:<\/p>\n<p>[java]@Override<\/p>\n<p>public void cancel() {<\/p>\n<p>if (currentAsyncBuilder != null) {<\/p>\n<p>currentAsyncBuilder.cancel();<\/p>\n<p>currentAsyncBuilder = null;<\/p>\n<p>}<\/p>\n<p>}<br \/>\n[\/java]<br \/>\nFor reference of demo with exoplayer kindly fork from <a href=\"https:\/\/github.com\/meankit1990\/exoplayer-demo\" title=\"Github-HlsVideoSample\" target=\"_blank\">Github-HlsVideoSample<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are usually 3 types of videos while streaming in any Video Player. While working on Android TV we categorize these in Dash Videos HLS Videos (.m3u8 &amp; .ts) Others (.mp4,.mpeg etc) We need different types of ExtractorRendererBuilder for playing different videos with Exo-Player. In this article I will be describing the difference between Other [&hellip;]<\/p>\n","protected":false},"author":302,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":31,"footnotes":""},"categories":[518,3479,3477,1772,1],"tags":[4845,2704,2740,3778,3777,4861],"class_list":["post-37795","post","type-post","status-publish","format-standard","hentry","category-android","category-connected-tv","category-media-entertainment","category-mobility","category-technology","tag-android","tag-android-exoplayer","tag-android-tv","tag-exo-player","tag-hls-videos","tag-smart-tv"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"There are usually 3 types of videos while streaming in any Video Player. While working on Android TV we categorize these in Dash Videos HLS Videos (.m3u8 &amp; .ts) Others (.mp4,.mpeg etc) We need different types of ExtractorRendererBuilder for playing different videos with Exo-Player. In this article I will be describing the difference between Other\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Ankit Kumar Jain\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Playing different Videos with Exo-Player in Android TV | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"There are usually 3 types of videos while streaming in any Video Player. While working on Android TV we categorize these in Dash Videos HLS Videos (.m3u8 &amp; .ts) Others (.mp4,.mpeg etc) We need different types of ExtractorRendererBuilder for playing different videos with Exo-Player. In this article I will be describing the difference between Other\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Playing different Videos with Exo-Player in Android TV | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"There are usually 3 types of videos while streaming in any Video Player. While working on Android TV we categorize these in Dash Videos HLS Videos (.m3u8 &amp; .ts) Others (.mp4,.mpeg etc) We need different types of ExtractorRendererBuilder for playing different videos with Exo-Player. In this article I will be describing the difference between Other\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/playing-different-videos-with-exo-player-in-android-tv\\\/#article\",\"name\":\"Playing different Videos with Exo-Player in Android TV | TO THE NEW Blog\",\"headline\":\"Playing different Videos with Exo-Player in Android TV\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2016-07-21T14:55:59+05:30\",\"dateModified\":\"2016-07-21T15:03:30+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/playing-different-videos-with-exo-player-in-android-tv\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/playing-different-videos-with-exo-player-in-android-tv\\\/#webpage\"},\"articleSection\":\"Android, Connected TV, Media &amp; Entertainment, Mobility, Technology, Android, Android ExoPlayer, Android TV, Exo-Player, Hls Videos, Smart TV\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/playing-different-videos-with-exo-player-in-android-tv\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/playing-different-videos-with-exo-player-in-android-tv\\\/#listItem\",\"name\":\"Playing different Videos with Exo-Player in Android TV\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/playing-different-videos-with-exo-player-in-android-tv\\\/#listItem\",\"position\":3,\"name\":\"Playing different Videos with Exo-Player in Android TV\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit\\\/\",\"name\":\"Ankit Kumar Jain\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/playing-different-videos-with-exo-player-in-android-tv\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/29eb82b2-1e10-4559-910a-99810d2cd441_ankit.jain@tothenew.com.jpg\",\"width\":96,\"height\":96,\"caption\":\"Ankit Kumar Jain\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/playing-different-videos-with-exo-player-in-android-tv\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/playing-different-videos-with-exo-player-in-android-tv\\\/\",\"name\":\"Playing different Videos with Exo-Player in Android TV | TO THE NEW Blog\",\"description\":\"There are usually 3 types of videos while streaming in any Video Player. While working on Android TV we categorize these in Dash Videos HLS Videos (.m3u8 & .ts) Others (.mp4,.mpeg etc) We need different types of ExtractorRendererBuilder for playing different videos with Exo-Player. In this article I will be describing the difference between Other\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/playing-different-videos-with-exo-player-in-android-tv\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/ankit\\\/#author\"},\"datePublished\":\"2016-07-21T14:55:59+05:30\",\"dateModified\":\"2016-07-21T15:03:30+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Playing different Videos with Exo-Player in Android TV | TO THE NEW Blog","description":"There are usually 3 types of videos while streaming in any Video Player. While working on Android TV we categorize these in Dash Videos HLS Videos (.m3u8 & .ts) Others (.mp4,.mpeg etc) We need different types of ExtractorRendererBuilder for playing different videos with Exo-Player. In this article I will be describing the difference between Other","canonical_url":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/#article","name":"Playing different Videos with Exo-Player in Android TV | TO THE NEW Blog","headline":"Playing different Videos with Exo-Player in Android TV","author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/ankit\/#author"},"publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"},"datePublished":"2016-07-21T14:55:59+05:30","dateModified":"2016-07-21T15:03:30+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/#webpage"},"isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/#webpage"},"articleSection":"Android, Connected TV, Media &amp; Entertainment, Mobility, Technology, Android, Android ExoPlayer, Android TV, Exo-Player, Hls Videos, Smart TV"},{"@type":"BreadcrumbList","@id":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/www.tothenew.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/www.tothenew.com\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/#listItem","name":"Playing different Videos with Exo-Player in Android TV"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/#listItem","position":3,"name":"Playing different Videos with Exo-Player in Android TV","previousItem":{"@type":"ListItem","@id":"https:\/\/www.tothenew.com\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/www.tothenew.com\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/www.tothenew.com\/blog\/"},{"@type":"Person","@id":"https:\/\/www.tothenew.com\/blog\/author\/ankit\/#author","url":"https:\/\/www.tothenew.com\/blog\/author\/ankit\/","name":"Ankit Kumar Jain","image":{"@type":"ImageObject","@id":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/29eb82b2-1e10-4559-910a-99810d2cd441_ankit.jain@tothenew.com.jpg","width":96,"height":96,"caption":"Ankit Kumar Jain"}},{"@type":"WebPage","@id":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/#webpage","url":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/","name":"Playing different Videos with Exo-Player in Android TV | TO THE NEW Blog","description":"There are usually 3 types of videos while streaming in any Video Player. While working on Android TV we categorize these in Dash Videos HLS Videos (.m3u8 & .ts) Others (.mp4,.mpeg etc) We need different types of ExtractorRendererBuilder for playing different videos with Exo-Player. In this article I will be describing the difference between Other","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.tothenew.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/#breadcrumblist"},"author":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/ankit\/#author"},"creator":{"@id":"https:\/\/www.tothenew.com\/blog\/author\/ankit\/#author"},"datePublished":"2016-07-21T14:55:59+05:30","dateModified":"2016-07-21T15:03:30+05:30"},{"@type":"WebSite","@id":"https:\/\/www.tothenew.com\/blog\/#website","url":"https:\/\/www.tothenew.com\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.tothenew.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Playing different Videos with Exo-Player in Android TV | TO THE NEW Blog","og:description":"There are usually 3 types of videos while streaming in any Video Player. While working on Android TV we categorize these in Dash Videos HLS Videos (.m3u8 &amp; .ts) Others (.mp4,.mpeg etc) We need different types of ExtractorRendererBuilder for playing different videos with Exo-Player. In this article I will be describing the difference between Other","og:url":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/","og:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Playing different Videos with Exo-Player in Android TV | TO THE NEW Blog","twitter:description":"There are usually 3 types of videos while streaming in any Video Player. While working on Android TV we categorize these in Dash Videos HLS Videos (.m3u8 &amp; .ts) Others (.mp4,.mpeg etc) We need different types of ExtractorRendererBuilder for playing different videos with Exo-Player. In this article I will be describing the difference between Other","twitter:image":"https:\/\/www.tothenew.com\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"37795","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"blog","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 13:56:50","updated":"2024-02-29 08:59:11","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.tothenew.com\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPlaying different Videos with Exo-Player in Android TV\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.tothenew.com\/blog"},{"label":"Technology","link":"https:\/\/www.tothenew.com\/blog\/category\/technology\/"},{"label":"Playing different Videos with Exo-Player in Android TV","link":"https:\/\/www.tothenew.com\/blog\/playing-different-videos-with-exo-player-in-android-tv\/"}],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/37795","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/302"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=37795"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/37795\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=37795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=37795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=37795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}