Ignore representations which use incompatible codecs for TrickMode#2984
Conversation
|
It's not the job of the DASH parser to filter compatible tracks, it should just parse and report the manifest. This would be better done in |
|
@TheModMaker In stream #2846 there are two representations with two different codecs (H264 and H265). Since right now there is only one trickMode track, if I choose H265 (which is the one that comes first) and then filter, I leave the user without that track. With my change this would not happen, since H264 would be chosen. I understand the parser shouldn't do this, but the change would be to add trickMode (#872) multi-track support and then do filtering (this is much more complex). |
|
In that case, how about just comparing the codec of the trick mode track to match the parent? We don't support codec switching, so the stream filtering will do this anyway. Then, you should include a comment referencing #1528. You can use |
|
@TheModMaker I updated the implementation based on your comment. Can you check again? |
| const variant = manifest.variants[0]; | ||
| const trickModeVideo = variant && variant.video && | ||
| variant.video.trickModeVideo; | ||
| expect(trickModeVideo).toBeUndefined(); |
There was a problem hiding this comment.
I suggest changing this to use trickModeVideo field directly. That ensures we don't get false-positive if the video is null.
| expect(trickModeVideo).toBeUndefined(); | |
| expect(manifest.variants[0].video.trickModeVideo).toBeFalsy(); |
|
All tests passed! |
Resolves: #2846 Backported to v2.5.x Change-Id: Ic708cec867bc3c84f911c585a5000b21c92e55d5
Resolves: #2846