The difficulty you’re going through with the subtitle management panel being obscured by the video space on iPhones in portrait mode whereas utilizing videoJS might be associated to the stacking context and z-index of the weather concerned. Listed below are just a few solutions to assist resolve the issue:
Test the z-index values: Make sure that the subtitle management panel and different {custom} parts have a better z-index worth than the video aspect. You’ll be able to set the z-index explicitly for these components utilizing CSS to make sure they seem above the video. For instance:
css
.subtitle-control-panel {
z-index: 9999; /* or any larger worth */
}
.custom-component {
z-index: 9999; /* or any larger worth */
}
Use place:relative or place:absolute: Apply place:relative or place:absolute to the subtitle management panel and different {custom} parts. Generally, the default place:static may cause points with the stacking order. Experiment with completely different positioning choices to see if it helps in resolving the difficulty.
Alter the stacking context: Components with a better stacking context will seem above components with a decrease stacking context. If the video aspect has a better stacking context than the subtitle management panel, it could trigger the difficulty. You’ll be able to strive adjusting the stacking context of the video and subtitle management panel components by making use of place:relative or place:absolute together with a better z-index worth to the father or mother aspect of the subtitle management panel.
Test for any father or mother components with overflow or clipping: If any father or mother components of the subtitle management panel or video have overflow:hidden or are making use of every other clipping conduct, it would have an effect on the visibility of the subtitle panel. Ensure that the father or mother components don’t have any unintended clipping or overflow settings that might disguise the subtitle management panel.
Take a look at with the newest model of videoJS: Though you talked about that you’re utilizing videoJS 8.3.0, it is value checking if there are any newer variations accessible. Upgrading to the newest model of videoJS may embody bug fixes or enhancements that might probably resolve the difficulty.
Take into account different approaches: If the difficulty persists, you possibly can take into account different approaches to displaying the subtitle management panel. For instance, you possibly can strive positioning the subtitle management panel exterior the video space, overlaying it on high of the video aspect utilizing absolute positioning. This manner, it will not be affected by the z-index or stacking context of the video aspect.
Take a look at on completely different iOS variations: It is attainable that the difficulty is particular to sure iOS variations or Safari browser variations. Take a look at your {custom} internet video participant on completely different iOS variations and Safari browser variations to see if the difficulty persists or if it is particular to a selected atmosphere.
If none of those solutions resolve the difficulty, it may be useful to offer further particulars, such because the HTML and CSS code associated to the video participant and subtitle management panel, or any particular error messages or warnings you encounter. This data can help in additional figuring out the reason for the issue.