|
||||||||||
|
|||||||
| GoogleCommunity Sponsor |
|
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Noogle
![]() Join Date: Mar 2006
Location: Australia
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
Video software on my site, hosted on my hosting?
I want to add some videos to my site. I am willing to pay a little, but not anything over say $30. I want it so I either can use the software to make the videos I have compatible or I want a player that can play WMV's and AVI's. Preferably I would like it so the user visiting my site doesn't have to download any plugins to watch the video. Obviously everything needs plugins, but lets just say if it uses the same plugin YouTube or other popular video sites requires that would be fine.
Anyone know any good software I can use to obtain this? I can't use SSH on my hosting, so it must not require that to install any other software to the server. Thanks |
|
|
|
|
Sponsored Links
|
|
|
|
#2 (permalink) |
|
Junior Googler
![]() Join Date: Mar 2009
Posts: 27
Thanks: 5
Thanked 2 Times in 2 Posts
![]() |
add this code to your page:
<HTML> <HEAD> <TITLE>Embedded Windows Media Player 7 Control</TITLE> </HEAD> <BODY> <OBJECT ID="Player" width="320" height="240" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"> <PARAM name="autoStart" value="True"> <PARAM name="URL" value=http://WebServer/MyFile.wmv"> </OBJECT> </BODY> </HTML> |
|
|
|
|
|
#4 (permalink) |
|
Junior Googler
![]() Join Date: Mar 2009
Posts: 27
Thanks: 5
Thanked 2 Times in 2 Posts
![]() |
Step One
use this java script between body tags on your page: <script language="JavaScript" src="wmpCodeGen.js"></script> <script language="JavaScript" type="text/javascript"> playMedia("your_video_file.wmv",1,250,250) </script> Step Two copy and past below code to a notepad and save your file with this name,format "wmpCodeGen.js" and upload your files to your server: <!-- // This script determines correct code required to embed MEDIA files // for a large number of browsers. // Windows Media Player is required and always used, except for WebTV // Ver. 4.0 (simple) auto-start parameter is true - Created: February 2, 2008 function playMedia(mediaURL,rpt,height,width) { var mediaURL,rpt,height,width if (GetBrowser() == "IE") playAll(mediaURL,rpt,height,width) ; else if (GetBrowser() == "unknown") embedSource(mediaURL,rpt,height,width) ; else if (navigator.appName.substring(0,5) == "WebTV") embedSource(mediaURL,rpt,height,width) ; else playAll(mediaURL,rpt,height,width) ; } function embedSource(mediaURL,rpt,height,width) { var CodeGen = "" var mediaURL,rpt,height,width CodeGen = '<embed src="' + mediaURL + '"' + '\n' ; CodeGen += ' height=' + height + ' width=' + width + ' autostart="true"' + '\n' CodeGen += ' LOOP=' + rpt + '>' document.write(CodeGen) } function playAll(mediaURL,rpt,height,width) { var CodeGen = "" CodeGen = '<embed type="application/x-mplayer2" ' + '\n' ; CodeGen += ' pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" ' + '\n' ; CodeGen += 'Name="Player" ' + 'src="' + mediaURL + '" ' + '\n' ; CodeGen += 'autoStart=1 ' ; if ((height == 24) && (width == 299)) CodeGen = CodeGen + 'ShowStatusBar=1 '; if ((height >= 50) && (height <= 75) && (width >= 200)) CodeGen = CodeGen + 'ShowStatusBar=1 '; if ((height > 75) && (width >= 150)) CodeGen = CodeGen + 'ShowStatusBar=0 '; if ((height <= 49) && (width != 299)) CodeGen += 'ShowStatusBar=0 '; CodeGen += 'enableContextMenu=1 cache=0 ' + '\n' ; CodeGen += 'playCount=' + rpt + ' ' ; CodeGen += 'volume=-1 ' ; CodeGen += 'HEIGHT=' + height + ' WIDTH=' + width + '>' document.write(CodeGen) } function GetBrowser() { var agt=navigator.userAgent.toLowerCase(); if( ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)) ) return "IE"; else if( ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1)) ) return "Netscape"; else return "unknown"; } //--> Take a look at this live sample: How to Embed a .WMV file on your web page. |
|
|
|
|
|
#7 (permalink) |
|
Noogle
![]() Join Date: Mar 2006
Location: Australia
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
Hi again...
Just wondering how would I get this to work with a new window. Say I have an image, whne you click that image it uses a java script much like those websites with images to open the video in a basic new window that is sized appropriately? |
|
|
|
|
|
#8 (permalink) |
|
Junior Googler
![]() Join Date: Mar 2009
Posts: 27
Thanks: 5
Thanked 2 Times in 2 Posts
![]() |
Hi
you need this java code for your purpose. add code between your <body> , </body> tag: <a href="#"><img src="Your Image Path.jpg" width="120" height="80" border="0" onclick="MM_openBrWindow('http://www.google.com','your_page_name','width=300,height =200')" /></a> Description img src="Your Image Path.jpg" width="120" height="80" => Your Image Size ('http://www.your_target_page.com','your_page_name','width= 300,height=200') => Your target page with size that you like I hope this help |
|
|
|
|
|
#9 (permalink) |
|
Noogle
![]() Join Date: Mar 2006
Location: Australia
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
![]() |
I can get that to open an image in a new window, but how to make it open a window with the embedded player?
Sorry about all this, I just want more then what I know how to do all the time. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Google Tweaks Hosted Site Search, Updates Mini - IT Business Edge | News Alerts | Google in the News | 0 | 06-04-2008 08:18 AM |
| Salesforce.com embeds Google Apps in hosted CRM software - Computerworld | News Alerts | Google in the News | 0 | 04-14-2008 12:32 PM |
| Google takes hosted site search worldwide - VNUNet.com | News Alerts | Google in the News | 0 | 11-21-2007 08:02 AM |
| Video: How to get free software & games | JshLnsctt | Chit Chat | 0 | 03-20-2007 02:59 PM |
| Can Google see images for my site if hosted on different server? | allan cavanagh | Search Engine Optimization Forum | 3 | 02-14-2007 10:13 AM |