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

Added default volume feature #340

Merged

Conversation

vivsh1999
Copy link
Contributor

πŸ› οΈ Fixes Issue

Fixes #311

Related Issue/Addition to code

  • Issue goes here

πŸ‘¨β€πŸ’» Changes proposed

  • Added youtube iframe API
  • Added default volume as 50%
  • Fixed loop video logic (it was crooked before)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

βœ”οΈ Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • This PR does not contain plagiarized content.
  • The title of my pull request is a short description of the requested changes.

πŸ“„ Note to reviewers

  • changes in index.html page are for adding youtube's iframe api.
  • the first think that gets called is onYouTubeIframeAPIReady when it gets initiated.

πŸ“· Screenshots

Original Updated
** original screenshot ** updated screenshot **

@netlify
Copy link

netlify bot commented Oct 17, 2022

βœ… Deploy Preview for mogulchristmas ready!

Name Link
πŸ”¨ Latest commit 7bcabfc
πŸ” Latest deploy log https://app.netlify.com/sites/mogulchristmas/deploys/634d709eae5bbb0009984431
😎 Deploy Preview https://deploy-preview-340--mogulchristmas.netlify.app/
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

index.js Show resolved Hide resolved
@vivsh1999
Copy link
Contributor Author

@KendallDoesCoding this PR adds youtube iframe API which opens doors to more flexible video controls in future

@KendallDoesCoding
Copy link
Owner

@KendallDoesCoding this PR adds youtube iframe API which opens doors to more flexible video controls in future

So, that's why when we click a song the text and stuff moves down. It's ok if there's no other option to do this, but it's good that it's invisible.

@KendallDoesCoding
Copy link
Owner

Will review in a bit.

@vivsh1999
Copy link
Contributor Author

@KendallDoesCoding this PR adds youtube iframe API which opens doors to more flexible video controls in future

So, that's why when we click a song the text and stuff moves down. It's ok if there's no other option to do this, but it's good that it's invisible.

actually that behavior was there earlier too. I have tested and it works as the old one. Also I will suggest creating a issue for adding volume, pause/play, buffer loading controls. Assign this to me please.

@KendallDoesCoding
Copy link
Owner

actually that behavior was there earlier too.

oh yeah, i didn't realize

Copy link
Owner

@KendallDoesCoding KendallDoesCoding left a comment

Choose a reason for hiding this comment

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

Hi, it's still not working.

Unless, I got it wrong. What I believe this is supposed to do is set a standard volume of 50% per song, right?

So, even when the last YouTube video I watched is on mute, this should be 50%, but maybe it doesn't work like that.

@KendallDoesCoding
Copy link
Owner

Also, I believe that @KlausMikhaelson was assigned to work on this in #311. In future, if you want to work on a issue, please mention in that issue.

By doing this, no-ones time gets wasted, incase I merge your PR and @KlausMikhaelson has already nearly done from his part but not yet opened the PR, get what I mean, right?

Now, that you've opened the PR it's okay though!

@KlausMikhaelson
Copy link

uhhh actually as I mentioned earlier @KendallDoesCoding on the issue I was able to fix it by this approach but thought of trying to do it with kind of api that is already present, lol my bad but just make sure to ask before making a pr in future @sharmavivek223

@KendallDoesCoding
Copy link
Owner

uhhh actually as I mentioned earlier @KendallDoesCoding on the issue I was able to fix it by this approach but thought of trying to do it with kind of api that is already present,

oh ok, i forgot lol. sorry

@KlausMikhaelson
Copy link

nw!!!, gotta complete the other issues now asap lol

@vivsh1999
Copy link
Contributor Author

vivsh1999 commented Oct 19, 2022

uhhh actually as I mentioned earlier @KendallDoesCoding on the issue I was able to fix it by this approach but thought of trying to do it with kind of api that is already present, lol my bad but just make sure to ask before making a pr in future @sharmavivek223

sorry about that, I'll keep that in mind.

@KendallDoesCoding this is working as it should be I tried opening a song in youtube and played on mute, then I played the first song from list in a new tab it was played at 50% volume.
Correct me if I missed something.

@KendallDoesCoding
Copy link
Owner

@KendallDoesCoding this is working as it should be I tried opening a song in youtube and played on mute, then I played the first song from list in a new tab it was played at 50% volume.

Oh, it didn't work for me. But, will try it again maybe this time locally.

@vivsh1999
Copy link
Contributor Author

@KendallDoesCoding this is working as it should be I tried opening a song in youtube and played on mute, then I played the first song from list in a new tab it was played at 50% volume.

Oh, it didn't work for me. But, will try it again maybe this time locally.

great, just so you know I tried both locally and on generated preview url

@vivsh1999
Copy link
Contributor Author

Any updates @KendallDoesCoding ?

@KendallDoesCoding
Copy link
Owner

@KendallDoesCoding this is working as it should be I tried opening a song in youtube and played on mute, then I played the first song from list in a new tab it was played at 50% volume.

Oh, it didn't work for me. But, will try it again maybe this time locally.

It still isn't working for me. Can you share a screen recording with desktop audio so I can see how it deploys for you?

@KendallDoesCoding
Copy link
Owner

@sharmavivek223 - I request @TechStudent10 or another contributor to review this as it maybe a problem from my end.

Steps to be done:

  • Go to YouTube
  • Mute a YouTube Video
  • Open the deploy preview website
  • See if song plays
  • If song plays, let us know. If it doesn't, let us know.

@TechStudent10
Copy link
Collaborator

Yeah, no. Sorry can't rn.

@TechStudent10
Copy link
Collaborator

I'll have to see if I get any free time

@KendallDoesCoding
Copy link
Owner

Yeah, no. Sorry can't rn.

Hi, It's not involving any coding. Just a reviewing process. It will take barely 1 minute.

@KendallDoesCoding
Copy link
Owner

Just follow the steps I shared and we're good to go.

@TechStudent10
Copy link
Collaborator

Yeah, no. Sorry can't rn.

Hi, It's not involving any coding. Just a reviewing process. It will take barely 1 minute.

I'm free now. I can take a look.

@TechStudent10
Copy link
Collaborator

@KendallDoesCoding The music plays after muting the video on my system. Better do more testing though to see if it's a one-off.

My browser is Brave, if you need it.

@KendallDoesCoding
Copy link
Owner

KendallDoesCoding commented Nov 5, 2022 via email

@KendallDoesCoding
Copy link
Owner

Thanks for your contribution @sharmavivek223.

@KendallDoesCoding KendallDoesCoding merged commit ca25440 into KendallDoesCoding:main Nov 5, 2022
KendallDoesCoding added a commit that referenced this pull request Nov 5, 2022
- add line to Important section, referencing the changes made in #340 .
- move important section above in the README (as it's important πŸ˜† ).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[YOUTUBE API] Standard volume for songs played using the website
4 participants