<p>To receive state changes and other events from the player you need to set listeners. There are mandatory and optional ones, but all of these listeners have to be set prior to calling <code class="java">ustreamPlayer.attach()</code> on your player instance. This should happen in the <code class="java">onResume()</code> callback of your Activity or Fragment. Calling <code class="java">attach()</code> is an important step, this is where your listeners and the player view is bound to the library. Forgetting to call this will cause the player to not render video on your view, and you will not receive any callback on your listeners.</p>
0 commit comments