Skip to content
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

Fix Ambient Mode not working for videos after restart #2255

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

craftgeil
Copy link
Contributor

This should fix #1641

const video = songVideo?.querySelector<HTMLVideoElement>('.html5-video-container > video');
const video = await waitForVideo();

async function waitForVideo() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see

waitForElem(selector: string) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,

I tried to comply with your request, however I am not able to edit the code to your wishes, due to my lack of knowledge and experience. My current version involved a lot of experimenting as well as asking ChatGPT for help.

So if anyone else would be able to take a look and edit it accordingly, that would be great. If not, please close this request and I will continue to build the app myself with my suboptimal fix.

@JellyBrick JellyBrick added the bug Something isn't working label Jul 28, 2024
@JellyBrick JellyBrick changed the base branch from master to fix/ambient-mode July 31, 2024 12:59
@JellyBrick JellyBrick merged commit 252346d into th-ch:fix/ambient-mode Jul 31, 2024
6 checks passed
JellyBrick added a commit that referenced this pull request Jul 31, 2024
…art (#2294)

* Fix Ambient Mode not working for videos after restart (#2255)

This should fix #1641

* fix: fix waitForElement

---------

Co-authored-by: craftgeil <80261988+craftgeil@users.noreply.github.com>
iryis pushed a commit to iryis/th-ch-ytmusic that referenced this pull request Aug 1, 2024
…art (th-ch#2294)

* Fix Ambient Mode not working for videos after restart (th-ch#2255)

This should fix th-ch#1641

* fix: fix waitForElement

---------

Co-authored-by: craftgeil <80261988+craftgeil@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Plugin 'Ambiant Mode'
2 participants