cta-wave / dpctf-tests

Repo for DPCTF Tests. We prefer to keep the Tests separated from Test Runner
Other
1 stars 5 forks source link

truncated-playback-and-restart__splice_main_splice_ad.html failed in London plugfest #156

Open jpiesing opened 3 months ago

jpiesing commented 3 months ago

truncated-playback-and-restart__splice_main_splice_ad.html failed on all 8 TVs in the London plugfest.

yanj-github commented 2 months ago

I have noticed the duplication happens at the truncating. The playback displayed from frame number 1 to frame number 128, then 'representation_change' detected from the status. It displays frame 1 to 37 of the 1st presentation which is duplicated. Then it changed to 2nd presentation and started from frame 49.

jpiesing commented 2 months ago

Here is an analysis of this test on another device.

image

Basically the end of the second presentation is not output. Some possible reasons I can think why this might happen are;

I assume the second of these is more likely than the first.

Looking at the source code, test.done() is called in response to the "ended" event being fired. If the buffer underflowed and decoding stopped with frames still in the buffer because the TV didn't know the end of the content had been reached then this would be consistent.

MediaSource.endOfStream appears to be called from closeBuffer which in turn is called from closeStream. I can see the call to closeStream for the first presentation but not for the second.

image

@FritzHeiden Can you investigate when MediaSource.endOfStream is called for the second stream? What am I missing?

FritzHeiden commented 2 months ago

Calling endOfStream is now reported as an event in the QR code and logged to the console which is saved along with the results. #174 #175

jpiesing commented 1 month ago

2024-05-14: Keeping this one open to track the resolution of the issue.