HTML 5 Video Tag - Local files

2,689 views
Skip to first unread message

Leandro

unread,
Feb 20, 2012, 1:17:11 PM2/20/12
to delphichrom...@googlegroups.com
Hi,

I was trying to this:
<html>
<body>
<video width="320" height="240" controls="controls">
  <source src="test.mp4" type="video/mp4" />
Your browser does not support the video tag.
</video>
</body>
</html>

Work fine if online, but in local computer (localhost) don't!

I set UniversalAccessFromFileUrlsAllowed:=True;
and FileAccessFromFileUrlsAllowed:=True;

But no success.

What I need to do to play local videos?

Leandro

unread,
Mar 1, 2012, 7:39:28 AM3/1/12
to delphichrom...@googlegroups.com
Help Please!

Leandro

unread,
Mar 15, 2012, 10:13:26 AM3/15/12
to delphichrom...@googlegroups.com
UP!

Christian Sciberras

unread,
Mar 15, 2012, 10:20:11 AM3/15/12
to delphichrom...@googlegroups.com
Try using the file:/// protocol.

Don't forget it requires an absolute path (afaik).


Chris.



On Thu, Mar 15, 2012 at 3:13 PM, Leandro <lea...@fave.ro> wrote:
UP!

Leandro

unread,
Mar 21, 2012, 11:28:19 AM3/21/12
to delphichrom...@googlegroups.com
I tried  

<source src="file:///D:/test.mp4" type="video/mp4"> but no success.

In Google Chrome works!

But not with component.

Do you have success?
Reply all
Reply to author
Forward
0 new messages