Skip to content

How to disable PictureInPicture in shaka player #5991

@vicky-allen

Description

@vicky-allen

I am using shaka player to play video,
I am getting picture in picture option on menu items along with quality, language and playback speed

I want to disable picture in picture from list

I tried to add disablePictureInPicture in video player but still getting PIP

  <video
        className="w-full h-full"
        data-testid="video-element"
        ref={videoRef}
        poster={posterUrl}
        autoPlay
        disablePictureInPicture
      ></video>

I tried to add custom configuration as well

 player.configure({
      abr: { enabled: true},
      streaming: {
        rebufferingGoal: 5,
        bufferBehind: 10*60,
        bufferingGoal: 30,
        failureCallback: failureCallbackHandler
      },
      'overflowMenuButtons' : ['quality','language','playback_rate']
    });

Still seeing PIP in UI

Also tried using native video player element

 videoRef.current.setAttribute('disablepictureinpicture', 'true');
      videoRef.current.disablePictureInPicture = true   

Still seeing PictureInPicture video player
Is there a way to disable PictureInPicture in shaka player

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: UIThe issue involves the Shaka Player UIpriority: P1Big impact or workaround impractical; resolve before feature releasestatus: archivedArchived and locked; will not be updatedtype: bugSomething isn't working correctly

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions