XamarinMediaManager icon indicating copy to clipboard operation
XamarinMediaManager copied to clipboard

getFrameAtTime: videoFrame is a NULL Pointer

Open tallmanBS opened this issue 3 years ago • 0 comments

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!

tallmanBS avatar Feb 10 '22 00:02 tallmanBS