How to Embed Off site Video Files to your Gallery How to Embed Off site Video Files to your Gallery
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How to Embed Off site Video Files to your Gallery

Started by Takako, December 15, 2008, 04:06:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Takako

I'm not sure if I'm posting this to the right forum, would moderators kindly move this if it is incorrectly posted. Or perhaps there already is a similar topic I don't know of~

I run a video gallery utilising Coppermine, and through some old threads and research, I found a very simple way to embed offsite windows media and real media video files I thought I'd share. (Assuming you own the offsite hosting account or have permission from the owner, as this would otherwise be major leeching)

I'm not a coder or programer, so I'll explain this method very plainly, if my use of terms is not fully correct, please forgive me.

How to Embed Windows Media Player files such as wmv, asf, mpg, .avi, etc
1. Upload your video file to your offsite hosting account. Eg. testvideoclip.wmv

2. Create a text file called testvideoclip.asx (can be named anything for you to correspond to the offsite clip)
In this text file you will have the following code
<ASX version="3">
<Title>testvideoclip</Title>
<Author>Me</Author>
<MoreInfo href = "http://www.myalternatesite.com"/>
<ENTRY> 
<title>testvideoclip</title>
<ref href="http://myalternatesite/testvideoclip.wmv"/>

</ENTRY>
</ASX>


simply have the <ref href="http://myalternatesite/testvideoclip.wmv"/> point to your offsite clip

3. upload this .asx text file to you coppermine gallery, and your clip will be streamed to your coppermine gallery


How to Embed Real Media Player files such as rm, rmvb etc
1. Upload your video file to your offsite hosting account. Eg. testvideoclip.rm
2. Create a text file called testvideoclip.ram (can be named anything for you to correspond to the offsite clip)
In this text file simply needs to contain the url of your rm file
E.G.
http://myalternatesite.com/testvideoclip.ram

Again, upload this clip as you normally would to your coppermine gallery, and your clip will be streamed to your coppermine gallery

If you want to create a unique thumbnail for your clip, simply upload a pic called thumb_testvideoclip.jpg to the folder holding your asx or ram file

It's that simple!!

Oh, and makesure your coppermine gallery accepts .asx and ram filetypes, otherwise just add them with your filetypes editor
asx video/x-ms-asx movie Windows media player
ram video/x-pn-realaudio movie RealMedia player

Now if someone could teach or tell me whether something similar can be done with .flv files that would be most appreciated.

Cheers!

Takako

Sorry, I just made a mistake in the above post, and realised I can't edit.

Here is the corrected instructions for streaming real media files

How to Embed Real Media Player files such as rm, rmvb etc
1. Upload your video file to your offsite hosting account. Eg. testvideoclip.rm
2. Create a text file called testvideoclip.ram (can be named anything for you to correspond to the offsite clip)
In this text file simply needs to contain the url of your rm file
E.G.
http://myalternatesite.com/testvideoclip.rm

Again, upload this clip as you normally would to your coppermine gallery, and your clip will be streamed to your coppermine gallery

If you want to create a unique thumbnail for your clip, simply upload a pic called thumb_testvideoclip.jpg to the folder holding your asx or ram file


-------------------
CORRECTED SECTION
ram text file should contain
http://myalternatesite.com/testvideoclip.rm
NOT
http://myalternatesite.com/testvideoclip.ram

suria



Hello sir,
Thank you so much for the useful post, i am running Coppermine V1.5 and i wan to Embed Flv, Mp4, Avi, Mpeg files and i want to stream it from external site..

can you please provide me the script how to play those files from off site.. like .asx file u created in demo..

thank you

Jeff Bailey

Quote from: suria on January 21, 2010, 09:10:36 PM
i am running Coppermine V1.5
1.5 goes unsupported, you didn't post a link, you hijacked a thread and you posted in the wrong board... just to name a few. Quite a bit of rules to break on your first post. Read the Board Rules.

Locking
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford