cancel
Showing results for 
Search instead for 
Did you mean: 

Strange ogv file play in browser

unknown-user
Champ on-the-rise
Champ on-the-rise
I have to put the problem here to ask for help:

Upload a ogv file to alfresco, the alfresco url is http://127.0.0.1:8080/alfresco/d/d/workspace/SpacesStore/849f6451-fceb-402c-ac3c-05b4c8ffa8cc/out.og..., if i open the link directly, it will prompt download both in firefox and chrome.
but if I copy this ogv file to same tomcat webapps/test/,  http://127.0.0.1:8080/test/out.ogv will play normally.
I aslo test avi file, the alfresco url can play normally.

If the html 5 video tag use the above alfresco url,
    <video width="640" height="264" controls="controls" preload="auto" >
   <source src="http://127.0.0.1:8080/alfresco/d/d/workspace/SpacesStore/849f6451-fceb-402c-ac3c-05b4c8ffa8cc/out.og..." type='video/ogg; codecs="theora, vorbis"' />
    </video>
the firefox can't play, but chrome can play;
if the source src is http://127.0.0.1:8080/test/out.ogv, then firefox can play again !

So my question is:
How can I open alresco ogv file directly in browser, no prompt download.
why use alfresco url for video tag can't play?

Environment: firefox 3.6.8, chrome 5.0, Ubuntu 9.1.

:shock:
Thanks in advance.
2 REPLIES 2

unknown-user
Champ on-the-rise
Champ on-the-rise
any idea? really appreciate your reply. 😎

mrwho
Champ in-the-making
Champ in-the-making
Hi,

  the issue is that OGG videos are not known natively to Alfresco. You will have to add them to the list of mime-types, so that it will be served with the appropriate one. If you don't add the mime-type it will be served as "application/octet-stream", with that content-type it will be saved rather than displayed.

  Hope this helped,

  MrWHO

  PS: A quick search for "alfresco custom extensions mime-type" will give you a good hint on how to add the mime-type.