• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Play local videos in fragments

Tuxus

Lurker
Hello,
I'm building my first app for some time now, a kind of knowledge base, consisting of a main and a number of fragments.
Now I would like to gradually include short local video clips, which should be played in the fragments via Mediaplayer. I want to play either a single video in a fragment or several videos, each in its own media player. Between the single videos I place text views.
Unfortunately, I can't find any conclusive instructions on how to include a number of local videos so that only one or more specific videos are played per fragment (each in its own media player).
The instructions on YT mostly only deal with adding local videos to the MainActivity, and then only one video at a time in the app.

I hope you can help me with tips or with a link to a documentation.

Thanks a lot
 
After a lot of trial and error and piecing together code snippets from various videos, I did it. This closes the topic positively for the time being.
 
I'm glad to hear you got it figured out!

It would be great if you could share the code snippets that did the trick so that it can help others who might run into the same need.
 
Back
Top Bottom