-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove invalid item id usage as media source id #6396
base: release-10.10.z
Are you sure you want to change the base?
Conversation
Cloudflare Pages deployment
|
Marked as draft as I want to test some more scenarios, and perhaps get some insight from the original commit authors as to why it was added. |
The server returning no streams when mediaSourceId is defined is believed to be a server issue. See #6166 (comment) |
I believe this is not a server issue: we are querying for streams that match the given media source id, where the id we give is not a media source. An empty result is expected from an API point of view. |
86bb958
to
36ae3e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ESLint doesn't pass. Please fix all ESLint issues.
36ae3e3
to
3a5efbd
Compare
I think that selectively applying the fix might be a better idea than trying to figure out all scenarios where is does not apply. I do not have the data to test the intended scenario but this seems like the solution.
I propose to only apply the fix if the tracks are selected. |
3a5efbd
to
b984b91
Compare
@viown As I agree with #6166 (comment) that is might be a weird place to do this logic, I kept the |
@Kevinjil Could you re-target your branch to |
Looking at the change history, an ` || item.Id` was introduced in 4c31742 to query for the item, but this workaround is only needed for track selection in some cases and breaks playback in others. Only apply it when a track is selected.
b984b91
to
a0f0a0d
Compare
Done |
Quality Gate passedIssues Measures |
Adding |
Looking at the change history, it looks like an accidental
|| item.Id
was introduced in 4c31742 to query for the item, perhaps not realising it is later used in the query later on for server-side filtering. This was partially fixed by c54db60 andca47635 for Live TV by not setting this variable in that case.
Changes
Only use the fallback item id in the API call
Issues
Fixes #6395