Comments (3)
π Thanks for opening your first issue here! π
If you're reporting a π bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
from video.js.
@morskoyzmey This behavior is specific to the mediaElement
. The recursion should stop by itself after a few executions, because if the same value is passed to the mediaElement
, it is not supposed to emit a new volumenchange
event. But it is possible to do something like:
videojs.getAllPlayers().forEach((player) => {
player.on('volumechange', () => {
const volume = player.volume();
videojs.getAllPlayers().forEach((playerToUpdate) => {
if (player === playerToUpdate || playerToUpdate.volume() === volume) return;
playerToUpdate.volume(volume);
});
});
});
from video.js.
That behaviour I barely met in any API I've used before.
This is the same behaviour of a plain video element. volumechange
is triggered when you set <video>.volume
to a new value.
from video.js.
Related Issues (20)
- AudioTrackKind misalignment re description(s) HOT 4
- 18188346394291764?s_bl=1&s_fbp=iev1-1&s_prp=hel3-1&s_sw=0&s_tids=1&s_vt=ig&a=AbyzeDsRHihJINSg HOT 1
- How to reload vtt subtitles tracks?
- DURATION ISSUE BUG HOT 2
- VideoJS player not working on Opera, FireFox and Safari HOT 2
- Still facing issue with progress bar not completing 100% HOT 4
- Uncaught SyntaxError: Unexpected token ( and Uncaught ReferenceError: videojs is not defined in chrome v 53 HOT 2
- Error Playing m3u8 videoοΌ1. VIDEOJS: ERROR: (CODE:3 MEDIA_ERR_DECODE) video append of 96872b failed for segment #0 in playlist 3 οΌ2. VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) The media could not be loaded, either because the server or network failed or because the format is not supported. HOT 5
- Automatically select HLS when available HOT 3
- How to get frame rates and bit rates with video js and next js with version 8.12.0 HOT 1
- Can't play hls stream in some mobile devices using chrome HOT 2
- TransientButton: WARN: removeClass was called with an element that doesn't exist HOT 1
- error code 2 and error code 4 HOT 3
- enableDocumentPictureInPicture doesn't appear to be working as expected as an inline option HOT 5
- MP4 video not working on Tizen 6.5 HOT 1
- Issue handling expiring tokens HOT 1
- [Performance] Keep moving progress bar seeker causes player stuck HOT 4
- audio unknown HOT 1
- Hotkey Webos
- Captions Settings menu buttons don't work on mobile. 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 video.js.