1
pmcnamara
AMS/embed video
  • 2006/3/12 14:10

  • pmcnamara

  • Friend of XOOPS

  • Posts: 147

  • Since: 2004/12/3


What is the best way to embed a video into an AMS article ?

2
pmcnamara
Re: AMS/embed video
  • 2006/3/16 2:27

  • pmcnamara

  • Friend of XOOPS

  • Posts: 147

  • Since: 2004/12/3


anyone ?

3
Jharis
Re: AMS/embed video
  • 2006/3/16 6:47

  • Jharis

  • Just can't stay away

  • Posts: 488

  • Since: 2005/2/13


I didn't know ams could. Perhaps you can use the embed. I found two scripts that might work. Not my scripts. Just dug them up.

You might try either of these scripts.

‘< 'embed allowscriptaccess="never" type="video/x-ms-asf-plugin"pluginspage=
“http://microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/” src=”http://urlto/yourvideo.wmv”
name=”player”
bufferingtime=”" 20=”"
enablecontextmenu=”1″
showdisplay=”0″
showtracker=”1″
showpositioncontrols=”0″
showstatusbar=”0″
autosize=”0″
autostart=”0″
transparentatstart=”1″
height=”285″
width=”380″>

You can do the same with mp3’s useing the following code as an example:

‘< 'embed allowscriptaccess="never"
src=”http://pathto/your.mp3″
type=”application/x-mplayer2″
autostart=”0″
loop=”1″
height=”40″
width=”280″>

Before you use any of the code listed above, please remember you have to remove the ‘ before and after the < , if you don't it will just show you the code you entered.

2nd Script

<SCRIPT LANGUAGE="JavaScript">

function openindex()
{
OpenWindow=window.open("", "newwin", "height=250,width=250,toolbar=no,scrollbars="+scroll+",menubar=no");
OpenWindow.document.write("<HTML>")
OpenWindow.document.write("<TITLE>My Embedded Video</TITLE>")
OpenWindow.document.write("<BODY BGCOLOR=000000>")
OpenWindow.document.write("<EMBED SRC=4secjoe.avi AUTOSTART=true></EMBED>")
OpenWindow.document.write("</HTML>")
OpenWindow.document.close()
self.name="main"
}
</SCRIPT>

[Don't copy this]
...and this goes in the BODY Command:
[Don't copy this]

onLoad="openindex()"

don (el paso)
motto - green chili for everything!

4
pmcnamara
Re: AMS/embed video
  • 2006/3/17 16:25

  • pmcnamara

  • Friend of XOOPS

  • Posts: 147

  • Since: 2004/12/3


I was able to use embedded video from google on this page:

http://www.lansingsportsrage.com/modules/AMS/article.php?storyid=117

The code lookes like:

"<embed style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?videoUrl=http%3A%2F%2Fvp.video.google.com%2Fvideodownload%3Fversion%3D0%26secureurl%3DnwAAANFfknq0z7ZvqPL4xYAn4zZ1-QpdacTBpW86MsvvCSgY7t0KUX1SZJU-Z1F0XL7nRcaeQS_R5he7L-IjQqpFFTw3adQIoX7oeGmpVsqoARoNecf2Qz8VoZPmk07lGcFRFk9JO4PXIEYPlvvfF7paboYheP3gMIa1CsfrP4172k2TOeBHmLOTYfXIPE3_qyqC_TbgoUDW_YI1mXtPCQ8WeQI%26sigh%3DiJB4KBwY3pctPPTUhKukOrzhG3E%26begin%3D0%26len%3D160760%26docid%3D-6891873796773147917&thumbnailUrl=http%3A%2F%2Fvideo.google.com%2FThumbnailServer%3Fcontentid%3D6edb3d9d766fcc20%26second%3D5%26itag%3Dw320%26urlcreated%3D1142171647%26sigh%3Ds8RDaSGXAVaEdw2l-Muj1rfK7Qg&playerId=-6891873796773147917" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" wmode="window" salign="TL" FlashVars="playerMode=embedded"> </embed>"

But no luck with the mp3 or mpg or wmv embedding.. any idea folks ?

5
Liger
Re: AMS/embed video
  • 2006/3/17 18:31

  • Liger

  • Just popping in

  • Posts: 77

  • Since: 2006/1/26


Have you taken a look at the SmartMedia module from SmartFactory ?

I use it on my website and it works pretty good.

-JP
Americans for Fair Taxationhttp://www.fairtax.org

Login

Who's Online

257 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 257


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Mar 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits