Baseflow / XamarinMediaManager

Cross platform Xamarin plugin to play and control Audio and Video
https://baseflow.com
MIT License
762 stars 305 forks source link

getFrameAtTime: videoFrame is a NULL Pointer #848

Open tallmanBS opened 2 years ago

tallmanBS commented 2 years ago

I'm using in forms with

var mediaItem = await CrossMediaManager.Current.Extractor.CreateMediaItem(inURL); 
var image = await CrossMediaManager.Current.Extractor.GetVideoFrame(mediaItem, TimeSpan.FromSeconds(0));

and getting in the Device log

Time    Device Name Type    PID Tag Message
02-09 17:17:45.848  pixel_5_-_api_30    Error   4044    MediaMetadataRetrieverJNI   getFrameAtTime: videoFrame is a NULL pointer
02-09 17:17:45.848  pixel_5_-_api_30    Error   437 MetadataRetrieverClient failed to capture a video frame

and image comes back null. Some videos work and I get an image, and some I get this null. IN all cases the videos actually play, it just doesn't get a frame. I've tried different timespans, and not sure what else to do.

Any help appreciated! Thanks for this tool!