Cast shell android

575 views
Skip to first unread message

Stefan Isidorovic

unread,
Dec 24, 2015, 7:34:10 AM12/24/15
to Chromium-discuss
Hi,

I'm trying to understand how cast playback function on android. I succeeded to build Cast.apk, with libcast_shell_android.so and libcast_media_1.0.so. But apk itself is crushing heavily.

I tried to replace libraries inside of existing Google Cast Receiver. But after that Google Cast Receiver also start crushing.

My goal is to add additional logs inside of components which I see that are triggered in logcat to see and better understand cast playback underneath.


So far I build libcast_shell_android.so and libcast_media_1.0.so from chromium sources, but cannot replace those libraries successfully.

How I can (if I can at all) replace those libraries?
Are same libraries used in Google Cast Receiver? (As I know so far, according to logs I see it should be same code).

Error logs which I get are primary with some crash dump buffer (index related or cannot create) or error regarding to load library...


Luke Halliwell

unread,
Dec 28, 2015, 11:46:29 PM12/28/15
to Chromium-discuss
Build/install as described here: https://www.chromium.org/developers/how-tos/build-instructions-cast

As stated there, that apk is not functionally equivalent to Google's Cast apk (which is built with additional non-public code).

Additionally, since the test suite for Cast apk in Chromium is somewhat light, there may be some breakage from time to time.  That situation should improve in time.

Stefan Isidorović

unread,
Dec 29, 2015, 3:55:22 AM12/29/15
to hall...@chromium.org, Chromium-discuss
I did it as described and successfully build .apk file. I get error when I try to start to cast some yt video. But its crashing.

My primary goal is to see logs which I added during casting some video. So I tried to use .apk cast which I built from chromium source. My second attempt was to replace libs which Google Cast Receiver targets (they should be same libraries which came along with Chromium cast .apk or not?)


I tried to avoid error which I get by commenting code for crush dump buffer but I didnt get much :-/ Can I somehow cast some playback on any way just to see logs, I'm interested to know how and with which components cast playback interacts with Android itself.


Thanks


--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Luke Halliwell

unread,
Dec 29, 2015, 9:52:46 AM12/29/15
to Chromium-discuss, hall...@chromium.org
You can't cast to the apk that you build from Chromium sources.  As the build instructions show, you can pass a URL to cast shell from the command line (am start -d).  If you're interested in playback, you can specify a URL of a page containing video.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

Stefan Isidorović

unread,
Dec 29, 2015, 10:00:02 AM12/29/15
to hall...@chromium.org, Chromium-discuss
Sorry for botherin... When you say url page containing video is it enough to pass yt link? Because I tried to pass some yt link (even link which google cast receiver target on load yt.com/castv2). but I get just plain view. Is there way to control casted page?

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Luke Halliwell

unread,
Dec 30, 2015, 8:52:32 AM12/30/15
to Chromium-discuss, hall...@chromium.org
There is no way to control the cast page.  If you want to see video playback, you should pick a URL that autoplays.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.
Reply all
Reply to author
Forward
0 new messages