VideoViewΒΆ
We wanted to show the various exercises in a video that everyone could replicate. We did not want to implement a YouTube function because we wanted to have our own videos rather than relying on YouTube. To begin, we need an empty activity file, which you can create using the Android Studio IDE. Then, navigate to the XML file you just created and the go-to widgets, and add the VideoView element.
If you drag that into your activity, you can change the layout, but it will not function directly. To make it play videos, we need to write some Java code first.
1 2 |
|
1 2 3 4 5 6 7 8 |
|