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. HTML5 Player in ASP.NET

HTML5 Player in ASP.NET

Scheduled Pinned Locked Moved ASP.NET
csharphtmlasp-netsysadmin
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.
  • B Offline
    B Offline
    ballameharmurali
    wrote on last edited by
    #1

    Hi, I want to Bind MP4 video file from Server to Lieral through c# code using HTML5 Player. i could not able to set the path from the server.I tried a lot of samples from internet but it was not working in either of the browsers. Here is the Function i used to call the and was not able to set the source path:**

    this.Literal1.Text =GetWmaObject(mySourceUrl, isFullSize);

    private string GetWmaObject(string sourceUrl, bool isFullSize)
    {
    string myWidthAndHeight = "";
    string myObjectTag = "";
    sourceUrl = sourceUrl + "";
    sourceUrl = sourceUrl.Trim();

          if (sourceUrl.Length > 0)
          {
           //Continue.
          }
          else
          {
           throw new System.ArgumentNullException("sourceUrl");
          }
          
        
    
          if (isFullSize)
          {
           myWidthAndHeight = "";
          }
          else
          {
           myWidthAndHeight = "width='640' height='480'";
          }
    
         
          sourceUrl = sourceUrl + "";
          sourceUrl = sourceUrl.Trim();
          if (sourceUrl.Length > 0)
          {
              myObjectTag = myObjectTag + "";
              myObjectTag = myObjectTag + "";
              myObjectTag = myObjectTag + "";
              myObjectTag = myObjectTag + "";
              myObjectTag = myObjectTag + "";
              myObjectTag = myObjectTag + "";
              myObjectTag = myObjectTag + "";
              //myObjectTag = myObjectTag + "";
              myObjectTag = myObjectTag + "
    

    **

    T 1 Reply Last reply
    0
    • B ballameharmurali

      Hi, I want to Bind MP4 video file from Server to Lieral through c# code using HTML5 Player. i could not able to set the path from the server.I tried a lot of samples from internet but it was not working in either of the browsers. Here is the Function i used to call the and was not able to set the source path:**

      this.Literal1.Text =GetWmaObject(mySourceUrl, isFullSize);

      private string GetWmaObject(string sourceUrl, bool isFullSize)
      {
      string myWidthAndHeight = "";
      string myObjectTag = "";
      sourceUrl = sourceUrl + "";
      sourceUrl = sourceUrl.Trim();

            if (sourceUrl.Length > 0)
            {
             //Continue.
            }
            else
            {
             throw new System.ArgumentNullException("sourceUrl");
            }
            
          
      
            if (isFullSize)
            {
             myWidthAndHeight = "";
            }
            else
            {
             myWidthAndHeight = "width='640' height='480'";
            }
      
           
            sourceUrl = sourceUrl + "";
            sourceUrl = sourceUrl.Trim();
            if (sourceUrl.Length > 0)
            {
                myObjectTag = myObjectTag + "";
                myObjectTag = myObjectTag + "";
                myObjectTag = myObjectTag + "";
                myObjectTag = myObjectTag + "";
                myObjectTag = myObjectTag + "";
                myObjectTag = myObjectTag + "";
                myObjectTag = myObjectTag + "";
                //myObjectTag = myObjectTag + "";
                myObjectTag = myObjectTag + "
      

      **

      T Offline
      T Offline
      thatraja
      wrote on last edited by
      #2

      Check this Tip/Trick HTML5/ASP.NET Video Player[^]

      thatraja

      FREE Code Conversion VB6 ASP VB.NET C# ASP.NET C++ JAVA PHP DELPHI ColdFusion
      HTML Marquee & its alternatives

      Nobody remains a virgin, Life screws everyone :sigh:

      B 1 Reply Last reply
      0
      • T thatraja

        Check this Tip/Trick HTML5/ASP.NET Video Player[^]

        thatraja

        FREE Code Conversion VB6 ASP VB.NET C# ASP.NET C++ JAVA PHP DELPHI ColdFusion
        HTML Marquee & its alternatives

        Nobody remains a virgin, Life screws everyone :sigh:

        B Offline
        B Offline
        ballameharmurali
        wrote on last edited by
        #3

        Hi This is for You Tube, i want to retrieve the Path from the server. Thanks Murali

        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