0

I am trying to make an html file that I can open with HTML Viewer and play a video stored locally on my phone. However, when I open the html with HTML Viewer I get this:

enter image description here

It shows the video player, but it does not show a video. However, it also doesn't display any errors.

This is my html file:

<video width="320" height="240" controls> <source src="file:///storage/emulated/0/video.mp4" type="video/mp4"> </video> 
10
  • Possible duplicate of Local files revisited: Opening local HTML files (file:///path/to/file) in Chrome on Android 10.x Commented Dec 17, 2024 at 14:34
  • @Robert I am not getting an access denied error, also the question (and answers) are specifically referencing Chrome. Commented Dec 17, 2024 at 16:33
  • So "HTML Viewer" is a third party app? If yes please add a link in your question to it's Play Store site. App names can be totally different for different localizations. The linked question is about using the file protocol for accessing local files in the shared storage of Android. This is exactly what you are asking for, too. Check logcat for error messages. Commented Dec 17, 2024 at 17:02
  • @Robert HTML Viewer is built into Android. android.stackexchange.com/questions/188786/… Commented Dec 17, 2024 at 17:20
  • @KovyJacob Please identify your device make/model/OS version. I am unable to find 'HTML Viewer' on my Pixel 6a with Android 13. Checking logcat for details/errors is best. Commented Dec 17, 2024 at 19:41

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.