Friday 21 June 2013

Uploading videos in MP4 Format

Live demo :




MP4 Video format coding :


Download Coding :  MP4video format

Script :

<script type="text/javascript" src="videofiles/swfobject.js"></script>
       <script type="text/javascript">
        var attributes = {};

        var params = {};
        // for fullscreen
        params.allowfullscreen = "true";

        var flashvars = {};
        // the video file or the playlist file
        flashvars.file = "Brave Kitten Stands Up to Dog - YouTube.mp4";
        //flashvars.file = "upload/vclassvideo/1296426907_Rajini video songs.flv.mp4";
        // the PHP script NONE FOR LOCAL ACCESS
        //flashvars.streamscript = "flvprovider.php";
        //flashvars.bufferlength = "1.5";

        // width and height of the player (h is height of the video + 20 for controlbar)
        // required for IE7
        flashvars.width = "520";
        flashvars.height = "460";
        // width  and height of the video
        flashvars.displaywidth = "520";
        flashvars.displayheight = "460";
        flashvars.autostart = "true";
        flashvars.showdigits = "true";

        // for fullscreen
        flashvars.showfsbutton = "true";

        // 9 for Flash Player 9 (for ON2 Codec and FullScreen)

</script>



Index :




<div id="flashcontent">
  <p>To view this video you need JavaScript enabled and the latest Adobe Flash Player installed.  <br />
    <a href="http://www.adobe.com/go/getflashplayer/">Download the free Flash Player now</a>.</p>
  <p><a href="http://www.adobe.com/go/getflashplayer/"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Download Flash Player" style="border: none;" /></a></p>
</div>



No comments:

Post a Comment