 |
| Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more. |
|
 |
01-16-2008, 02:47 PM
|
#1 (permalink)
|
|
Junior Member
Join Date: 01-16-08
Posts: 1
Latest Blog: None
|
Adding video to website
Hi
I have a .mpg clip from my camera (took video from my camera) now how do I add that to my website, I want to keep the video small. so I can put it in the upper right corner of my site (not open in Windows Media player, etc)
Thanks for your help,
Marcia
|
|
|
01-17-2008, 07:55 AM
|
#2 (permalink)
|
|
v7n Mentor
Join Date: 09-03-07
Location: England
Posts: 646
Latest Blog: None
|
Contain it within an Iframe or put in a flash file and play it through that on a loop? Remember you NEED a media player, you might not realise but your browser has media players built in or a default one is chosen when you want to watch stuff- something needs to decode the .mpg to display onto your screen properly.
I'd say playing it in flash is the best option if you have the ability to do so...
I disagree with videos playing without people asking for it though, so i might be wrong and if i am- then i'm sure someone wiser will point it out for you!
Boog's
|
|
|
01-19-2008, 11:59 AM
|
#3 (permalink)
|
|
Jeffesis
Join Date: 12-05-07
Location: Clear Lake City, TX
Posts: 1,570
|
|
|
|
02-19-2008, 08:53 PM
|
#4 (permalink)
|
|
Junior Member
Join Date: 02-19-08
Posts: 12
Latest Blog: None
|
embed video player
Quote:
Originally Posted by heatfan
Hi
I have a .mpg clip from my camera (took video from my camera) now how do I add that to my website, I want to keep the video small. so I can put it in the upper right corner of my site (not open in Windows Media player, etc)
|
Go to the link jdspc supplied. That's what you need to do. Basically, you're just embedding the "standard" Windows Media Player on your site, and specifying the name of the file to play. You specify the player size, so you can set it to play your video as small as you want (I'm assuming when you say you want to keep the video small you mean the display size of the movie, and not its byte size). You place the embed code where you want the movie to display (such as in a div or a table cell such that in your case the video player ends up in the upper right corner of your site).
Dan
|
|
|
02-20-2008, 07:39 AM
|
#5 (permalink)
|
|
v7n Mentor
Join Date: 05-18-04
Location: Florida
Posts: 1,568
Latest Blog: None
|
This will allow links to video on the same page to play in an embedded media player
In the head:
<script language="javascript1.2" type="text/javascript">
function setFilePath(fileurl) {
var player=document.getElementById("mp_2167271702");
player.URL=fileurl;
player.controls.play();
}
</script>
A link to video:
<a class="link" href="path to stream and name/yourvideo.wmv" onclick="setFilePath('mms://path to stream and name/yourvideo.wmv');
return false">video link name</a>
Media player embed:
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="mp_2167271702" width="361" height="283"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
standby="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject" align="center" >
<param name="StretchToFit" value="-1">
<param name="AutoStart" value="-1">
<param name="Balance" value="0">
<param name="EnableContextMenu" value="0">
<param name="Enabled" value="-1">
<param name="EnableErrorDialogs" value="0">
<param name="WindowlessVideo" value="0">
<param name="Rate" value="1">
<param name="CurrentPosition" value="0">
<param name="CurrentMarker" value="0">
<param name="FullScreen" value="0">
<param name="URL" value="path to stream and yourvideo.wmv.asx" ref>
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<param name="Uimode" value="full">
<param name="Volume" value="59">
<param name="defaultFrame" value>
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
</object>
<SCRIPT LANGUAGE="Javascript">
if (navigator.appName == "Netscape" && !window.GeckoActiveXObject)
{
var mediaLocation = document.location.href.substring(0, document.location.href.lastIndexOf("/")) + "path and video name.asx";
document.writeln('<APPLET NAME="mp_2167271702" HEIGHT="283" WIDTH="361" CODE="WMPNS.WMP" MAYSCRIPT>');
document.writeln('<PARAM NAME="URL" VALUE="' + unescape(mediaLocation) + '" \>');
document.writeln('<PARAM NAME="AUTOSTART" VALUE="TRUE"');
document.writeln('<PARAM NAME="STRETCHTOFIT" VALUE="True"');
document.writeln('<PARAM NAME="ENABLED" VALUE="TRUE"');
document.writeln('<PARAM NAME="WINDOWLESSVIDEO" VALUE="FALSE"');
document.writeln('<PARAM NAME="ENABLECONTEXTMENU" VALUE="FALSE"');
document.writeln('<PARAM NAME="FULLSCREEN" VALUE="FALSE"');
document.writeln('<PARAM NAME="RATE" VALUE="1.000"');
document.writeln('<PARAM NAME="CURRENTPOSITION" VALUE="0.000"');
document.writeln('<PARAM NAME="CURRENTMARKER" VALUE="0"');
document.writeln('<PARAM NAME="MUTE" VALUE="FALSE"');
document.writeln('<PARAM NAME="PLAYCOUNT" VALUE="1"');
document.writeln('<PARAM NAME="UIMODE" VALUE="FULL"');
document.writeln('</APPLET>');
}
</SCRIPT>
__________________
Just because you're paranoid doesn't necessarily mean people aren't out to get you
Last edited by pinkfluffybunny; 02-20-2008 at 07:44 AM..
|
|
|
03-01-2008, 10:18 PM
|
#6 (permalink)
|
|
Junior Member
Join Date: 04-02-05
Posts: 20
Latest Blog: None
|
You can use this streaming video software which does almost everything for you - that is conversion and generation of the HTML code (w3c compatible), not just embed codes. http://www.easyflv.com
|
|
|
03-02-2008, 10:05 AM
|
#7 (permalink)
|
|
v7n Mentor
Join Date: 05-18-04
Location: Florida
Posts: 1,568
Latest Blog: None
|
Just use this kid:
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" id="mp_2167271702" width="361" height="283"
CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
standby="Loading Microsoft Windows Media Player components..."
TYPE="application/x-oleobject" align="center" >
<param name="StretchToFit" value="-1">
<param name="AutoStart" value="-1">
<param name="Balance" value="0">
<param name="EnableContextMenu" value="0">
<param name="Enabled" value="0">
<param name="EnableErrorDialogs" value="0">
<param name="WindowlessVideo" value="-1">
<param name="Rate" value="1">
<param name="CurrentPosition" value="0">
<param name="CurrentMarker" value="0">
<param name="FullScreen" value="0">
<param name="URL" value="unsaved:///path to stream and yourvideo.wmv.asx">
<param name="Mute" value="0">
<param name="PlayCount" value="1">
<param name="Uimode" value="none">
<param name="Volume" value="59">
<param name="defaultFrame" value>
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
</object>
__________________
Just because you're paranoid doesn't necessarily mean people aren't out to get you
|
|
|
05-22-2008, 08:14 PM
|
#8 (permalink)
|
|
Junior Member
Join Date: 05-22-08
Posts: 4
Latest Blog: None
|
This helped me
I used this for the same job:
http://www.streamingflv.com
Think it could also be what you are looking for.
Hope it helps
Regards
Diloris
|
|
|
05-28-2008, 03:50 PM
|
#9 (permalink)
|
|
Junior Member
Join Date: 05-28-08
Posts: 1
Latest Blog: None
|
I was searching google for help with video embedding. I found this topic in this forum. I tried the script pinkfluffybunny posted, and it worked for me. Problem is, when I tried using multiple embedded videos using this script, something goes wrong. It displays part of the code on the screen. and a second blank window.
The part it displays on the screen looks like something that tells the browser how to act if being viewed through netscape navigator.
Does anyone know whats wrong?
|
|
|
06-04-2008, 11:44 AM
|
#10 (permalink)
|
|
Junior Member
Join Date: 06-04-08
Location: Dublin
Posts: 3
Latest Blog: None
|
Diloris gave the answer
Quote:
Originally Posted by Lost My Mind
I was searching google for help with video embedding. I found this topic in this forum. I tried the script pinkfluffybunny posted, and it worked for me. Problem is, when I tried using multiple embedded videos using this script, something goes wrong. It displays part of the code on the screen. and a second blank window.
The part it displays on the screen looks like something that tells the browser how to act if being viewed through netscape navigator.
Does anyone know whats wrong?
|
Check out the Multitrack software as seen on the website Diloris posted above. Does it all and creates smaller files.
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 08:36 AM.
© Copyright 2008 V7 Inc Powered by vBulletin Copyright © 2000-2009 Jelsoft Enterprises Limited.
|
|
|