Skip to content

Commit

Permalink
fix(FEC-14080): Accessibility fix for the top bar and the bottom bar
Browse files Browse the repository at this point in the history
  • Loading branch information
SivanA-Kaltura committed Sep 16, 2024
1 parent 124b0d7 commit cb40886
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/pip/pip-parent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,17 @@ export class PipParent extends Component<PIPParentComponentProps> {
videoContainerRef = createRef<HTMLDivElement>();

componentDidMount() {
const {player,playerType} = this.props;
if(playerType === PlayerType.VIDEO){
const {player, playerType} = this.props;
if (playerType === PlayerType.VIDEO) {
const videoElement = player.getVideoElement();
videoElement.removeAttribute('disablePictureInPicture');
}
const videoFilter = document.createElement('div');
// TODO use ui.style.videoFilter after player version upgrade
videoFilter.classList.add('playkit-video-filter');

this.videoContainerRef?.current?.appendChild(player.getVideoElement());
this.videoContainerRef?.current?.appendChild(videoFilter);
}

render(props: PIPParentComponentProps) {
Expand Down

0 comments on commit cb40886

Please sign in to comment.