Comments (2)
This is happening because in track-controls.component.html when <div class="misc-controls" *ngIf="!isMobile">
is removed and renters the DOM as a result of isMobile toggling, the default value of 10 (see below) is applied to the volume slider. When you toggle mute you can observe the accurate volume reflected.
<mat-slider
#volume
class="volume-slider"
min="0"
max="10"
step=".1"
value="10"
(input)="changeVolume($event.value)"
>
</mat-slider>
from music-web-player.
I see why it’s happening, but I’m not the best at JS. I’m sure Angular has a global resize event, maybe just make the element read lastVolume on that? Would that override the html? Or maybe just take out the value assignment in html all together and set default value once in JavaScript on initialization? I’m not sure what the best answer is here.
from music-web-player.
Related Issues (20)
- PLAY_ACTIVITY error when skipping songs
- Not Playing Explicit Content HOT 2
- New Album of Enter Shikari have no working buttons
- repeat button
- apple radio
- Can't skip songs from lock screen in samsung s9
- Request: Package for native desktop use
- No playing music at all
- Logged in and song/playlist/album won't play HOT 5
- [feature request] Love and Dislike Buttons
- Apple authentication won't work on chrome HOT 1
- Music that has been bought is not playing
- Want to contribute
- Airplay function
- Secure Connection Failed HOT 6
- financial support HOT 1
- server
- server
- Off-by-one when selecting song HOT 2
- [Bug] Black Screen When Loading /music-web-player/browse HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from music-web-player.