Search code examples
javascripthtmlflashflv

Adding a flash video to webpage


Code

<head>
    <meta name="description" content="Learning about flash" />
    <meta http-equiv="author" content="Abhi" />
    <title>Flash</title>

    <script type="text/javascript"
             src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js">         
    </script>

    <script type="text/javascript">
            var flashvars={};
            var params= {movie:"puppy.flv"};
            swfobject.embedSWF("C:/Program Files (x86)/VideoLAN/VLC/vlc.exe", "snow", "400", "320", "8.0.0", flashvars, params);
    </script>

</head>

<body>
        <div id="snow"><p> Alternative content: A video of puppy playing in the snow.</p></div>
</body>

location of VLC: C:\Program Files (x86)\VideoLAN\VLC\vlc.exe

location of .flv file: F:\4. Codes\HTML\puppy.flv

location of html file where I am writing code is: F:\4. Codes\HTML\51_2.html

But I am not able to see video on my html page rather I am seeing just alternative content. What's the problem ?


Solution

  • Flash is not supported anymore in browsers so thats why it wont show: https://caniuse.com/?search=flash