<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                從6.3版本開始,JxBrowser提供的API允許在加載的網頁上靜音/取消靜音,并檢查音頻是否靜音。 要使音頻靜音,請使用以下代碼: ``` browser.setAudioMuted(true); ``` 要檢查音頻是否靜音,請使用以下代碼: ``` boolean audioMuted = browser.isAudioMuted(); ``` 整個示例演示如何在打開的網頁上靜音音頻 并檢查音頻是否靜音如下: ``` import com.teamdev.jxbrowser.chromium.Browser; import com.teamdev.jxbrowser.chromium.swing.BrowserView; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; /** * This sample demonstrates how to mute audio sound on the opened web page * and check whether audio is muted or not. */ public class MuteAudioSample { public static void main(String[] args) { final Browser browser = new Browser(); BrowserView view = new BrowserView(browser); final JButton muteAudioButton = new JButton(); muteAudioButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { browser.setAudioMuted(!browser.isAudioMuted()); updateButtonText(muteAudioButton, browser); } }); updateButtonText(muteAudioButton, browser); JFrame frame = new JFrame(); frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE); frame.add(muteAudioButton, BorderLayout.NORTH); frame.add(view, BorderLayout.CENTER); frame.setSize(700, 500); frame.setLocationRelativeTo(null); frame.setVisible(true); browser.loadURL("https://www.youtube.com/"); } private static void updateButtonText(final JButton button, final Browser browser) { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { button.setText(browser.isAudioMuted() ? "Unmute Audio" : "Mute Audio"); } }); } } ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看