Hi there,
I'm having some occassional issues with MediaPlayer playback - this specifically appears to occur on the ARM64 Hololens 2 but this is more a question around MediaPlayer APIs.
I am using MediaPlayer/MediaStreamSample to decode and render a live H264 stream. Everything is working pretty well, but ocassionally when running the SampleLag (https://learn.microsoft.com/en-us/uwp/api/windows.media.core.mediastreamsourcesamplerenderedeventargs.samplelag?view=winrt-19041) will continually get reported as negative from the start of a stream (and never recover). The visual result of this is about a second or two of additional latency behind "realtime". Most of the time the SampleLag will be consistent ~30ms and effectively be rendering in real-time correctly. A teardown of the MediaPlayer will usually fix it even while keeping the live stream up, which suggests the stream itself is okay.
I can't figure out why this is happening and all timestamps seem to be correct. Does a negative SampleLag not mean that the MediaPlayer thinks it's rendering the frames ahead of when they should be shown? Is that possible in a live stream? My MediaPlayer is operating in realtime mode with real time playback, frame server and isLive all turned on; buffer time 0; can seek false.
This problem does seem to be localized to ARM64 but I can't 100% guarentee that.