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

Start video if clicking timestamp in description #627

Open
Perflyst opened this issue Jul 7, 2019 · 7 comments
Open

Start video if clicking timestamp in description #627

Perflyst opened this issue Jul 7, 2019 · 7 comments
Labels
enhancement Improvement of an existing feature good first issue Good for newcomers

Comments

@Perflyst
Copy link
Contributor

Perflyst commented Jul 7, 2019

If clicking a timestamp in description the video does not start and I thought something is broken. I had to click the timestamp in description and than the play button.

I think it makes sense that the video starts automatically after clicking the timestamp.

Example: https://invidio.us/watch?v=tBiPumGnVT4

@omarroth omarroth added the enhancement Improvement of an existing feature label Jul 8, 2019
@leonklingele
Copy link
Contributor

What about the following patch?

diff --git a/src/invidious/comments.cr b/src/invidious/comments.cr
index e060fe4..217963f 100644
--- a/src/invidious/comments.cr
+++ b/src/invidious/comments.cr
@@ -482,7 +482,7 @@ def replace_links(html)
       end

       anchor["href"] = "javascript:void(0)"
-      anchor["onclick"] = "player.currentTime(#{length_seconds})"
+      anchor["onclick"] = "player.currentTime(#{length_seconds}); player.play();"
     end
   end

@omarroth
Copy link
Contributor

omarroth commented Aug 6, 2019

LGTM, mind opening a PR?

@github-actions
Copy link

github-actions bot commented Jan 2, 2021

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

@github-actions github-actions bot added the stale label Jan 2, 2021
@Mennaruuk
Copy link

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

Stale yourself, bot! This is a good suggestion. As far as I can see, on my iPhone X, the video plays after every time stamp I click in the description box. Should this issue be closed?

@github-actions github-actions bot removed the stale label Jan 30, 2021
@Mennaruuk
Copy link

I'm not sure what OP means.

  1. Do they want the video to play whenever they click any of the timestamps in the description box, regardless of whether the video was already playing or paused? In that case, this behavior isn't currently implemented as far as I can see.

  2. Do they want the video to play whenever they click any of the timestamps in the description box, but so long as the video is already playing and isn't paused? In that case, yes, that's what's going on right now.

@github-actions
Copy link

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

@github-actions github-actions bot added the stale label Jan 31, 2022
@Mennaruuk
Copy link

Stale yourself again, bot!

@github-actions github-actions bot removed the stale label Jan 31, 2022
@syeopite syeopite added the good first issue Good for newcomers label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement of an existing feature good first issue Good for newcomers
Projects
Status: To Do - Player/Video playback
Development

No branches or pull requests

5 participants