Hi , I would like to write my own app in the future, which will be able to cast local videos to TV. I didn't found any example or principle explanation how to do that. I know that when casting video from the web, I send the url to Chromecast and it plays it by itself. But the local video ? I have no idea how it works. Every Chromecast example that I have found with source code uses only web videos. Thanks for any suggestions.
Related
Just read this and thought I would share...
YouTube embed code now supports Chromecast streaming.
http://www.androidpolice.com/2014/0...ported-on-almost-all-embedded-youtube-videos/
Before this only videos on YouTube's site would give the option to stream to CCast.
Now any site that uses YouTube embedded Video should show the CCast option as well.
will i be able to play local files without biting into data i have? from my macbook / android phone to google chromecast
please advise?
also is there a way to play xbmc to chromecast
thank you
wakkaday said:
will i be able to play local files without biting into data i have? from my macbook / android phone to google chromecast
please advise?
also is there a way to play xbmc to chromecast
thank you
Click to expand...
Click to collapse
Yes only the Player will use Internet, The actual local streaming does not need Internet access.
CCast uses Internet to load the player and then the file stream over local network no net required once the player is loaded.
As for playing XBMC to CCast best solution I have found is Yatse Remote but it requires in app one time payment to unlock local cast, Once there Install the cast Addon and the content on your XBMC HTPC can be streamed to your CCast.
how much internet do you think the player will need ? for a movie for example
ok thats good to know, could i play local files and continue browsing on my tablet / macbook for example....
would you reccomend getting one? or is roku streaming stick better
i believe miracast doesnt uses another technology which doesnt use data, but another way of using the internet.
wakkaday said:
how much internet do you think the player will need ? for a movie for example
...
i believe miracast doesnt uses another technology which doesnt use data, but another way of using the internet.
Click to expand...
Click to collapse
The player is just a download of a HTML5 app (except for Netflix), it should be tiny, and doesn't matter what you're playing.
Miracast is screen mirroring, so it requires your device to play the movie, and what you see on your device is what goes to the TV.
The advantage is that often times the device can play more via software like MX Player. The disadvantage is that you cannot do other things with your device while playing the movie as exactly what you see on your device is what appears on the TV. Not so good if you get an embarrassing text message or something, and it'll use a lot of battery power.
The advantage to Chromecast is that Chromecast itself does the playback.. Once you make the request to play a video, you can do whatever you want on your device - even turn it off. Your device (or another device on your network) acts as the remote control.
Personally I really like it - I can browse YouTube and add videos to the TV Queue while stuff is playing full-screen on the TV.
I can play a movie in Netflix for my family to watch while I browser other movies they might like.
If I need to leave, my wife can run the same app and connect to Chromecast so she can pause/play/change things.
wakkaday said:
how much internet do you think the player will need ? .
Click to expand...
Click to collapse
Probably no more than a few K to one MB.
thats good to know...
i will be mainly using my mac for downloaded content (so i need to install mac server) and then i need to install plex app for the chromecast right?
and for my android phone local files that will be via allcast?
whats the situation of playing local files via iphone?
and anything can be streamed across using the chrome browser...
i guess i will have to buy and experiement around and work it out, but thank you for your information
wakkaday said:
thats good to know...
i will be mainly using my mac for downloaded content (so i need to install mac server) and then i need to install plex app for the chromecast right?
and for my android phone local files that will be via allcast?
whats the situation of playing local files via iphone?
and anything can be streamed across using the chrome browser...
i guess i will have to buy and experiement around and work it out, but thank you for your information
Click to expand...
Click to collapse
No you do not install anything on the CCast it does that automatically to load whatever player App is required to work with your Mobile App...
Plex App will tell it to load the Plex player, aVia will tell it to load the aVia Player, Netflix tells it to load the Netflix player.
Once the player is loaded into the CCast (ie in Plex it says Plexc ready to cast) no further internet should be required to stream local content.
For local on device media I suggest BubbleUPnP or aVia but that local content needs to be compatible with CCast.
\
ah ok thats explains it. i will be getting it delivered tomorrow....
when you say local content needs to be compatible, do you think i will be ok with the following...
i will be mainly trying to play avi and mkvs movies...
i know you can rename mkv to m2ts which some players will play
is real player cloud not a good app? thats free???
wakkaday said:
\
ah ok thats explains it. i will be getting it delivered tomorrow....
when you say local content needs to be compatible, do you think i will be ok with the following...
i will be mainly trying to play avi and mkvs movies...
i know you can rename mkv to m2ts which some players will play
is real player cloud not a good app? thats free???
Click to expand...
Click to collapse
CCast compatible means:
Container type MP4
Video Codec H.264
Audio Codec AAC or MP3
Video Bitrate not higher than 8Mbps
4-6 is a good compromise for compatibility with many devices and network conditions
RealPlayer Cloud is okay - but if your media is not Chromecast-compatible you have to upload it to their cloud and their servers will transcode it for you via their SurePlay feature.
You get 2GB of cloud for free and can get some additional storage by completing some tasks (referrals, share).
wakkaday said:
how much internet do you think the player will need ? for a movie for example
ok thats good to know, could i play local files and continue browsing on my tablet / macbook for example....
would you reccomend getting one? or is roku streaming stick better
i believe miracast doesnt uses another technology which doesnt use data, but another way of using the internet.
Click to expand...
Click to collapse
Please download EZCast App from Google Play, it can cast local video,music,pdf,word,excel,PPT to your chromecast and show on TV.
i tried this with my chromecast
and it was quite fiddly getting files to play (i could change some files from mkv to mp4 and they played but some files the sound didnt play. however using plex server on mac and i beemed it across it played fine... however i noticed the data took a hit
i was just messing about wiht a few files video and it took around 300mb? it seems its playing over wifi...rather then locally...
am i doing something wrong
Casting uses all my home network bandwidth
I can use my Lenovo A7000-a phone to cast to a windows display. It works well. No 3rd party software is used on either the phone or my desktop. However, it consumes my entire (abysmally low - Hey! its the Philippines) 5MBps network bandwidth. No other user on the local home router can access the internet. I would have thought the casting would just be a connection across the router, is this NOT the case? How can I improve this so no other users are affected?
Hi All
So I have spent the past hour or so going in and reading threads, but I cant find any newbie guides for idiots like myself.
Basically I have a chromecast, I got it almost a year ago. Ive barley used it as I don't find it much use. So I want to hack in to it. I have an ATV and Id like to do something similar with this if possible, load on sports channels, movie channels etc etc. And of course if anyone has any tips of anything else I can do with this gadget much appreciated.
If anyone could just post a link to a step by step guide I *should* be able to follow this, I just cant find any.
Thanks in advance.
Google's ever-expanding list of Chromecast-enabled apps is here: https://www.google.com/chrome/devices/chromecast/apps.html
There are many other interesting sources that can be accessed indirectly, but you'll really have to do some research on your own about each of them individually. There's no comprehensive guide. For example some internet video streaming sources can be accessed by running the app that accesses that source in Android, selecting the video player when prompted to be a Chromecast-enabled player like Avia, LocalCast, BubbleUPnP, AllCast etc., and then using that player to cast the video link to the Chromecast.
Or if you use Plex Media Servier on another computer, you can use the Plex client app to cast video from local files or Plex Channels to the Chromecast. Here's the guide to using Plex channels: https://support.plex.tv/hc/en-us/categories/200109616-Channels
Is it possible to cast a website, as opposed to a video playing on a website?
For example, can I cast the plex web interface and browse it on my tv?
Thanks,
Andrew
You can cast the site via something like Vbukit, but interaction with it will be limited at best since there's no direct keyboard/mouse/etc
hey guys,
basically ive noticed that when im stream a video from my nexus 5 to my chromecast the video streams straight to the chromecast rather than stream to the nexus and then to the chromecast. In the same way that when you use the youtube app it casts directly. My question is, is there any way to have this arrangement from my mac/PC.
the website in question is a popular movie stream site.
cheers in advance
Long story short, when apps are developed for the Chromecast, a virtual webpage with the video stream is opened in the Chromecast and then the video is streamed directly into it. Simple, right?
However, when a video appears on your screen in a site not optimized for the Chromecast, the Google Chrome extension must copy the contents of your tab (that are receiving a streamed video already) into a new stream that is sent to your Chromecast with your pc as a server. This is why it's slow as dirt.
There really is no easy solution, besides
1) writing it yourself (possible but improbable and unfeasible)
2) begging the website developers to do it (and if the site is illegal, Google Corporation can censor the app or site anyway),
3) downloading the movie beforehand and use something like Plex, or
4) purchasing a video streaming service made by a corporation that has made agreements with Google Corporation and is Chromecast compatible, like Netflix or... Netflix.
I opt for ripping my DVDs, converting them to movie files with Handbrake, putting them on my laptop Plex server, and casting them from there. But that's just me.
primetechv2 said:
Long story short, when apps are developed for the Chromecast, a virtual webpage with the video stream is opened in the Chromecast and then the video is streamed directly into it. Simple, right?
However, when a video appears on your screen in a site not optimized for the Chromecast, the Google Chrome extension must copy the contents of your tab (that are receiving a streamed video already) into a new stream that is sent to your Chromecast with your pc as a server. This is why it's slow as dirt.
There really is no easy solution, besides
1) writing it yourself (possible but improbable and unfeasible)
2) begging the website developers to do it (and if the site is illegal, Google Corporation can censor the app or site anyway),
3) downloading the movie beforehand and use something like Plex, or
4) purchasing a video streaming service made by a corporation that has made agreements with Google Corporation and is Chromecast compatible, like Netflix or... Netflix.
I opt for ripping my DVDs, converting them to movie files with Handbrake, putting them on my laptop Plex server, and casting them from there. But that's just me.
Click to expand...
Click to collapse
Hey primetechv2,
Please excuse my ignorance but I don't understand how can an android app like 'web video caster' can take a normal html page (not optimized for mobiles), find an embedded video and send it to Chromecast to play it directly on Chromecast. Using the same logic, a' browser app' could be designed for PCs which finds the embedded video link in a html page. The video link is then sent to the chromecast (via chrome browser if thats the only way) and a virtual page is opened in the chromecast (as you mentioned in case of mobile apps) and video is played on your chromecast. Please note that we don't want our computer to be used as a server to stream the video to Chromecast. Instead just a link to the video is extracted and is sent to the chromecast.
Am I missing something obvious here?
I don't have a perfect answer because I've never developed media apps for the Chromecast in Android, but it has something to do with the difference between writing an app that runs in Android versus one that runs on Chrome.
On Android, apps have direct access to files on your phone. They can read the files and transfer the data across a network to any device, such as a Chromecast, via a simple API.
On Chrome, for obvious security reasons no random webpage can just hijack your local filesystem. There's a chance that if media was loaded, it could be streamed via a socket or some advanced Javascript magic, but I've never seen any app that does this.
Often, apps will leverage the ability of a PC to behave as a web server, where files CAN be accessed on request and then sent to webpages. Unfortunately, Google Cast restricts Receiver pages being displayed on their hardware unless they're on a rather limited whitelist, so only domains that hvev registered with Google (e.g. http://plex.tv) can have a receiver page displayed on your Cast.
That's sorta the explanation for why apps like BubbleUPNP "hijack" Windows as a media server and as a transcoder.. As long as Android can pull transcoded media back, or perhaps allow access to the transcoded media via the Internet on a registered webpage, I've never set one up, so that's all conjecture. But I'm pretty darn sure a PC has a lot more processing power than an Android device. And when you want to send unsupported-on-the-Chromecast media from a phone to the Cast, you have to manage both the transcoding AND the streaming.
enmbs said:
Hey primetechv2,
Please excuse my ignorance but I don't understand how can an android app like 'web video caster' can take a normal html page (not optimized for mobiles), find an embedded video and send it to Chromecast to play it directly on Chromecast. Using the same logic, a' browser app' could be designed for PCs which finds the embedded video link in a html page. The video link is then sent to the chromecast (via chrome browser if thats the only way) and a virtual page is opened in the chromecast (as you mentioned in case of mobile apps) and video is played on your chromecast. Please note that we don't want our computer to be used as a server to stream the video to Chromecast. Instead just a link to the video is extracted and is sent to the chromecast.
Am I missing something obvious here?
Click to expand...
Click to collapse
It can do it only because the App or Site is written to support the CCast specifically where many other sites are not.
So lets cite examples of what I mean....
Web Video Caster is a CCast app that has a Player/receiver the CCast loads that can accept links from the app to display on the unit.
In the case of Websites the Embedded Player they use to play the Video has this support built in.
ESPN uses JWPlayer Pro for their site videos which has CCast support built in. JW Player has it's own Player/Receiver that gets loaded into the CCast to facilitate this.
You Tube has it's own receiver actually ON the CCast that also is similar to the JW Payer.
I believe both require the Browser you are using to be CCast aware using either an extension like GoogleCast for Chrome to let the site know to display the CCast icon. (I may be mistaken but I believe Firefox now has this capability built into the browser)
So it really is a combination of the player the site uses and the Browser that determines if CCast Support is enabled.
But in the end ANYTHING that is sent to a CCast DIRECTLY has to have a corresponding Player/Receiver app written for the CCast to send the linkage to.
It will take some time but I suspect in the future, Most of not ALL embedded players used by Websites will add this functionality in time.
Which is really all about the drive to become HTML5 compatible as much as any desire to support the CCast.
Asphyx said:
It can do it only because the App or Site is written to support the CCast specifically where many other sites are not.
So lets cite examples of what I mean....
Web Video Caster is a CCast app that has a Player/receiver the CCast loads that can accept links from the app to display on the unit.
In the case of Websites the Embedded Player they use to play the Video has this support built in.
ESPN uses JWPlayer Pro for their site videos which has CCast support built in. JW Player has it's own Player/Receiver that gets loaded into the CCast to facilitate this.
You Tube has it's own receiver actually ON the CCast that also is similar to the JW Payer.
I believe both require the Browser you are using to be CCast aware using either an extension like GoogleCast for Chrome to let the site know to display the CCast icon. (I may be mistaken but I believe Firefox now has this capability built into the browser)
So it really is a combination of the player the site uses and the Browser that determines if CCast Support is enabled.
But in the end ANYTHING that is sent to a CCast DIRECTLY has to have a corresponding Player/Receiver app written for the CCast to send the linkage to.
It will take some time but I suspect in the future, Most of not ALL embedded players used by Websites will add this functionality in time.
Which is really all about the drive to become HTML5 compatible as much as any desire to support the CCast.
Click to expand...
Click to collapse
Thanks Asphyx, It makes sense now :good:.