Go to "Settings > More settings > DLNA" and enable the "Share local media" function. You can then play your phone's media files using a DLNA device.
Media sharing summary
The "DLNA" function allows you to play your phone's multimedia files (Video, Music and Pictures) on a DLNA device in the local area network.
Share local media
The following example uses a DLNA smart TV to illustrate how to use this function:
Connect the DLNA smart TV and your phone to the same router.
Tap "Share folder" and choose the folder you want to share.
Tap "Share file types" and select the content you want to share.
Search for your phone on the DLNA smart TV. After finding your phone you can access its media files.
Note
When you are not using the "Share local media" function, it is recommended that you disable it. By disabling it, you can save battery power and prevent data leakage