android - Is there a way to cast youtube videos inside my application? -


i'm using "themoviedb" api information movies, , possible retrieve video information movie, this:

videos: { results: [ { id: "533ec6a5c3a3685448005327", iso_639_1: "en", key: "ac7khviavqc", name: "first trailer", site: "youtube", size: 720, type: "trailer" } ] } 

as can see, possible build youtube video url key provided in json.

when building mediainfo object, can pass video url, this:

mediainfo.builder(movie_url)                 .setstreamtype(mediainfo.stream_type_buffered)                 .setcontenttype("video/mp4")                 .setmetadata(moviemetadata)                 .build(); 

however, if movie_url youtube url, can't cast content.

is possible cast youtube videos app? if yes, how can it?

thanks!

there no apis in cast sdk accomplish that. people have had different degrees of luck using embedded youtube iframe approach, not perfect solution various reasons; example cannot skip ads, etc.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -