locked
no video with supported format and mime type found RRS feed

  • Question

  • Hi,

    I am trying to play video in my aplication. Working on .net framework 3.5.

    I have following code..

    <video width="320" height="240" controls="controls">
      <source src="huanqiushenghuo.mp4" type="video/mp4" />
      <source src="movie.ogg" type="video/ogg" />
      Your browser does not support the video tag.
    </video>

    and facing the following error

    no video with supported format and mime type found



    What shoud I do to fix it ?
    Tuesday, May 8, 2012 7:45 AM

All replies

  • Hi,

    In your web.Config, under the web.server tag, try adding the following code.

    <staticContent>
          <remove fileExtension=".mp4"/>
          <mimeMap fileExtension=".ogv" mimeType="video/ogg"/>
          <mimeMap fileExtension=".webm" mimeType="video/webm"/>
          <mimeMap fileExtension=".mp4" mimeType="video/mp4"/>
        </staticContent>

    Regards

    Jacques

    • Proposed as answer by Jacques444 Wednesday, May 30, 2012 11:08 AM
    Thursday, May 10, 2012 8:43 AM
  • Hi,

    In your web.Config, under the web.server tag, try adding the following code.

    <staticContent>
          <remove fileExtension=".mp4"/>
          <mimeMap fileExtension=".ogv" mimeType="video/ogg"/>
          <mimeMap fileExtension=".webm" mimeType="video/webm"/>
          <mimeMap fileExtension=".mp4" mimeType="video/mp4"/>
        </staticContent>

    Regards

    Jacques

    It works.

    Thank you.

    Wednesday, November 28, 2012 8:44 AM