Category : casting

I am trying to implement Chromecast functionality using casty sdk. Ref: https://github.com/DroidsOnRoids/Casty But always getting Fatal Exception: java.lang.IllegalArgumentException width and height must be > 0 android.view.View.draw (View.java:21594) Below is my code //Oncreate() casty = Casty.create(this) .withMiniController(); casty.setOnConnectChangeListener(new Casty.OnConnectChangeListener() { @Override public void onConnected() { Util.showToast(getApplicationContext(), "Connected"); casty.getPlayer().loadMediaAndPlay(createSampleMediaData()…); } @Override public void onDisconnected() { Util.showToast(getApplicationContext(), "Disconnected"); ..

Read more