RadMediaPlayer loads .mp4 in Visual Studio 2012 (localhost) but not on website

5 posts, 0 answers
  1. Max
    Max avatar
    5 posts
    Member since:
    Oct 2013

    Posted 10 Jan 2014 Link to this post

    Support,

    I have my website in a Visual Studio 2012 solution. 

    When I enter debugging for my website, I am able to watch the .mp4 on the localhost page when I click play.

    When I publish and deploy the website the RadMediaPlayer just circles when I hit play.

    Any idea on what could cause RadMediaPlayer to just circle when published?

    Thanks,

    Max


    Edit:
    The only things I can I can think of is permissions or IIS settings
  2. Max
    Max avatar
    5 posts
    Member since:
    Oct 2013

    Posted 12 Jan 2014 Link to this post

    Support,

    I also tried some other scenarios.

    In visual studio debugging in chrome: I am able to play .mp4, and .webm, but I am unable to play .ogv.
    In visual studio debugging in firefox: I am able to play .mp4, ,webm, and .ogv.
    In visual studio debugging in IE: I am able to play .mp4.

    Note:

    For my application, I only need .mp4.

    When I deploy the website to my server, I am unable to play any files on any browser in the media player.

    The mediaplayer shows a black window with the play button, but when I click play it just circles instead of playing the video

    Do you know what could cause this behavior where it works in visual studio but not on the published website?

    Thanks,

    Max





  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Milena
    Admin
    Milena avatar
    224 posts

    Posted 14 Jan 2014 Link to this post

    Hello,

    Currently, we have a known limitation - MediaPlayer does not work when it is running through localhost in InternetExplorer. however it works as expected via localhost in other browsers. Could you please verify if the following MIME types are added to the webconfig:

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

    Additionally, in this help topic you can find more information about the three supported formats and their compliance with the major browsers.

    Regards,
    Milena
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  5. Max
    Max avatar
    5 posts
    Member since:
    Oct 2013

    Posted 14 Jan 2014 Link to this post

    Support,

    I got the .mp4 file to play. Originally I had:

    <system.webServer>
      <staticContent>
        <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
      </staticContent>
    </system.webServer>

    Then I changed it to:

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

    I would also like to play .mp3 files on the page.

    As with .mp4 should i add all of the following:

    <system.webServer>
      <staticContent>
        <mimeMap fileExtension=".mp3" mimeType="audio/mpeg" />
        <mimeMap fileExtension=".ogg" mimeType="audio/ogg" />
        <mimeMap fileExtension=".wav" mimeType="audio/wav" />
      </staticContent>
    </system.webServer>

    Thanks,

    Max
  6. Milena
    Admin
    Milena avatar
    224 posts

    Posted 17 Jan 2014 Link to this post

    Hello,

    In order to play mp3 files, you should add:

    <system.webServer>
      <staticContent>
        <mimeMap fileExtension=".mp3" mimeType="audio/mpeg" />
      </staticContent>
    </system.webServer>


    You can see which browsers support mp3 format here.

    Regards,
    Milena
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017