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. Problem in playing videos on intranet portal

Problem in playing videos on intranet portal

Scheduled Pinned Locked Moved ASP.NET
csharpvisual-studiocomsysadminwindows-admin
3 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.
  • U Offline
    U Offline
    uspatel
    wrote on last edited by
    #1

    On my intranet portal,Videos are playing on my system successfully.(Visual studio intalled on my system).But it is not playing on other systems when i host my portal on IIS.But after hosting on my system videos are played.

    <embed id='embed1' runat="server" name='mediaPlayer' type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width='500' height='405' designtimesp='5311' loop='false'>
    </embed>

    protected void DataList1_ItemCommand1(object source, DataListCommandEventArgs e)
    {

        try
        {
            if (e.CommandName == "select")
            {
    
    
              **  embed1.Attributes.Add("src", @"http://~/Uploads4/");
                embed1.Attributes.Add("filename", Server.MapPath(e.CommandArgument.ToString()));
               ** this.modal1.Show();
    

    //problem in bold lines,when i see properties of media player on my system it shows loacl path like c:/inetpub/wwwroot/............/rrr.mpg

            }
        }
        catch (Exception ex)
        {
            Response.Write(ex.ToString());
        }
    
    
    }
    

    What problem can be?

    J 1 Reply Last reply
    0
    • U uspatel

      On my intranet portal,Videos are playing on my system successfully.(Visual studio intalled on my system).But it is not playing on other systems when i host my portal on IIS.But after hosting on my system videos are played.

      <embed id='embed1' runat="server" name='mediaPlayer' type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols='true' showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width='500' height='405' designtimesp='5311' loop='false'>
      </embed>

      protected void DataList1_ItemCommand1(object source, DataListCommandEventArgs e)
      {

          try
          {
              if (e.CommandName == "select")
              {
      
      
                **  embed1.Attributes.Add("src", @"http://~/Uploads4/");
                  embed1.Attributes.Add("filename", Server.MapPath(e.CommandArgument.ToString()));
                 ** this.modal1.Show();
      

      //problem in bold lines,when i see properties of media player on my system it shows loacl path like c:/inetpub/wwwroot/............/rrr.mpg

              }
          }
          catch (Exception ex)
          {
              Response.Write(ex.ToString());
          }
      
      
      }
      

      What problem can be?

      J Offline
      J Offline
      jkirkerx
      wrote on last edited by
      #2

      You have to convert the server file location to a qualified url I wanted to give you an example, but I couldn't find it. So you build a string, it can be virtual /Movies/moviename.mpg or hard code it http://servername.domainname/movies/moviename.mpg by the way, movie object have 2 sets of parameters, is for firefox, and is for ie. check your object code for the latest version and update it.

      U 1 Reply Last reply
      0
      • J jkirkerx

        You have to convert the server file location to a qualified url I wanted to give you an example, but I couldn't find it. So you build a string, it can be virtual /Movies/moviename.mpg or hard code it http://servername.domainname/movies/moviename.mpg by the way, movie object have 2 sets of parameters, is for firefox, and is for ie. check your object code for the latest version and update it.

        U Offline
        U Offline
        uspatel
        wrote on last edited by
        #3

        Thanks for your reply.

        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