Chuyển đến nội dung chính

Play youtube videos when the screen is off on android device

How can I play youtube videos when the screen is off on my android device?

When your turn off your phone's screen, youtube videos will stop playing along with your apps. However, if you still want to listen to the audio of the video, you can do so by following these steps:

Step #1: 

Open browser (Chrome, Opera, Firefox, Brave...) and open your youtube video in this browser. Then click on the three dots icon located in the top-right corner (see below image)

Select "Desktop site" option, after which browser will reload to run youtube video in its PC version.

Step #2:
Then, when you back to your home screen (tap on the home icon on your phone), you will see something like this:

Now you can tap "play" to play the video, and then turn off your screen to continue listening.


In case you do not see your video displayed as shown in step 2, you must check the "Manage notifications" settings of your browser (Press on the browser icon, then select "App info")


In "Manage notifications", make sure to check the "Allow notifications" option:




Nhận xét

Bài đăng phổ biến từ blog này

Xóa nhanh tất cả dữ liệu trong một bảng Microsoft SQL Server bằng TRUNCATE

 Thường chúng ta sẽ  sử dụng câu lệnh DELETE để xóa dữ liệu, và xóa hết dữ liệu trong một bảng bằng câu lệnh có cú pháp "delete from table <tên của bảng>". Cách xóa này thường rất mất thời gian, nếu dữ liệu trong bảng nhiều. Vậy có cách nào xóa nhanh hơn không? Chúng ta có thể sử dụng câu lệnh TRUNCATE để xóa tất cả dữ liệu trong bảng với thời gian nhanh hơn nhiều so với sử dụng câu lệnh xóa thông thường. Nhưng có một số vấn đề cần phải lưu ý khi thực hiện truncate dữ liệu của một bảng, đó là: - Truncate sẽ xóa hết tất cả (lưu ý là "tất cả" nhé) - Không truncate được khi bảng có khóa ngoại (trừ trường hợp khóa ngoại trong chính bảng cần xóa) - Khi đã truncate rồi khi không có cửa để phục hồi lại như sử dụng lệnh delete đâu nha. Cú pháp: TRUNCATE TABLE <TÊN BẢNG> Một số sql script hữu ích sử dụng kèm: 1. Giảm dung lượng theo phần trăm Cách này sẽ giảm kích thước của database (gồm cả file data và file log) xuống duy trì 10% free cho database: DBCC SHRINKDA

Windows Server - Khắc phục lỗi Windows Server 2016/2019/2022 tự shutdown sau khi hết hạn trial

Khắc phục Windows Server tự shutdown sau khi hết hạn trial Sau khi thời gian trial của Windows Server 2016/2019/2022 hết thời gian trial, Windows sẽ tự shutdown. Có thể xem trong Event Viewer > Windows Logs > System: Để tăng thời gian trial, có thể thực hiện theo các bước sau:  Mở Windows PowerShell B1:  > slmgr -dlv B2: > slmgr -rearm B3:  Restart Windows B4:  > slmgr -dli

Chứng chỉ SSL - các dạng khác nhau - different ssl certificate format

 Tùy theo cấu hình server, chứng chỉ ssl có thể phải chuyển đổi sang các dạng khác nhau cho tương thích: - Windows server sử dụng file .pfx (X509) - Apache server sử dụng file .crt, .cer (PKCS7) Thông tin chứng chỉ SSL có thể thường được cung cấp dưới dạng sau (Dạng PEM): Phần này là private key: -----BEGIN PRIVATE KEY----- MIIEvwIBADANBgkqhkiG9w0BAQEFAASCBKkwggSlAgEAAoIBAQDZgq+0hUok18fb PRPNlJM4+/ANA9c329wUGGUyJwWvHNiqNgluuqp1VjtFQfoaraXaPK1g16M8HRlH NPckoFKZaTfCh9u+Xm3wiarj4i ...  CUCgYAn55Na3tvRisIUEVc2 K36njpoNhQ9kxjoPzFUIjccsAO9/Mt8eXL1xBdX38ox/0g+fTkLqotT6+ERWhRti fz/xoHov8rii6yDaSMMumw/DuQ8s/v6eZqN/jlqoRToEziFR5UAb4HmSQ94uki8+ 3P0hk68HHT45bb9NnnDcIZki/A== -----END PRIVATE KEY----- Phần này là certificate: -----BEGIN CERTIFICATE----- MIIGpDCCBYygAwIBAgIQCrWg6/cP1Y1qYOPaOxJk0DANBgkqhkiG9w0BAQsFADBZ MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMTMwMQYDVQQDEypS PB0ZRzT3JKBSmWk3w ...  dxxkfW97d5XtEixwNTce/3aCHJ1ivc f0u163DjYO3CmebXHAyd5FpszqaFrX29vQFF/1mrw7/pd77JffmP6o8BIo2xrq0f h