Thursday, April 29, 2010

Using html5 video tag.

Hi!

I'm trying to add a video file into my cakephp project using the html5
<video> tag. If i write a simple html file with this code:

<video src="video.ogv" controls="controls">
your browser does not support the video tag
</video>

If works properly in firefox. But if I try to the next code to my .ctp
file in cakephp, firefox shows the player but is not playing the
video:

<video src="/video.ogv" controls="controls">
your browser does not support the video tag
</video>

The video.ogv is in the webroot folder.

Thanks.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: