Friday, April 30, 2010

Re: Using html5 video tag.

Thanks for the answer but it didn't worked.

If i use the $html->tag:

echo $html->tag('video','your browser does not support the video tag',
array('src' => '/1.ogv', 'controls' => 'controls'));

, I still have the same behaviour.

I see the player in the browser but can't play de movie. The route is
correct because if i make right click on the player and then click on
save as... i download the video correctly.

It's very strange because if i make a look to the generated source
code and I copy it into a normal html file outside cakephp it works.

On 30 abr, 05:58, tristan_ph <tristanpera...@gmail.com> wrote:
> You may use HtmlHelper->tag()
>
> $this->Html->tag(__('your browser does not support the video tag',
> true), array('src' => '/video.ogv', array('controls' => 'controls'));
>
> On Apr 29, 10:03 pm, Phil <felipe.ru...@gmail.com> wrote:
>
>
>
> > 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 sitehttp://cakeqs.organdhelp 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 athttp://groups.google.com/group/cake-php?hl=en
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 athttp://groups.google.com/group/cake-php?hl=en

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: