About Video viewer options button (webviewer-video)

WebViewer Version:
@pdftron/webviewer”: “^8.7.0”,
@pdftron/webviewer-video”: “^4.26.6”,

Do you have an issue with a specific file(s)?
No.

Can you reproduce using one of our samples or online demos?
Yes.

Are you using the WebViewer server?
No.

Does the issue only happen on certain browsers?
Yes.

Is your issue related to a front-end framework?
No.

Is your issue related to annotations?
No.

Please give a brief summary of your issue:
(Think of this as an email subject)
About Video viewer options button (webviewer-video)

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

Question 1.
Frames button is hidden in Mac Safari.
Will it be available in the future?

in windows chrome.

Question2.
I want to hide it if I can’t use it.
But, I can’t.
I followed steps this.

target data-element=“video-ViewerOptions”

Other Buttons can be hidden this way.

Best Regards.

Please provide a link to a minimal sample where the issue is reproducible:

Hi,

For question 1: unfortunately not as safari performs weirdly with the combo of video + audio.
For question 2: Apryse Documentation | Documentation is what you’re looking for. Disabling it through the constructor will not work, but programmatically disabling it after initializing the video viewer should work (after await initializeVideoViewer)

Thank you for your replay.

For question 2: Apryse Documentation | Documentation is what you’re looking for. Disabling it through the constructor will not work, but programmatically disabling it after initializing the video viewer should work (after await initializeVideoViewer)

No.
It is not work.

This is my program.

WebViewer({ ...options }, wvElement).then(async (instance: WebViewerInstance)  => {

  await initializeVideoViewer(instance, {...options});

  this.viewerInstance.UI.disableElements([
    'video-ViewerOptions',   // not work
    'zoomOverlayButton',     // work
   ]);
});

‘zoomOverlayButton’ is work.
I think so ‘video-ViewerOptions’ is problematic.

Best Regards.

Hello,

video and audio menu items can’t be disabled through disableElements. WebViewer doesn’t know about them. But there is a workaround you can add your custom css to hide the button. You need to create a css file and then pass it through the webviewer constructor. See: Apryse Documentation | Documentation

Here is what your constructor would look like:
WebViewer(
{
path: ‘/webviewer/lib’,
css: ‘/ui.css’,
},
viewer.current,
)

And ui.css would look like this:

[data-element=“video-ViewerOptions”] {
display: none; // hide the menu item for video
}

After you have used this css the menu button will be hidden. See screenshot:
Screen Shot 2023-04-20 at 1.39.13 AM

Let me know if you need any more help.

-Kristian