在抖音這款應用中,有時候我們會在鎖屏狀態(tài)下觀看視頻,但是這時候播放的聲音會一直持續(xù),影響到我們的使用體驗。那么,如何在抖音鎖屏后關閉播放聲音呢?本文將為您詳細介紹。
方法一:使用系統(tǒng)設置
首先,請確保您的手機已經(jīng)開啟了“懸浮窗”權限。進入手機設置 -> 應用管理 -> 抖音 -> 權限管理 -> 懸浮窗管理,勾選允許懸浮窗。
下載并安裝一個名為“懸浮球”的應用,這是一款可以控制手機懸浮窗的工具。您可以在應用商店中搜索“懸浮球”進行下載。
打開“懸浮球”應用,點擊右下角的“+”按鈕,選擇“添加懸浮窗”。
在彈出的窗口中,找到并點擊抖音的圖標,然后點擊“確定”。這樣就創(chuàng)建了一個抖音的懸浮窗。
返回手機桌面,雙擊屏幕喚醒懸浮窗。此時,您應該可以看到抖音的懸浮窗出現(xiàn)在屏幕上。
在抖音懸浮窗中,找到并點擊音量圖標,將其調(diào)整為最小或者關閉狀態(tài)。這樣就可以在鎖屏狀態(tài)下關閉抖音的播放聲音了。
方法二:使用快捷指令
同樣地,首先請確保您的手機已經(jīng)開啟了“懸浮窗”權限。進入手機設置 -> 應用管理 -> 抖音 -> 權限管理 -> 懸浮窗管理,勾選允許懸浮窗。
下載并安裝一個名為“快捷指令”的應用,這是一款可以創(chuàng)建自定義操作的工具。您可以在應用商店中搜索“快捷指令”進行下載。
打開“快捷指令”應用,點擊右下角的“+”按鈕,選擇“創(chuàng)建快捷方式”。
在彈出的窗口中,輸入以下正文:
--enable-content-viewer
--disable-popup-blocking
--user-script-enabled
--app-package="com.ss.android.ugc.aweme" --url "https://www.douyin.com/video/123456789" --action "android.intent.action.VIEW" --data "media='@raw/resource/media/video'" --data "mimeType='video/*'" --data "outputFormat='true'" --data "outputPath='%TEMP%'" --data "title=Video" --data "description=A description of the video" --data "imageUri=null" --category "android.intent.category.DEFAULT" --flags SEND_TO_BACKGROUND --extra-window-overlay "videoView;* flags=#object *;action=android.intent.action.VIEW;z-index=9999999;display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:transparent;" --extra-window-simple "videoView;* flags=#object *;action=android.intent.action.VIEW;z-index=9999999;display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;background-color:transparent;" --extra-window-button "CLOSE_SYSTEM_DIALOGS" --extra-window-button-shortcut "Ctrl+Alt+W" --extra-window-button-shortcut-modifiers Control_Alt_Shift
--if-exists '}' && ((--url='}') || (--url='file:///storage/emulated/0/Download/}')) && ((--mimeType='}') || (--mimeType='video/*')) && ((--outputFormat='true') || (--outputFormat='false')) && ((--outputPath='%TEMP%') || (--outputPath='$EXTERNAL_STORAGE')) && ((--title='Video') || (--title='}')) && ((--description='A description of the video') || (--description='}')) && ((--imageUri=null) || (--imageUri='$IMAGES')) && ((--category='android.intent.category.DEFAULT') || (--category='}')) && ((--flags=SEND_TO_BACKGROUND) || (--flags='')) && ((--extra-window-overlay="}") || (--extra-window-overlay="}")) && ((--extra-window-simple="}") || (--extra-window-simple="}")) && ((--extra-window-button="}") || (--extra-window-button="}")) && ((--extra-window-button-shortcut="}") || (--extra-window-button-shortcut="}")) && ((--extra-window-button-shortcut-modifiers="}") || (--extra-window-button-shortcut-modifiers="}")) && exitApp()
點擊右下角的“+”按鈕,將剛剛創(chuàng)建的快捷指令保存到手機中。
打開,點擊右下角的“我”,然后點擊“更多功能”->“快捷指令”。在快捷指令列表中找到剛才創(chuàng)建的快捷指令,點擊它即可在鎖屏狀態(tài)下關閉抖音的播放聲音。