mirror of
https://github.com/videojs/video.js.git
synced 2024-12-27 02:43:45 +02:00
@eXon made sure the volume persists between tech changes. closes #2340
This commit is contained in:
parent
75af988c86
commit
39d9989589
@ -75,6 +75,7 @@ CHANGELOG
|
||||
* @dmlap expose the xhr helper utility ([view](https://github.com/videojs/video.js/pull/2321))
|
||||
* @misteroneill fixed internal extends usage and added a deprecation warning ([view](https://github.com/videojs/video.js/pull/2390))
|
||||
* @eXon added the poster to the options the tech receives ([view](https://github.com/videojs/video.js/pull/2338))
|
||||
* @eXon made sure the volume persists between tech changes ([view](https://github.com/videojs/video.js/pull/2340))
|
||||
|
||||
--------------------
|
||||
|
||||
|
@ -637,6 +637,11 @@ class Player extends Component {
|
||||
*/
|
||||
handleTechReady() {
|
||||
this.triggerReady();
|
||||
|
||||
// Keep the same volume as before
|
||||
if (this.cache_.volume) {
|
||||
this.techCall('setVolume', this.cache_.volume);
|
||||
}
|
||||
|
||||
// Chrome and Safari both have issues with autoplay.
|
||||
// In Safari (5.1.1), when we move the video element into the container div, autoplay doesn't work.
|
||||
|
Loading…
Reference in New Issue
Block a user