TIPS:一般執行完1 就可以了
首先安裝必要的媒體編解碼器和插件:
sudo apt update
sudo apt install -y ubuntu-restricted-extras
sudo apt install -y ffmpeg
sudo apt install -y libavcodec-extra
sudo apt install -y gstreamer1.0-libav gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad
安裝 Firefox 的媒體插件:
sudo apt install -y firefox-plugin-vlc
sudo apt install -y vlc browser-plugin-vlc
檢查 DRM 內容支持:
打開 Firefox 在地址欄輸入:about:preferences
找到 “常規” 或 “General” 部分 滾動到 “Digital Rights Management (DRM) Content” 確保 “Play DRM-controlled content” 選項已啟用
清除 Firefox 緩存:
在地址欄輸入:about:preferences#privacy
點擊 “Clear Data” 選擇 “Cached Web Content” 點擊 “Clear”
更新 Firefox:
sudo apt update
sudo apt upgrade firefox
如果問題仍然存在,可以重置 Firefox:
mv ~/.mozilla ~/.mozilla.backup
firefox
檢查 HTML5 支持:
在 Firefox 地址欄輸入:about:support
查找 “Graphics” 部分,檢查硬件加速是否啟用
如果視頻播放時出現黑屏:
firefox about:config
安裝額外的多媒體支持:
sudo apt install -y \ gstreamer1.0-plugins-base \ gstreamer1.0-plugins-good \ gstreamer1.0-plugins-bad \ gstreamer1.0-plugins-ugly \ gstreamer1.0-libav \ gstreamer1.0-tools \ gstreamer1.0-x \ gstreamer1.0-alsa \ gstreamer1.0-pulseaudio
如果是特定網站的視頻問題:
檢查該網站是否需要特定插件 嘗試在隱私窗口中打開 檢查網站是否支持您的地區訪問
檢查系統聲音設置:
sudo apt install pavucontrol
pavucontrol
如果以上都不能解決問題:
sudo apt purge firefox
sudo apt autoremove
sudo apt install firefox