SimpleExoPlayer android java play video online

<ol> <li>Add gradle.properties</li> </ol> <pre> android.useAndroidX=true android.nonTransitiveRClass=true android.enableJetifier=true</pre> <p>2. Add in app build.gradle dependencies</p> <pre> implementation &#39;com.google.android.exoplayer:exoplayer:r2.4.0&#39; implementation &#39;com.google.android.exoplayer:exoplayer-core:r2.4.0&#39; implementation &#39;com.google.android.exoplayer:exoplayer-dash:r2.4.0&#39; implementation &#39;com.google.android.exoplayer:exoplayer-hls:r2.4.0&#39; implementation &#39;com.google.android.exoplayer:exoplayer-smoothstreaming:r2.4.0&#39; implementation &#39;com.google.android.exoplayer:exoplayer-ui:r2.4.0&#39;</pre> <p>3. Andoid manifest add permission for internet</p> <pre> &lt;uses-permission android:name=&quot;android.permission.INTERNET&quot;/&gt; &lt;uses-permission android:name=&quot;android.permission.ACCESS_NETWORK_STATE&quot;/&gt;</pre> <p>4. Layout for simpleexoplayer</p> <p><a href="https://medium.com/@hasperong/simpleexoplayer-android-java-play-video-online-197dc9b47cff">Website</a></p> <p>&nbsp;</p>