videojs/video.js
Auf GitHub ansehenVolume/Mute State Not Preserved Switching Between HTML5 and Flash Techs
Open
#2.066 geöffnet am 23. Apr. 2015
confirmedgood first issuepinnedunclaimed
Repository-Metriken
- Stars
- (39.742 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 111T 10h) (3 gemergte PRs in 30 T)
Beschreibung
I see 2 problems with volume/mute handling in videojs:
- Html5 and Flash tech are inconsistent handling volume and muted. Html5 maintains 2 separate variables to hold the value for
volume()andmuted(). Flash on the other hand setsvolume = 0whenmuted(true)is called. My guess is Html5 is the proper implementation desired. - The state stored for
volume()andmuted()are delegated to the Tech. Switching between Techs causes volume and muted states to be lost between the timeunloadTechandloadTechis called. A simple hack is to add a couple lines insideloadTechto save the state ofmutedandvolumeand then reapply those states inside thetechReadyfunction. Going forward, I feel the Player core should hold these states.
I'm working off a modified version of v4.12.5