This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
fix single mode & improve invalid path handling #8926
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixes single play mode. And handles invalid paths cleanly
References
closes #insert number here
Explanation
🤖 Generated by Copilot at c8f1fac
getNextTrack
function to determine the next track to play based on the media resources, the current track, and the play mode (link, link)updateMediaElement
function to usegetNextTrack
function and handle different play modes consistently (link, link)updateMediaElement
function to set themedia.ended
andmedia.track
values before loading the media element (link)updateMediaElement
function to set themedia.ended
andmedia.waiting
values in case of an error while loading the media element (link)MediaReactor
function to update the media element whenever themedia.playMode
value changes (link)🤖 Generated by Copilot at c8f1fac
QA Steps
List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.
Checklist