开发者

Loading an Android video from an html link

I have a webview and one of the links has:

<a href=video.mp4>click here</a>

When I click it I wanted it to open a video file that is in the same directory but nothing happens. I have also tried

<a href=file:///sdlocation/video.mp4> click here</a>  

With the same results.

How can I load loc开发者_开发百科al videos and pictures using an html link?


Try your same link, but prepend with a directory qualifier, like so:

<a href="./video.mp4" target="_blank">Click Here</a>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜