maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Making use of Chromecast on Sailfish (https://talk.maemo.org/showthread.php?t=93091)

juiceme 2014-04-28 09:16

Making use of Chromecast on Sailfish
 
It happeded that I got a Chromecast dongle as birthdy present from my brother-in-law. (http://www.google.com/intl/en/chrome...es/chromecast/)

Naturally the device is supported only with Android & iOS, but it seems that at least some of the API is available as "Google Cast Chrome Sender SDK". However this seems to be a high-level API that hides the actual ugly bit-twiddling parts that are the real meat of the day.

Now, does anyone have knowledge on implementing the casting protocols, so that the dongle could be made to do something useful with Jolla?

DJJonosound 2014-04-28 10:58

Re: Making use of Chromecast on Sailfish
 
You could probably use the chrome casting with the youtube app with the android app. I think the screen casting feature is still pretty hidden away as such and in dev. It seems it wouldn't be too difficult to implement the chrome cast sending thing, considering all it is is a web browser that you can stream to :p

juiceme 2014-04-28 12:47

Re: Making use of Chromecast on Sailfish
 
What makes that a bit difficult, is that I do not use Android applications on my Jolla and don't intend to do so.
Call it a matter of principle, I am not going to poison my device with non-native SW :D

thedead1440 2014-04-28 12:52

Re: Making use of Chromecast on Sailfish
 
I read somewhere on somebody being able to use Chromecast unofficially with Windows Phone so maybe reading up on that might help...

juiceme 2014-04-28 17:02

Re: Making use of Chromecast on Sailfish
 
I've now made some progress with the device.

When powered on, it apparently creates a WLAN access poit with ssid "Chromecast4583" and is willing to accept connections, granting DHCP lease for an IP address 192.168.255.252.
The other end acts as a GW and presents itself at 192.168.255.249.

There's just 2 ports open, DNS and 8008. The device seems to be waiting for something on the latter port, and does not give an indication of what exactly is it.

pasko 2014-04-28 17:41

Re: Making use of Chromecast on Sailfish
 
Hi.
Googling a bit I found https://plus.google.com/+LeonNicholls/posts/Md6py81N2Ag
However the ip addresses do not match your addresses.
Regards

juiceme 2014-04-28 18:06

Re: Making use of Chromecast on Sailfish
 
Quote:

Originally Posted by pasko (Post 1423196)
Hi.
Googling a bit I found https://plus.google.com/+LeonNicholls/posts/Md6py81N2Ag
However the ip addresses do not match your addresses.
Regards

So it looks like it is some sort of uPNP variant.

juiceme 2014-04-28 18:27

Re: Making use of Chromecast on Sailfish
 
Yes, it indeed is :D

Code:

juice@horseye:~$
juice@horseye:~$ curl http://192.168.255.249:8008/ssdp/device-desc.xml
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
  <specVersion>
    <major>1</major>
    <minor>0</minor>
  </specVersion>
  <URLBase>http://192.168.255.249:8008</URLBase>
  <device>
    <deviceType>urn:dial-multiscreen-org:device:dial:1</deviceType>
    <friendlyName>Chromecast4583</friendlyName>
    <manufacturer>Google Inc.</manufacturer>
    <modelName>Eureka Dongle</modelName>
    <UDN>uuid:6f7b3dee-7903-b74b-42d3-3d703aa36e81</UDN>
    <iconList>
      <icon>
        <mimetype>image/png</mimetype>
        <width>98</width>
        <height>55</height>
        <depth>32</depth>
        <url>/setup/icon.png</url>
      </icon>
    </iconList>
    <serviceList>
      <service>
        <serviceType>urn:dial-multiscreen-org:service:dial:1</serviceType>
        <serviceId>urn:dial-multiscreen-org:serviceId:dial</serviceId>
        <controlURL>/ssdp/notfound</controlURL>
        <eventSubURL>/ssdp/notfound</eventSubURL>
        <SCPDURL>/ssdp/notfound</SCPDURL>
      </service>
    </serviceList>
  </device>
</root>
juice@horseye:~$

Now I'll just have to think about how to implement an application to make use of it...

pasko 2014-04-28 18:50

Hi.
If I had to choose, I'd rather convert helium into a real Dlna player. ;)
Just kidding.
Regards.

Mikma 2014-05-01 10:25

Re: Making use of Chromecast on Sailfish
 
I've been tinkering with Jolla and Chromecast for awhile, and no luck.
I installed the Google Play -apk's because I need a working navigation for Jolla. The API didn't help either. The Chromecast program just can't find the devices in the local network.

I downloaded this https://play.google.com/store/apps/d...chromecast.app with http://apps.evozi.com/apk-downloader/ and installed it. The program ran but like I said, it couldn't find the two Chromecasts I had online (One is default, other one is rooted EurekaROM)


All times are GMT. The time now is 12:18.

vBulletin® Version 3.8.8