Open EkaterinaT89 opened 2 years ago
The exception is originated by the open
method of the FileDataSource
that reports that the remaining bytes to read is smaller than 0.
The report says, that this is happening on an emulator. To be honest, I don't know what CamaraX is recording on an emulator and what is stored in the path with that you created the PrgressiveMediaSource
. Can you as a first step repro this on an real device and see whether this fails in the same way?
If it does repro on a real device in the same way, can you check what is in this file that is stored on the file system, whether it actually exists and what it contains? If you can then attach the file here on the issue we can do some further investigations.
In any case, I suspect this is rather an issue with CameraX (probably specifically on an emulator) and producing the media and not with ExoPlayer playback. That's why it would be interesting to get the file, because then we can see whether this it is a vaild file and we can continue investigating the playback failure on our end.
ExoPlayer Version
2.18.1
Devices that reproduce the issue
Pisel 3 running Android 9 - emulyator
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
Expected result
We do can see preview of our video from camera
Actual result
We do NOT can see preview of our video from camera. Cautch this exeptions:
However we can watch a video after press a play button. I tried to call prepare(), play(), playwhenprepare = true.
Media
Video from cameraX on the phone.
Bug Report
adb bugreport
to dev.exoplayer@gmail.com after filing this issue.