Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How to Embed Off site Video Files to your Gallery  (Read 5297 times)

0 Members and 1 Guest are viewing this topic.

Takako

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
How to Embed Off site Video Files to your Gallery
« on: December 15, 2008, 04:06:02 am »

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
Code: [Select]
<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.
Code: [Select]
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!
Logged

Takako

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 26
Re: How to Embed Off site Video Files to your Gallery
« Reply #1 on: December 15, 2008, 04:13:29 am »

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.
Code: [Select]
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
Code: [Select]
http://myalternatesite.com/testvideoclip.rmNOT
Code: [Select]
http://myalternatesite.com/testvideoclip.ram
Logged

suria

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: How to Embed Off site Video Files to your Gallery
« Reply #2 on: January 21, 2010, 09:10:36 pm »



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
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Re: How to Embed Off site Video Files to your Gallery
« Reply #3 on: January 21, 2010, 09:27:55 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
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.