Google Community
Latest Forums Rules Resources
Custom Search

Go Back   Google Community > Webmaster Forums > Web Design, Coding & Programming Forum

GoogleCommunity Sponsor

Reply
 
LinkBack Thread Tools Display Modes
Old 01-04-2009, 10:11 PM   #1 (permalink)
Noogle
 
Join Date: Mar 2006
Location: Australia
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Phizinza
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
Phizinza is offline   Reply With Quote
 
Sponsored Links
Old 03-16-2009, 03:06 AM   #2 (permalink)
Junior Googler
 
Join Date: Mar 2009
Posts: 27
Thanks: 5
Thanked 2 Times in 2 Posts
Lucky Links is on a distinguished road
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>
Lucky Links is offline   Reply With Quote
Old 03-17-2009, 12:15 AM   #3 (permalink)
Noogle
 
Join Date: Mar 2006
Location: Australia
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Phizinza
Thanks, but that doesn't work in Firefox at all and refuses to load the videos either AVI (divx) or WMV in IE7
Phizinza is offline   Reply With Quote
Old 03-18-2009, 12:36 AM   #4 (permalink)
Junior Googler
 
Join Date: Mar 2009
Posts: 27
Thanks: 5
Thanked 2 Times in 2 Posts
Lucky Links is on a distinguished road
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.
Lucky Links is offline   Reply With Quote
Old 03-19-2009, 12:09 AM   #5 (permalink)
Noogle
 
Join Date: Mar 2006
Location: Australia
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Phizinza
Quote:
Originally Posted by Lucky Links View Post
Step One
Now that's really helpful! Thank you!

One query though... Any chance of getting the player to show a preview picture of the video while it is loading?
Phizinza is offline   Reply With Quote
Old 03-20-2009, 04:27 PM   #6 (permalink)
Junior Googler
 
Join Date: Mar 2009
Posts: 27
Thanks: 5
Thanked 2 Times in 2 Posts
Lucky Links is on a distinguished road
unfortunately, you haven't a chance to get preview picture for a wmv automatically. there isn't in wmv players structure.
you can set it manually for a file.
Lucky Links is offline   Reply With Quote
Old 04-09-2009, 04:57 AM   #7 (permalink)
Noogle
 
Join Date: Mar 2006
Location: Australia
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Phizinza
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?
Phizinza is offline   Reply With Quote
Old 04-10-2009, 11:13 PM   #8 (permalink)
Junior Googler
 
Join Date: Mar 2009
Posts: 27
Thanks: 5
Thanked 2 Times in 2 Posts
Lucky Links is on a distinguished road
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
Lucky Links is offline   Reply With Quote
Old 04-23-2009, 08:53 PM   #9 (permalink)
Noogle
 
Join Date: Mar 2006
Location: Australia
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Phizinza
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.
Phizinza is offline   Reply With Quote
Old 04-23-2009, 10:15 PM   #10 (permalink)
Noogle
 
Join Date: Apr 2009
Location: Jamaica
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ladymystery38 is on a distinguished road
Smile Questions

I think its good to ask these questions. Others can benefit from the answers without having to rewrite the questions. Thanks.
ladymystery38 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



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


All times are GMT -8. The time now is 09:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004–2007 Google Community