Open misol101 opened 13 years ago
Ok, scratch that. It actually does play, it is my quickly made AudioPlayerActivity which does nothing but create FFMPeg and then setDataSource and start which seems to cause it. I don't see the difference, but it must be there :)
Oh, the difference was that the original FFmpgMovieView class actually calls setDisplay, which my activity didn't. If this is not called, then prepareAudio fails. I guess this could be considered a bug, since the documentation states "This call is optional. Not calling it when playing back a video will result in only the audio track being played." ?
When I tried to open a wma file with the browser (after removing the extension check in java code), it failed to play, after prepareVideo fails (not surprisingly).
So I modified the mediaplayer.cpp file to not call prepareVideo, only audio. Unfortunately prepareAudio fails too. It finds an audio stream and reaches the point where Output::AudioDriver_set is called, but this call unfortunately fails.
Can you help out?