Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

.webm file not playing when coming from server location (MIME type: text/html) on FF instead of writing AddType video/webm .webm line in .htaccess file.

  • 1 απάντηση
  • 4 έχουν αυτό το πρόβλημα
  • 13 προβολές
  • Τελευταία απάντηση από cor-el

more options

I have written following html5 code in a html page for my site.

<video controls>
	<source src="http://www.mysite.com/../videos/30frames.webm" type="video/webm"/>
</video>

When I run that page on Firefox browser (FF version:19.0, Windows XP Operating System), I see video is not playing, instead it is showing a black box 'X' on it and below the cross sign text: 'No video with supported format and MIME type found' is shown.

To solve the problem, I have tried following lines of code in .htaccess file.

AddType video/webm .webm
## or ##
<FilesMatch "\.webm$">
  ForceType video/webm
</FilesMatch>
## or ##
<FilesMatch "\.webm$">
  DefaultType video/webm
</FilesMatch>

But none worked. Can you please help in this regard? Thanks.

I have written following html5 code in a html page for my site. <blockquote><pre><nowiki> <video controls> <source src="http://www.mysite.com/../videos/30frames.webm" type="video/webm"/> </video> </nowiki></pre></blockquote> When I run that page on Firefox browser (FF version:19.0, Windows XP Operating System), I see video is not playing, instead it is showing a black box 'X' on it and below the cross sign text: 'No video with supported format and MIME type found' is shown. To solve the problem, I have tried following lines of code in .htaccess file. <blockquote><pre><nowiki> AddType video/webm .webm ## or ## <FilesMatch "\.webm$"> ForceType video/webm </FilesMatch> ## or ## <FilesMatch "\.webm$"> DefaultType video/webm </FilesMatch> </nowiki></pre></blockquote> But none worked. Can you please help in this regard? Thanks.

Τροποποιήθηκε στις από το χρήστη iwdsamir

Όλες οι απαντήσεις (1)

more options

That file is send as Content-Type: application/force-download


A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.

The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.