You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fadi Qutaishat <fa...@yahoo.com> on 2006/04/04 11:21:13 UTC
How to play video files?
Hi all,
I have got a simple question:
Is this the right way to play video files within
cocoon environment:
Inside the XML file:
<doc>
...
...
<a href="vidmsani.mpeg">play video</a>
...
</doc>
For the sitemap:
...
...
<map:match pattern="*.mpeg">
<map:read mime-type="video/mpeg"
src="prototype/{1}.mpeg"/>
</match>
...
...
I have tried it but it was not working!
Any help would be appreciated.
Fadi
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: How to play video files?[solved]
Posted by Fadi Qutaishat <fa...@yahoo.com>.
Many thanks for all of you.
I have just solved the problem.
I have converted the file type from mpeg to rm then I
have tried playing file and it was working.
I do not know why the mpeg mime-type could not be
played although I have checked the web.xml in the conf
directory of tomcat and it was there.
Maybe there is something wrong with file itself.
Regards,
Fadi
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: How to play video files?
Posted by Joerg Heinicke <jo...@gmx.de>.
Hello Fadi,
On 04.04.2006 12:28, Fadi Qutaishat wrote:
> When I click the link that opens the video file it
> takes long time to open it and it starts the windows
> media player to play the file but nothing shows.
so at least it seems the sitemap and directory part works ok. But the
downloaded file seems to be broken. Are you sure that the file placed in
the file system is ok? If you right-click on the link, choose "Save link
target as ..." (or however it might be called in your browser) and so
save the file to your local disk and execute it from there, does this work?
IIRC the general problem might be the caching of "too big files", which
might be the case for your MPEG. So Ian might be correct with his
suggestion of a non-caching pipeline.
Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: How to play video files?
Posted by ia...@jpmchase.com.
One thing you may want to do, if you haven't already, is to ensure that the
<map:match> for *.mpg is in a non-caching pipeline (just as you would for
images).
HTH,
Ian
It's better to be hated for who you are
than loved for who you are not
Ian D. Stewart
Appl Dev Analyst-Advisory, DCS Automation
JPMorganChase Global Technology Infrastructure
Phone: (614) 244-2564
Pager: (888) 260-0078
Fadi Qutaishat
<fadi_taher2000@y To: users@cocoon.apache.org
ahoo.com> cc:
Subject: Re: How to play video files?
04/04/2006 06:28
AM
Please respond to
users
Hello,
Many thanks for the reply.
The XML file that I provided is the resource that
contains text and Images that are transformed into
HTML formats using XSLT file.
It was just yesterday I wanted to add a link leads to
open a video inside the XML file.
As you said it is only a static content passed to be
presented as it is.
When I click the link that opens the video file it
takes long time to open it and it starts the windows
media player to play the file but nothing shows.
I am using cocoon 2.1.6 and Tomcat 4.1.
Many thanks,
Fadi
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: How to play video files?
Posted by Fadi Qutaishat <fa...@yahoo.com>.
Hello,
Many thanks for the reply.
The XML file that I provided is the resource that
contains text and Images that are transformed into
HTML formats using XSLT file.
It was just yesterday I wanted to add a link leads to
open a video inside the XML file.
As you said it is only a static content passed to be
presented as it is.
When I click the link that opens the video file it
takes long time to open it and it starts the windows
media player to play the file but nothing shows.
I am using cocoon 2.1.6 and Tomcat 4.1.
Many thanks,
Fadi
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: How to play video files?
Posted by Joerg Heinicke <jo...@gmx.de>.
Hello Fadi,
playing videos has not much to do with Cocoon. What you are doing is
only delivering static content to the client. Whether it is a video or
an image makes no difference for Cocoon.
In general your sitemap snippet looks ok. But it's difficult to say as
we don't know any directory structure nor your environment. What's this
XML? What does "it was not working" mean? Do you have something in the
log files?
Jörg
On 04.04.2006 11:21, Fadi Qutaishat wrote:
> Hi all,
>
> I have got a simple question:
>
> Is this the right way to play video files within
> cocoon environment:
>
> Inside the XML file:
>
> <doc>
> ...
> ...
> <a href="vidmsani.mpeg">play video</a>
> ...
> </doc>
>
>
> For the sitemap:
>
> ...
> ...
> <map:match pattern="*.mpeg">
> <map:read mime-type="video/mpeg"
> src="prototype/{1}.mpeg"/>
> </match>
> ...
> ...
>
> I have tried it but it was not working!
>
> Any help would be appreciated.
>
> Fadi
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org