How to insert video in asp.net web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • orked
    New Member
    • Jan 2009
    • 49

    How to insert video in asp.net web page

    Hello,
    i want to insert video in my web page but the video didn't work it load for small time then it stop and i don't know why??
    i write this line in aspx page
    Code:
    <video src="ss.flv" width="500" height="150" controls>
    </video>
    and i try this line also but no progress it tell me missing plugin all time when i search for missing plugin i found no plugin available
    Code:
    <embed  src="ss.flv" width="340" height="140" />
    i don't know how i can solve this problem.
    Thanks in advance
    Orked
  • abhinavpratap
    New Member
    • Sep 2010
    • 9

    #2
    you are using HTML5 video tag , supported in less browsers.

    Code:
    <video width="320" height="240" controls="controls">
      <source src="movie.ogg" type="video/ogg" />
    Your browser does not support the video tag.
    </video>
    for the asp.net , try like this

    Code:
    <object width="425" height="344">
    <param name="movie" value="http://www.youtube.com/v/GwQMnpUsj8I&hl=en&fs=1">
    </param><param name="allowFullScreen" value="true">
    </param><param name="allowscriptaccess" value="always">
    </param><embed src=http://www.youtube.com/v/GwQMnpUsj8I&hl=en&fs=1 
    type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344">
    </embed></object>
    or you can also use third party tool


    Hope this helps
    Happy coding

    Comment

    • orked
      New Member
      • Jan 2009
      • 49

      #3
      thank you for your help,
      i have another question if I want to play video from my website folder not from youtube how i can write this??

      Thanks,
      Orked

      Comment

      • abhinavpratap
        New Member
        • Sep 2010
        • 9

        #4
        Some self explanatory links ----

        1.> Silverlight
        Microsoft technical documentation for older versions of products, services and technologies.


        2.> FLV player


        3.> Third Party tools


        Hope this helps
        Happy Coding

        Comment

        Working...