Related
Can it be done? I know that chromium was ported, and chromium odds was being worked on. Can you kitbash one of these into one of those?
Sent from my SPH-D700 using xda premium
We are working on a similar product:
http://forum.xda-developers.com/showthread.php?t=2359972
to make Pi to support iOS devices and Android devices using AirPlay Mirroring and Miracast.
This is not a port though, I think it should be better as chromecast won't support AirPlay mirroring.
A direct port should be possible too if chromecast source code is available, I would guess it has miracast emulation.
seems it's well possible to emulate Chromecast.
I spent a few days to emulate Chromecast inside rPlay, finally it can find the rPlay (on Raspberry Pi) as a chromecast device, and it can send youtube URL redirection. still long way to go, but seems possible.
Attached is a screenshot of Youtube on Nexus 7, the Chromecast button is shown, when clicked, it will show rPlay as the device.
huisinro said:
seems it's well possible to emulate Chromecast.
I spent a few days to emulate Chromecast inside rPlay, finally it can find the rPlay (on Raspberry Pi) as a chromecast device, and it can send youtube URL redirection. still long way to go, but seems possible.
Attached is a screenshot of Youtube on Nexus 7, the Chromecast button is shown, when clicked, it will show rPlay as the device.
Click to expand...
Click to collapse
Guess that's the best lead we could find thus far, as well as some assurance that this (https://github.com/dz0ny/leapcast) can also redirect Youtube links.
I think it will only be a matter of time until this is fully working like the chromecast
yes, the initial implementation is available in our rPlay software, beta version is available.
We will add more and more chromecasting features to it, in addition to airplay mirroring,
http://www.vmlite.com/index.php?option=com_kunena&Itemid=158&func=view&catid=23&id=10991
Toadyus said:
I think it will only be a matter of time until this is fully working like the chromecast
Click to expand...
Click to collapse
Also if possible please add option to stream/play local media files which official chromecast lacks.:good:
Is the Chromecast protocol open? If not, has anyone asked Google why not?
Very Cool. Hows the progress
This is very cool. How is it going? Does the Pi have sufficient performance?
D.
huisinro said:
seems it's well possible to emulate Chromecast.
I spent a few days to emulate Chromecast inside rPlay, finally it can find the rPlay (on Raspberry Pi) as a chromecast device, and it can send youtube URL redirection. still long way to go, but seems possible.
Attached is a screenshot of Youtube on Nexus 7, the Chromecast button is shown, when clicked, it will show rPlay as the device.
Click to expand...
Click to collapse
kurchatovian said:
This is very cool. How is it going? Does the Pi have sufficient performance?
D.
Click to expand...
Click to collapse
I am also amazed . I'm curious if it's going good too
deathbearer said:
Also if possible please add option to stream/play local media files which official chromecast lacks.:good:
Click to expand...
Click to collapse
Yatse and bubble UPNP already do this with XBMC on the Pi.
I can easily send YouTube videos to the pi using the share feature in Android and Yatse remote app. Similarly with local content.
Sent from my HTC One using Tapatalk 4
I'd say the main thing holding my Pi back is silverlight drm. Otherwise I'd be perfectly happy with my xmbcrpi.
Direct streaming to Chromecast without using the tab mirror option
1) First find you favorite vimeo URL
for example: I choose this http://vimeo.com/69627704
2) Go to http://keepvid.com/ (This service and other like it can resolve URL from other video site too, not just vimeo)
3) paste in the vimeo address and hit download. You will be presented with 2 links obviously choose the 720p one if possible. Right click on it and copy url it should be something really long like this http://pdl.vimeocdn.com/18706/952/1...n=1375283992_18627ba2bd4d1204fdaacfc695607cc9
4) go to http://googlecast.github.io/cast-chrome/ (I take no credit for this site whomever did it was great)
5) Drop down activity type to HTML5 video play back and paste in the really long URL
6) Hit play (the video should play now, but ignore it and scroll down fast)
7) YOU have to scroll down fast to the bottom on the page and hit the name of your chromecast fast (then your TV will go black screen for a bit seems like a long time 5 secs, then it should play on your TV).
I believe this method work with other video service too as long as you can get their true URL, basically you just need an mp4 file or something URL
Vimeo is already working on an app. It appears that once the SDK goes out of preview there will be a whole glut of casting apps.
Just found the method to work with putlocker as well. When playing putlocker video, to the bottom right it allow you to "download" the video, I just right click and copy the link and past it directly to step 4 above. And it works
I combined http://googlecast.github.io/cast-chrome/ with an apache instance on my macbook air to natively stream an .mp4 to the chromecast, no transcoding or webrtc.
Can the video be paused / resumed?
Sent from my Galaxy Nexus using Tapatalk 4 Beta
even 720 tab casting is good with my setup but for some reason i couldn't get OP solution to work smooth enough. it pauses rather than stutters.
cmstlist said:
Can the video be paused / resumed?
Sent from my Galaxy Nexus using Tapatalk 4 Beta
Click to expand...
Click to collapse
Yep there is a set of control at the bottom when you click on the chromecast to activate it. You can pause stop volume... I been having good luck with multiple video providers... Best of luck to all until we can get official support. The trick is all about the true url of the streaming video and the github website still wondering who made that site. I am trying to study the code, but I am not white listed so it is limited
Sent from my Nexus 7 using Tapatalk HD
sort of off topic question:
does it cast the highest resolution available when used natively? for example youtube, does it send 1080 when the video is available in 720 and 1080? i hope they would offer more bitrate/resolution settings in the future.
Sent from my One S using xda app-developers app
mannequin said:
sort of off topic question:
does it cast the highest resolution available when used natively? for example youtube, does it send 1080 when the video is available in 720 and 1080? i hope they would offer more bitrate/resolution settings in the future.
Sent from my One S using xda app-developers app
Click to expand...
Click to collapse
From what I see, as long as your source from Internet has 1080p then yeah. This is direct streaming, so it work like those YouTube 1080p video directly to Chromecast. However I think you would need pretty good Internet for that. I always have trouble with smooth 1080p streaming even on computer.
Sent from my Nexus 7 using Tapatalk 4
python2121 said:
I combined http://googlecast.github.io/cast-chrome/ with an apache instance on my macbook air to natively stream an .mp4 to the chromecast, no transcoding or webrtc.
Click to expand...
Click to collapse
Sounds very cool, care to share how you did it?
pmgreen said:
Sounds very cool, care to share how you did it?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2388915
I know this is a really old post but does this still work or is there an alternative?
Nothing appears under "Select a device to launch this activity"
Flatuglance said:
I know this is a really old post but does this still work or is there an alternative?
Nothing appears under "Select a device to launch this activity"
Click to expand...
Click to collapse
No, it doesn't work any more. Google disabled all of these unofficial casting apps by introducing a "whitelist" of allowed apps in their August firmware update. That's one of the reasons why we've dubbed it the Google CrippledCast in our house.
DJames1 said:
No, it doesn't work any more. Google disabled all of these unofficial casting apps by introducing a "whitelist" of allowed apps in their August firmware update. That's one of the reasons why we've dubbed it the Google CrippledCast in our house.
Click to expand...
Click to collapse
...and @Kyonz developed KyoCast to have a custom whitelist, and Team Eureka released Eureka-ROM which lets you use Google's whitelist, Team Eureka's whitelist (which allows things like AllCast, fling and a few other third-party apps), or a completely custom list of your own.
Of course all of that requires root, which isn't possible for newer Chromecasts...
you can use curl to play video directly on chromecast
If you have whitelisted device (via Kyocast/ EurekaROM) you can play supported video formats using curl directly to chromecast.
curl -H "Content-Type: application/json" http://<your_chromecast_ipaddress>:8008/apps/Fling -X POST -d "<your_video_link>"
where <your_video_link> is the video link from internet.
<your_chromecast_ipaddress> is the ip address of your chromecast
Still no direct Chromecast support in the Vimeo player, but if you have Plex, the Vimeo channel in Plex works with the Chromecast.
Has anyone found a way to send videos from XBMC addons such as mash up or 1channel to chromecast? It uses online streams usually just regular mp4 files. I know Google updated the Chromecast and that broke some apps but I also has read sometime else might have found a way to do it using WebRTC some how. Anyways I look forward to the day I can have XBMC on my laptop or tablet and send videos to the Chromecast like I can with Netflix and YouTube. Any info I'm this would be great.
Sent from my Nexus 7 using Tapatalk 4
Link_of_Hyrule said:
Has anyone found a way to send videos from XBMC addons such as mash up or 1channel to chromecast? It uses online streams usually just regular mp4 files. I know Google updated the Chromecast and that broke some apps but I also has read sometime else might have found a way to do it using WebRTC some how. Anyways I look forward to the day I can have XBMC on my laptop or tablet and send videos to the Chromecast like I can with Netflix and YouTube. Any info I'm this would be great.
Sent from my Nexus 7 using Tapatalk 4
Click to expand...
Click to collapse
I would like to know more about this too. Allcast has a time bomb.
I don't really understand why there isn't more interest in getting XBMC to work with Chromecast. It would basically let you watch anything you could possibly want to.
Off of a pi there's a good kit on eBay for 80 I believe it was...
I would love to do this!!!
would love it
I don't even use my Chromcast but this feature would change that.
A few problems with this, first SDK is still in preview mode and they haven't opened it up so everyone can add support for their apps willynilly. This means even if someone had a solution that works the way google wants their system to work they couldn't widely release it since it'd work on only devices that have been whitelisted for development.
You could possible treat whatever you want to view as a webpage and make it possible to watch something from XBMC using the tab casting feature, but this isn't as optimal as the just send a link and have the chromecast pull up the content itself. So this method doesn't really work on low powered devices meaning you definitely couldn't do it from the chromecast.
Another issue with running xbmc on a pi and using chromecast for the video feeds is you'd need a either a way to send the main menu to the chromecast so you could see it as you navigate it, or you'd need a second display just to navigate through the menus on the Pi. Not horribly efficient that second option.
GabrialDestruir said:
A few problems with this, first SDK is still in preview mode and they haven't opened it up so everyone can add support for their apps willynilly. This means even if someone had a solution that works the way google wants their system to work they couldn't widely release it since it'd work on only devices that have been whitelisted for development.
You could possible treat whatever you want to view as a webpage and make it possible to watch something from XBMC using the tab casting feature, but this isn't as optimal as the just send a link and have the chromecast pull up the content itself. So this method doesn't really work on low powered devices meaning you definitely couldn't do it from the chromecast.
Another issue with running xbmc on a pi and using chromecast for the video feeds is you'd need a either a way to send the main menu to the chromecast so you could see it as you navigate it, or you'd need a second display just to navigate through the menus on the Pi. Not horribly efficient that second option.
Click to expand...
Click to collapse
I think the pi guy just meant setup a pi for XBMC and connect it to your TV without chrome cast. I want to use XBMC on my laptop or tablet and cast the videos to my chromecast.
Sent from my Nexus 7 using Tapatalk 4
Link_of_Hyrule said:
I think the pi guy just meant setup a pi for XBMC and connect it to your TV without chrome cast. I want to use XBMC on my laptop or tablet and cast the videos to my chromecast.
Sent from my Nexus 7 using Tapatalk 4
Click to expand...
Click to collapse
Ah well in that case, setting up a pi with xbmc is completely irrelevant to the chromecast, and has already been done http://www.raspbmc.com/
Edit: I realize the pi guy was saying this was possible with a Pi. But if someone is here they've most likely already bought a Chromecast as opposed to a Pi
It would be nice to see XBMC support in some way. Though I have currently switched to plex since you can pull up the interface via web and watch movies that way you can tab cast it rather nicely with a decent enough computer.
We probably won't see official support for plex or xbmc until the sdk comes out of preview release and you're not required to get your device whitelisted for the features to work, unless either group gets the preferential partner treatment like netflix, hulu, and pandora.
Well if everything I have read on this thread is correct I will not be buying a Chromecast soon.
I don't regret getting the chrome cast is totally worth it just for YouTube, Netflix, and Hulu.
Sent from my Galaxy Nexus using Tapatalk
XBMC over Chromecast through Avia
Using Smartphone - XMBC can be watched over Chromecast through Avia Player which costs $2.99. YouTube Video shows how.
http://youtu.be/vS-7hwYe4nw
Using Computer - XMBC can be watched over Chromecast through Avia Player which costs $2.99. YouTube Video shows how.
http://youtu.be/NCgP0r5Dvp8
Good Luck
Chromecast streaming could happen easily. You do not need to physically have a menu on chromecast...look at all the other apps like Netflix hulu. You pick what you want on your phone and throw it to chromecast. They just need to work in a casting button for XBMC and then all will be good since most videos are mp4 anyway
Sent from my Nexus 5 using Tapatalk
I would love this as I just want a all in one solution that works perfect that dont cost me a arm and a leg and yet to find it.. this is close.. I got netflix hulu. I want amazin instant and xbmc.
(I have a ouya and a rasp pi but I just like how this works a lot better)
We have provided a free software Wondershare DreamStream that can support chromecast your PC Video to HDTV
Rich video format support:MP4、AVI、MP4、MOV、WMV、MP3、M4A and much more
Download link: http://www.wondershare.com/dreamstream/
The official release version is on its way!
Hi everyone, this is mini wan from the Product Development Team at Wondershare. We would like to thank everybody
for their enthusiasm, support and valued insights into this beta. We are excited to announce the official release is
on its way, with future support for a wide range of devices. We’re also pleased to announce the inclusion of
optional Auto-Indexing based on your input and comments. Stay tuned for the latest version!
New version of this program just added Chromecast support. Looks promising, but very buggy (see below).
Information link: http://support.wondershare.com/media-center/
Download link on this page: http://support.wondershare.com/media-center/history.html
Wondershare is a Chinese company that has published a lot of low-cost video apps over the last several years. I've tried some of their video converters and DVD authoring programs. They are frequently given away on Giveawayoftheday.com. They have a full-featured video converter program, so it would be logical for them to have a Chromecast extension that could transcode. I'm also curious o see how this interacts with Chrome, since every other app I know that can cast to the Chromecast from a PC has to run within Chrome. I'll try it...
No good on Win7 64-bit, crashes a few seconds after starting:
MediaCenter has stopped working
Problem signature:
Problem Event Name: APPCRASH
Application Name: MediaCenter.exe
Application Version: 1.0.0.6
Application Timestamp: 5319ad9a
Fault Module Name: DeviceDiscovery.dll
Fault Module Version: 1.0.0.2
Fault Module Timestamp: 5318a4f7
Exception Code: c0000005
Exception Offset: 00001bd4
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Win7 32-bit on another computer: same crash
Also has an error on startup on WinXP and can't find the Chromecast (yes, I can cast from Chrome running on WinXP, I know it's not officially supported).
Error is: "The procedure entry point inet_pton could not be located in WS_32.dll"
That's 3 for 3. Obviously not ready for prime time. Better give it a few days for Wondershare to fix initial bugs before you waste time trying it.
Update: problem identified as an incompatibility with Roku media players on the same network.
Also note that it has a couple of types of bad behavior:
1. Installs Wondershare Helper to auto-run on Windows startup (common to their other apps, can be removed from startup without hurting anything)
2. Starts auto-indexing ALL drives and media files on your system without prompting to ask which folders you want to index. In fact it has no settings at all to control auto-indexing.
mini_wan said:
I found a free software Wondershare Media Center that can support chromecast your PC Video to HDTV
Rich video format support:MP4、AVI、MP4、MOV、WMV、MP3、M4A and much more
View attachment 2623016
View attachment 2623017
Click to expand...
Click to collapse
This program is running flawless
Big high five and thanks for finding it
neo4uo said:
This program is running flawless
Click to expand...
Click to collapse
What Windows version?
DJames1 said:
What Windows version?
Click to expand...
Click to collapse
Windows 8.1
Shame its windoze only. The installer runs fine under wine in linux and it completel the installation. Then the exe itself is .NET, and mono crashes when trying to load it.
neo4uo said:
Windows 8.1
Click to expand...
Click to collapse
Actually I don't think the problem is with the Windows version. I have my notebook here at at work that still has the Win7 32-bit version I tested with the Chromecast at home, and it doesn't crash when I run it here (although there's no Chromecast on the network here at work of course).
I don't think it's the absence of the Chromecast that's significant though, because I had inadvertently left the Chromecast USB cable unplugged the first time I tried it at home. The Chromecast wasn't on, but it still crashed that first time, same as subsequent times after I got the Chromecast turned on and connected properly.
I think it may be something else on my home network that is responding to the "DeviceDiscovery.dll" and confusing it into crashing. Let's see, my Roku 2 XS and my Android tablet are online all the time. Maybe one of those? I'll try disconnecting those later to see if it makes a difference. Or maybe it's something to do with the Chromecast having different historical IP addresses that are cached somewhere on my computer, and it's crashing when it tries to check one of those non-existent IP addresses?
worked like a charm here, but I can see the quality slightly reduced.. does anybody notice that? but overall recommend apps, can't wait to get a new update of this
keep it up guys.
Yes, the Roku was the problem - somehow it is returning a network response that crashes Wondershare Media Center.
But even though it's working now, the performance is disappointing. The video stutters, even with straightforward mp4 files. It's possible that may be because it's still indexing the large video collection on my secondary hard drive - but I didn't tell it to that, I don't want it to do that, and any software designer with an ounce of sense would have made indexing a low-priority thread.
DJames1 said:
Yes, the Roku was the problem - somehow it is returning a network response that crashes Wondershare Media Center.
But even though it's working now, the performance is disappointing. The video stutters, even with straightforward mp4 files. It's possible that may be because it's still indexing the large video collection on my secondary hard drive - but I didn't tell it to that, I don't want it to do that, and any software designer with an ounce of sense would have made indexing a low-priority thread.
Click to expand...
Click to collapse
probably because of that, the quality are quite decent in my side (playing 720p mp4 movie) I can see the pixel in my 50 Inch TV from very closer look , however from 1,5 - 2 meters it is acceptable and I dont see the quality degraded.
seems the method are similar with video stream cast extension, but VideoStream Cast extension definitely seems more mature than wondershare apps. but now my problem is solved, I can play mp4 files with .srt :good:
Nope, video continues to stutter after it has finished indexing, and it even loses audio sync while casting an mp4 file that doesn't need transcoding. I have a fast desktop computer (CPU utilization only 5% while Media Center is casting), and a good solid WiFi connection to the Chromecast. One time the Chromecast showed its "Brain Freeze" error message while Media Center was trying to cast to it. I think this app is just not ready for release. For the moment I'll stick with Videostream and do a quick conversion to mp4 if I have a file in an incompatible format. Media Center uninstalled for now, but I'll try it again when it's out of beta.
Tried playing an .avi and it stuttered a lot
win 8.1
I tried it on my PC with Windows 8.1, but it seems it can't find my Chromecast, it says "No cast devices found" =\
The download link doesn't seem to work for me! can anyone upload it somewhere and put the link here?
alakiha said:
The download link doesn't seem to work for me! can anyone upload it somewhere and put the link here?
Click to expand...
Click to collapse
+1
Download link on Wondershare website is broken.
Can anyone share it?
The Download link is to http://download.wondershare.com/cbs_down/media-center_full1694.exe, which is the version everyone has been testing for the last couple of days. They are probably updating it, which is a good idea since the testing showed it wasn't ready for general publication. Probably best just to be patient and wait to see if an update version shows up in the next few days.
DJames1 said:
The Download link is to http://download.wondershare.com/cbs_down/media-center_full1694.exe, which is the version everyone has been testing for the last couple of days. They are probably updating it, which is a good idea since the testing showed it wasn't ready for general publication. Probably best just to be patient and wait to see if an update version shows up in the next few days.
Click to expand...
Click to collapse
Everything related to Wondershare Media Center seems to have been removed from their web site.
www.wondershare.com/media-center/
Looks to me like it was deliberately removed...
Download link is dead.
Can any one upload it and share with us?
I have searched for a streaming app for windows, to chromecast... for long time now
lemondroid said:
Download link is dead.
Can any one upload it and share with us?
I have searched for a streaming app for windows, to chromecast... for long time now
Click to expand...
Click to collapse
This product will be on-line as soon as possible, we will inform you the first time
DJames1 said:
New version of this program just added Chromecast support. Looks promising, but very buggy (see below).
Information link: http://support.wondershare.com/media-center/
Download link on this page: http://support.wondershare.com/media-center/history.html
Wondershare is a Chinese company that has published a lot of low-cost video apps over the last several years. I've tried some of their video converters and DVD authoring programs. They are frequently given away on Giveawayoftheday.com. They have a full-featured video converter program, so it would be logical for them to have a Chromecast extension that could transcode. I'm also curious o see how this interacts with Chrome, since every other app I know that can cast to the Chromecast from a PC has to run within Chrome. I'll try it...
No good on Win7 64-bit, crashes a few seconds after starting:
MediaCenter has stopped working
Problem signature:
Problem Event Name: APPCRASH
Application Name: MediaCenter.exe
Application Version: 1.0.0.6
Application Timestamp: 5319ad9a
Fault Module Name: DeviceDiscovery.dll
Fault Module Version: 1.0.0.2
Fault Module Timestamp: 5318a4f7
Exception Code: c0000005
Exception Offset: 00001bd4
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Win7 32-bit on another computer: same crash
Also has an error on startup on WinXP and can't find the Chromecast (yes, I can cast from Chrome running on WinXP, I know it's not officially supported).
Error is: "The procedure entry point inet_pton could not be located in WS_32.dll"
That's 3 for 3. Obviously not ready for prime time. Better give it a few days for Wondershare to fix initial bugs before you waste time trying it.
Update: problem identified as an incompatibility with Roku media players on the same network.
Also note that it has a couple of types of bad behavior:
1. Installs Wondershare Helper to auto-run on Windows startup (common to their other apps, can be removed from startup without hurting anything)
2. Starts auto-indexing ALL drives and media files on your system without prompting to ask which folders you want to index. In fact it has no settings at all to control auto-indexing.
Click to expand...
Click to collapse
Got it, thanks!:good:
Hello XDA Developers,
I need some to developers to build an app.
The idea as that to add the network media devices (XBMC, Upnp..) to the list of Cast To.
Example -
You are watching a video using Youtube app.
You press the cast button (It will show the list of all network media devices)
You cast the video to XBMC
XBMC plays it on your TV or Monitor
Now use Youtube app as the remote for the playback
Thank You.
quappic said:
Hello XDA Developers,
I need some to developers to build an app.
The idea as that to add the network media devices (XBMC, Upnp..) to the list of Cast To.
Example -
You are watching a video using Youtube app.
You press the cast button (It will show the list of all network media devices)
You cast the video to XBMC
XBMC plays it on your TV or Monitor
Now use Youtube app as the remote for the playback
Thank You.
Click to expand...
Click to collapse
Not sure that can be done via an App I think it is all incorporated into the Media Router library of Android.
It might be possible to hack that and replace it or make the changes to a custom rom using that library though.
Asphyx said:
Not sure that can be done via an App I think it is all incorporated into the Media Router library of Android.
It might be possible to hack that and replace it or make the changes to a custom rom using that library though.
Click to expand...
Click to collapse
Libraries are inside the apps... so I dont think custom rom will affect it! (I may be wrong... not so knowledgeable about ROMs)
But I guess we can use the Xposed Framework's hook method to access it... And change it to search for all devices.... (Easier said then done!)
I need help to pinpoint that function in the Media Router Library....
quappic said:
Libraries are inside the apps...
Click to expand...
Click to collapse
Not in this case...That library is part of Android itself and Apps can use it but it is not in the app itself.
The app merely calls to that android library.
Asphyx said:
Not in this case...That library is part of Android itself and Apps can use it but it is not in the app itself.
The app merely calls to that android library.
Click to expand...
Click to collapse
I did find a app called 'Cast to Upnp/Dlna for GMusic' which seems to do the job..
It also claims that it will show network devices also in the cast to list in Chrome... (When you play using play music and chrome... I dosent work for me though... But works through the app.)
I guess it emulates upnp devices to be Chromecast.
Anyhow dismantled the apk. But could not make sense..
its too complicated due to obfuscated code! I am stuck here! :/
quappic said:
I did find a app called 'Cast to Upnp/Dlna for GMusic' which seems to do the job..
It also claims that it will show network devices also in the cast to list in Chrome... (When you play using play music and chrome... I dosent work for me though... But works through the app.)
I guess it emulates upnp devices to be Chromecast.
Anyhow dismantled the apk. But could not make sense..
its too complicated due to obfuscated code! I am stuck here! :/
Click to expand...
Click to collapse
Perhaps I am not understanding what you want...
It's easy to make an app that can include those other targets in an app but it's not possible to have that work in other apps Cast menu.
AT least not that I know of.
If anyone could do this it would be Koush who makes Allcast and supports what your looking for.
Asphyx said:
Perhaps I am not understanding what you want...
It's easy to make an app that can include those other targets in an app but it's not possible to have that work in other apps Cast menu.
AT least not that I know of.
If anyone could do this it would be Koush who makes Allcast and supports what your looking for.
Click to expand...
Click to collapse
How to include them in an app?
If we find it how to add those targets then...
We can use Xposed to add that to other cast apps too! (For now...)
Koush made allcast as an regular which is no use in this situation :/
You need the developers for those apps to support the feature...Only they can change how their own app works.
In the meantime check out BubbleUPnP out as it does what you want AND transcodes provided you have a PC to run the Server software on.
It will allow you to select just about any target device on your network that supports DLNA, UPnP and DIAL.
Asphyx said:
You need the developers for those apps to support the feature...Only they can change how their own app works.
In the meantime check out BubbleUPnP out as it does what you want AND transcodes provided you have a PC to run the Server software on.
It will allow you to select just about any target device on your network that supports DLNA, UPnP and DIAL.
Click to expand...
Click to collapse
As the casting uses another library (here Mediarouter of v7 android support library) to search for the chromecast devices.... We can use Xposed to hook the search method (hypothetically) and make it search for Upnp devices too...
I am aware of BubblePnP (same developer as of Cast to UPNP/DLNA for GMusic app)
But it dose not serve the propose.....
Like when you are watching a youtube you can simply cast it to XBMC and control the playback through the youtube app (Thats the feature I want)
But when you use BubblePnP we share a youtube video link (Non-Streaming) which then the upnp looks up using youtube plugin for it (Not every device have that plugin) then they play (their is also chance that it cant play it... restrictions for example.... even though you can play it on your mobile)
I guess the best step would be study the mediarouter library to check things out!
Let me disassemble the Google Play Music app and try to look how does it cast....
quappic said:
As the casting uses another library (here Mediarouter of v7 android support library) to search for the chromecast devices.... We can use Xposed to hook the search method (hypothetically) and make it search for Upnp devices too...
I am aware of BubblePnP (same developer as of Cast to UPNP/DLNA for GMusic app)
But it dose not serve the propose.....
Like when you are watching a youtube you can simply cast it to XBMC and control the playback through the youtube app (Thats the feature I want)
But when you use BubblePnP we share a youtube video link (Non-Streaming) which then the upnp looks up using youtube plugin for it (Not every device have that plugin) then they play (their is also chance that it cant play it... restrictions for example.... even though you can play it on your mobile)
I guess the best step would be study the mediarouter library to check things out!
Let me disassemble the Google Play Music app and try to look how does it cast....
Click to expand...
Click to collapse
I agree completely with the goal and feature, I'm just not sure you can hijack 3rd party calls to the Media Router library, insert the extra device search (or enable the ones that are there) and have them display in some App that has JUST CCast support to display DLNA targets as well.
If anyone is capable of that I would suspect he posts here! LOL
I would ask Koush Ditta about the viability...
But I wasn't shooting down the idea, just the notion that you could hack or patch the device to list those targets for any app that uses the Cast menu.
Asphyx said:
I agree completely with the goal and feature, I'm just not sure you can hijack 3rd party calls to the Media Router library, insert the extra device search (or enable the ones that are there) and have them display in some App that has JUST CCast support to display DLNA targets as well.
Click to expand...
Click to collapse
Sounds very hacky.
The flip-side, and I think what they mentioned, was to have a "middleman" piece that emulates a Chromecast, similar to how BubbleUPnP Server can pull stuff from other sources on behalf of a DLNA/UPnP receiver.
Problem is, all the Chromecast emulators (LeapCast, CR Cast, CheapCast) seem to have been broken by the enhanced signing security in the Cast SDK 2.0
Asphyx said:
I agree completely with the goal and feature, I'm just not sure you can hijack 3rd party calls to the Media Router library, insert the extra device search (or enable the ones that are there) and have them display in some App that has JUST CCast support to display DLNA targets as well..
Click to expand...
Click to collapse
CCast supported apps can send DLNA targets as they just send a streaming URL (According to log of Play Music...)
Anyway I disassembled the Play Music app. Great thing is that code is not obfuscated... But need a lot of work to understand the code...
@bhiga I did not understand completely!
But as far as I understood (may be wrong) is that you are saying to emulate a DLNA device as a chromecast, right?
But cant devices like XBMC directly get the streaming URL and stream it? (Confused) :/
quappic said:
CCast supported apps can send DLNA targets as they just send a streaming URL (According to log of Play Music...)
Anyway I disassembled the Play Music app. Great thing is that code is not obfuscated... But need a lot of work to understand the code...
@bhiga I did not understand completely!
But as far as I understood (may be wrong) is that you are saying to emulate a DLNA device as a chromecast, right?
But cant devices like XBMC directly get the streaming URL and stream it? (Confused) :/
Click to expand...
Click to collapse
Can maybe if they wanted to...But some like PLEX do not.
And I don't see anyway to hack into and get Plex to show DLNA targets in that menu by hijacking the calls to the Media router...
Truth is the Media router should do this already and perhaps it even does and the apps that are using are limiting the list on their end...
---------- Post added at 07:19 PM ---------- Previous post was at 07:11 PM ----------
bhiga said:
Sounds very hacky.
The flip-side, and I think what they mentioned, was to have a "middleman" piece that emulates a Chromecast, similar to how BubbleUPnP Server can pull stuff from other sources on behalf of a DLNA/UPnP receiver.
Click to expand...
Click to collapse
Yes it is rather hacky...What might be possible is something along what y2cast did which would instead of making a CCast a DLNA target did the opposite.
I know full well it is possible to get a listing of all devices (DLNA and CCAST) in an App...Allcast does this and Bubble finds these devices as well.
But thats because the developers of those apps had the good sense to put the code needed to get those listings.
Now you know I never say anything code related is impossible but in this case I find it hard to see how you could get an app whose developer did not have this foresight to code it in themself, to start displaying devices they had no intention of streaming to.
While both devicxe types may use linkage to stream the linkage used is VERY VERY different where a CCast sends a link to load a Player with Parameters and the other merely sends a link to the source media.
That would have to be accounted for in the App itself as the media router does none of that work for you that I know of.
quappic said:
CCast supported apps can send DLNA targets as they just send a streaming URL (According to log of Play Music...)
Anyway I disassembled the Play Music app. Great thing is that code is not obfuscated... But need a lot of work to understand the code...
@bhiga I did not understand completely!
But as far as I understood (may be wrong) is that you are saying to emulate a DLNA device as a chromecast, right?
But cant devices like XBMC directly get the streaming URL and stream it? (Confused) :/
Click to expand...
Click to collapse
Apps will only find what they're looking for. If they're looking for a Chromecast or Google Cast device, they will only find Chromecast and Google Cast devices. They will not find DLNA devices.
Likewise, if a app is looking for DLNA devices, it will only find DLNA devices, not Chromecast devices.
So in order for those apps to see other things, there must be some kind of translation or proxy.
This is where the idea of a Chromecast "emulator" or "masquerader" could come in.
The DIAL documentation probably has enough for the discovery aspect.
Once seen, the second half of the equation is whether the receiver is sent something that it knows how to use.
Most DLNA implementations do not restrict formats to only things Chromecast can use. So even if Chromecast is seen, it still may not work.
Thus, as Asphyx said, it's better for the application itself to support Chromecast natively, so it can make sure it only sends things that Chromecast and Google Cast devices can handle - or on the flip side, make sure to only send DLNA-compatible requests to DLNA devices.
The only other option would be to standardize the media router to encompass all target types and be a mediator involved in all links sent...
Not a good way to go really. Limits 3rd Party developers to what they could do and send to devices that are targets.
That said the apps themselves should already being putting this support into their apps because if you feel it is worth supporting a CCast then it's probably just as important to you to be able to cast to other renderers...
Bubble and Allcast do this already as do some others...
I have been waiting for the same thing to happen in Plex's cast menu...
I looked into the Google Play Music APK... and Chormecast API...
Found something which may get us started.... (A big May be.. Also assuming the Stream URL will work with other devices)
Here it is...
According to the Chromecast API
This line should be present in the App for the lifetime of its run
Code:
mMediaRouter = MediaRouter.getInstance(getApplicationContext())
So I searched for it in the APK code...
As it must be some where called when it searches for CCast devices
Found 4 usages.... under....
Code:
com.google.android.music - onCreate
com.google.android.music.cast - getSelectedRouteOnMainThread
com.google.android.music.playback - onCreate
com.google.android.music.ui.mmp - onCreate
4 possible paths.... Took the variable name and ignored...
Going to the next part of CCast API is to build a builder in the mediaRouterSelector.....
API Code...
Code:
mMediaRouteSelector = new MediaRouteSelector.Builder()
.addControlCategory(CastMediaControlIntent.categoryForCast("YOUR_APPLICATION_ID"))
.build();
Searched for it using the found variable name....
Only one usage under
Code:
com.google.android.music.ui.mmp - onCreate
The line.....
Code:
this.mMediaRouteSelector = new MediaRouteSelector.Builder().addControlCategory("android.media.intent.category.LIVE_AUDIO").addControlCategory("android.media.intent.category.REMOTE_PLAYBACK").addControlCategory("com.google.cast.CATEGORY_CAST").addControlCategory("com.google.cast.CATEGORY_CAST_APP_NAME:" + getCastAppName()).addControlCategory(str).build();
So did some queries (May be wrong again) and found that adding control category "com.google.cast.CATEGORY_CAST" filters CCast devices form all devices....
So, I made a Xposed App... to hook to that addControlCategory and read the parameters it receives... And if it has string 'cast' in it... null it...
Xposed Code....
Code:
//Google Play Music
if(lpparam.packageName.equals("com.google.android.music")) {
XposedBridge.log("Connected to Process: " + lpparam.packageName);
final Class<?> hookClass = XposedHelpers.findClass("android.support.v7.media.MediaRouteSelector", lpparam.classLoader);
XposedBridge.log("Injecting code now on" + lpparam.packageName + " : " + hookClass.toString());
XposedBridge.hookAllMethods(hookClass, "addControlCategory", new XC_MethodHook() {
@Override
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
Log.d("Hook", "Hooked! to addControlCategory");
Log.d("Hook", "Parmas: " + param.args[0].toString());
if(param.args[0].toString().contains("cast")) {
param.args[0] = null;
Log.d("Hook", "Params: Null (changed)!");
}
}
});
}
But I am stuck here.... Xposed seems to be attached to the process and their are no problems in the Xposed logs...
But their is no Debug Log for the hooked method....
No log shows for the received parameters!
Need some help here... Check the code.....
Hope it will be in some use!
Nothing guys? :/
@Asphyx
@bhiga
??
quappic said:
Nothing guys? :/
@Asphyx
@bhiga
??
Click to expand...
Click to collapse
Sorry, I know very little about Xposed Framework. Looks like something that would be a time sink for me, so I'm avoiding.
bhiga said:
Sorry, I know very little about Xposed Framework. Looks like something that would be a time sink for me, so I'm avoiding.
Click to expand...
Click to collapse
Leave Xposed Framework for minute...
But will the theory work? What do you think about it?
Getting the devices listed in the Menu is easy....
The issue is getting every program that it could show up on to send the proper linkage.
You won't be able to use an exposed framework for that.
Your going to have to create code for each and every app or an app like the y2cast app that mimics a CCast and converts links sent to it in DLNA Format.
While you can get the device listed it's almost impossible to get the hooks into each app t make those apps support DLNA if they do not already.
Your best bet is to create that opposite of y2cast and make an emulator that makes DLNA devices into CCasts instead of making CCast a DLNA renderer like y2cast does.
Then you don't need to hook into the menu listing operation the emulator merely gets discovered like any other DIAL device and when links get sent to it it converts those links to a proper DLNA send format.