August 7, 2020
Disable closed captions in mobile
Like
(5)
Comments
(2)
5
2
I am creating a responsive e-learning project that is compatible with larger (desktop, laptop) and smaller (mobile) screens, however, closed captions have a hard time fitting in mobile size screens and overlap the content.
I am wondering if there is a way we can disable cc when they do not fit in the screen.
Thanks in advance.
2 Comments
2020-08-12 07:57:05
There is a system variable cpInfoMobileOS. It will be equal to 0 for desktop/laptop. That could allow you to turn off CC for all devices which do use iOS (var=1) or Android (var=2). However that will include also tablets which are using a mobile browser. You may need JS to detect also the width of the browser to turn off CC with the system variable cpCmndCC?
Like
(2)
Add Comment
You must be logged in to post a comment.