Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Online Video Player Like youtube

0.00/5 (No votes)
28 Mar 2011 1  
this is a online video player like youtube with massive functionalities

Introduction

This Article Contains the way how to play video online like youtube and it's enabled you to play Videos in different extensions like .MP4 , .FLV .

Using the code 

		<script type="text/javascript">
			var flashvars = {};
			// video width
			var videoWidth = 560;
			// video height
			var videoHeight = 304;
			// Main Video Path
			flashvars.videoFilePath = '<%=vpath%>'
			// Video buffer time (seconds) 
			flashvars.videoBufferTime = "5"
			// automatically start video playing when first start video player. (yes/no)   
			flashvars.autoStartVideoPlay = "no";
			// Auto Repeat at end of the video. (yes/no)
			flashvars.autoRepeat = "no";
			// Video starting volume (Max: 100 Min: 0) 
			flashvars.videoStartVolume = "75";
			// Show Advertisement video (yes/no)
			flashvars.showAdvertisementVideo = "no";
			// Advertisement Video Path
			flashvars.advertisementVideoPath = "videos/adv_video.flv";
			// Video Title Text 
			flashvars.titleTxt = "<font color='#9999FF' size='20'>SUPPORT HTML TAGS</font>";
			// Video Description Text
			flashvars.descriptionTxt = "Some description text will come here. <font color='#00FFFF'>Support HTML Tags!</font> <a href='http://www.activeden.net' target='_blank' >Click Here</a>";
			// Show Logo 
			flashvars.logoDisplay = "yes";
			// Logo Image Path 
			flashvars.logoImagePath = "images/logo.png";
			// Logo Position 
			flashvars.logoPlacePosition = "top-left";
			// Logo Margin Space 
			flashvars.logoMargin = "20";
			// Logo Width 
			flashvars.logoWidth = "80";
			// Logo Height
			flashvars.logoHeight = "47";
			// Logo Transparency Value (100 : Solid  50 : Semi Transparency) 
			flashvars.logoTransparency = "50";
			// Define video bar color (blue, green, orange, purple, white, red) 
			// random : it will select color randomly  
			flashvars.videoBarColorName = "red";
			// Define volume bar color (blue, green, orange, purple, white, red) 
			// random : it will select color randomly 
			flashvars.volumeBarColorName = "red";
			// Show Cover Image
			flashvars.coverImageDisplay = "yes";
			// cover image path. You can use SWF, PNG, JPG or GIF
			flashvars.coverImagePath = "images/cover_anim.swf";
			// Auto Hide Control Panel and Mouse 
			flashvars.hideControlPanelAndMouse = "yes"
			// Auto Hide time (second) 
			flashvars.hideTime = "5"
			var params = {};
			params.scale = "noscale";
			params.allowfullscreen = "true";
			params.salign = "tl";
			params.bgcolor = "000000";

			var attributes = {};
			swfobject.embedSWF("video_player8_flashvars.swf", "myContent", videoWidth, videoHeight, "9.0.0", false, flashvars, params, attributes);
		</script>
		 

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here