Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It's unfortunate that the Dash.js receiver won't let you use the RAMP namespace, but their current implementation isn't quite correct RAMP anyway (You're going to have to change a few things on the receiver end). Documentation on RAMP is pretty scarce and it's rather frustrating that Google hasn't released the source for their Chromecast libraries for iOS and Android. However, I decompiled the Android library using Java Decompiler (<a href="http://jd.benow.ca/" rel="nofollow">http://jd.benow.ca/</a>) to learn some of the details. You can also bring up your whitelisted Chromecast device in the browser and watch the Web Sockets to see what kinds of RAMP messages it's sending and receiving. </p> <p>However, everything you want to modify in MediaProtocolMessageStream is final which means a perfect RAMP implementation for your sender is just outside your grasp. You could write your own MessageStream using the decompiled code as guidance, but I chose to use reflection hacking to force change the namespace in MediaProtocolMessageStream.</p> <pre><code>public class CustomMediaProtocolMessageStream extends MediaProtocolMessageStream { private static final String NAMESPACE = "org.dashif.dashjs"; public CustomMediaProtocolMessageStream() { super(); // Hack Google's hardcoded namespace which doesn't work with the DASH receiver. try { // This is the field where MessageStream stores the namespace. If you decompile the jar you can see it's named 'b'. Field field = MessageStream.class.getDeclaredField("b"); field.setAccessible(true); field.set(this, NAMESPACE); } catch (Exception e) { Log.e(TAG, "problem changing namespace:" + e.getMessage()); } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload