MediaPlayer question

So I am trying to make something of a video player and I am using MediaPlayer and a temporary .mp4 file to achieve that. Basically there is another thread other than the UI thread that has an OutputStream writing to the file (No need to question that part I know it sounds weird but the part where the outputstream is writing to the file works.) Now when I try to use the seek() method of the MediaPlayer and go to the time where I know for sure there is data the MediaPlayer stops. When I check its status it says PLAYING and if I skip around that area it usually starts playing as normal again. This whole thing probably sounds a bit convoluted but I have my reasons and I am wondering if this is because of the MediaPlayer class (perhaps because of some buffering behaviour) or something else and if it is because of the MediaPlayer are there alternatives I can use(maybe ones that directly take in a stream or ones that don't have the issue that's causing this whole mess). If there is anything I need to clarify so I can help you help me I will try to the best of my ability.
1 Reply
JavaBot
JavaBot2y ago
This post has been reserved for your question.
Hey @nikcho-kouhai! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here. 💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.
Want results from more Discord servers?
Add your server