Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to display .mp4 video on Intranet

How to display .mp4 video on Intranet

Scheduled Pinned Locked Moved ASP.NET
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    David Mujica
    wrote on last edited by
    #1

    I have an Intranet application and have developed a training video where I would like to have the users be able to view it. I found the following code to have the Media Player embedded on my page ..

    In the Code Behind, I set the source for the video as follows:

    embed1.Attributes.Add("src", Server.MapPath("~\Videos\" & sVideoName))

    Everything works fine if I execute it within the Visual Studio 2015 environment, but when I deploy it to my IIS 7.5 (Win 2008R2) web server, nothing is displayed and no errors are listed. I must be missing something on the IIS side. But what? Thanks in advance.

    L 1 Reply Last reply
    0
    • D David Mujica

      I have an Intranet application and have developed a training video where I would like to have the users be able to view it. I found the following code to have the Media Player embedded on my page ..

      In the Code Behind, I set the source for the video as follows:

      embed1.Attributes.Add("src", Server.MapPath("~\Videos\" & sVideoName))

      Everything works fine if I execute it within the Visual Studio 2015 environment, but when I deploy it to my IIS 7.5 (Win 2008R2) web server, nothing is displayed and no errors are listed. I must be missing something on the IIS side. But what? Thanks in advance.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Check in IIS if .mp4 is defined in the mime types for the app.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups