forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Αndré on June 18, 2009, 05:03:20 pm

Title: Remote videos for cpg1.5.x
Post by: Αndré on June 18, 2009, 05:03:20 pm
With this plugin you can 'upload' videos from Youtube and other video file hosters to your website.

Please find the button for the config page on the plugin manager. There you can enable/disable the different video hosters.

Usage:
1. Create a text file and insert the permalink or url from the browser address bar (e.g. http://www.youtube.com/watch?v=6B26asyGKDo)
2. Rename the text file to <filename>.<provider> (e.g. my_video.youtube)
3. Upload the text file to your Coppermine gallery (use the upload form or the batch-add feature)
4. Optional: upload a thumbnail for your video by using this plugin (http://forum.coppermine-gallery.net/index.php/topic,60272.0.html)

Download: http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/cpg1.5.x_plugin_remote_videos_v1.11.zip/download
Title: Re: Embed external videos for cpg1.5.x
Post by: Joachim Müller on June 18, 2009, 07:55:33 pm
That's cool - the kids will love that one.
Title: Re: Embed external videos for cpg1.5.x
Post by: Fabricio Ferrero on June 18, 2009, 08:57:55 pm
This kind of plugins becomes CPG even more popular, nice one! I love it! (...and I'm not a kid :P)
Title: Re: Embed external videos for cpg1.5.x
Post by: Phill Luckhurst on June 18, 2009, 10:37:53 pm
Nice one ;D. And having a plugin will reduce the amount of support from people who struggle with the Youtube mod.

What other providors do you have in mind?

I don't really use video in coppermine on my windsurfing site as the joomla integration combined with this plugin linked to below takes care of all my media needs. I've linked the plugin as it has a good list of other providors and their settings.

http://allvideos.fritz-elfert.de/
Title: Re: Embed external videos for cpg1.5.x
Post by: Αndré on June 19, 2009, 08:20:48 am
This is just an improved plugin version of my cpg1.4.x mod (http://forum.coppermine-gallery.net/index.php/topic,58222.0.html)  8)

I use Youtube for hosting too large video files (file size limit on my free webhost) and I don't know which other popular video websites exists. The only one I know is from Germany: www.myvideo.de

If a user want to have support for another provider, I will add it to the plugin and release a new version.
Title: Re: Embed external videos for cpg1.5.x
Post by: Fabricio Ferrero on June 19, 2009, 08:34:08 am
I don't know which other popular video websites exists.
It probably the same as "I don't know which other popular search engine exists."  :) Of course that there are others outthere, but Youtube (or Google in my example) has more than 90% of visitors worldwide. It's not a must, but if you want to, you could take a look at this list: http://wordpress.org/extend/plugins/embedded-video-with-link/ (http://wordpress.org/extend/plugins/embedded-video-with-link/)

My suggestion would be only these ones:


One that had a good past was dailymotion, not so popular nowadays.

Despite this critics, I love this plugin!

Cheers,
Title: Re: Embed external videos for cpg1.5.x
Post by: Phill Luckhurst on June 19, 2009, 08:56:04 am
I would add vimeo to that list. It is very popular over here and growing rapidly
Title: Re: Embed external videos for cpg1.5.x
Post by: Joachim Müller on June 19, 2009, 09:34:19 am
There may be some who will find it usefull to embedd videos from adult video sites like youporn. I know that this is the armpit of the internet and I could understand if you would not want to look into this. As I said before, I wouldn't use the plugin anway, as videos are beyond scope on my personal coppermine-driven sites, so this is just a suggestion what others might find usefull.
Not sure about all those sites - do all of them have an API? Do they want others to embedd their content? There is an aspect to this in legal terms as well.
Title: Re: Embed external videos for cpg1.5.x
Post by: Αndré on June 19, 2009, 09:38:48 am
I don't use any API. I just use the embed code these hosters provide to the public - so they want others to embed their content :)

I currently add support for the providers you told me.
Title: Re: Embed external videos for cpg1.5.x
Post by: Phill Luckhurst on June 19, 2009, 09:41:42 am
On Fritz's site that I linked to above there is a little info on the legal implications of embedding from these sites including some details on sites he was not allowed to add to his list.
Title: Re: Embed external videos for cpg1.5.x
Post by: Joachim Müller on June 19, 2009, 10:36:00 am
On Fritz's site that I linked to above there is a little info on the legal implications of embedding from these sites including some details on sites he was not allowed to add to his list.
I'd be interessted in such an article, but couldn't spot it. Could you please post a deep link to it?

@Andre: on Fritz's page there is a list of video services supported by his tool (http://allvideos.fritz-elfert.de/remote-content.html):

So you could conclude that it's a list of popular services that probably fall into the category "can be used with remote players".
Title: Re: Embed external videos for cpg1.5.x
Post by: Αndré on June 19, 2009, 10:43:29 am
  • 6.cn (http://6.cn/watch/5875895.html)
  • Apple trailers (http://www.apple.com/trailers/disney/walle/exclusive_medium.html)
  • Blip.tv (http://blip.tv/file/1045496/)
  • GameTrailers (http://www.gametrailers.com/player/35864.html)
  • MegaVideo (http://www.megavideo.com/?v=SSUJCTP0)
  • MyShows (http://www.myshows.cn/myplayvideo.aspx?vid=3142)
  • Google (http://video.google.com/videoplay?docid=5547481422995115331)
  • Yahoo (http://video.yahoo.com/watch/4999350/13297892)
  • YouTube (http://www.youtube.com/watch?v=6lbvSBNLLoo)
  • iFilm (now Spike) (http://www.ifilm.com/video/2783985)
  • Vimeo (http://www.vimeo.com/420617)
  • Metacafe (http://www.metacafe.com/watch/801083/impresive_drive_by_my_t3rio/)
  • Break (http://www.break.com/index/absolutely-hilarious-bathroom-mirror-prank.html)
  • Jumpcut (http://www.jumpcut.com/view/?id=300286B0350B11DC9A12000423CEF5B0)
  • Current TV (http://current.com/items/85012811_hard_in_an_instant)
  • Revver (http://www.revver.com/video/27335/extreme-diet-coke-mentos-experiments/)
  • College Humor (http://www.collegehumor.com/video:1796348)
  • MyVideo.de (http://www.myvideo.de/watch/3052858)
  • SevenLoad.de (http://de.sevenload.com/videos/BqV1zFl/Ein-Kaefer-mischt-auf-Minuscule)
  • ClipFish (http://www.clipfish.de/player.php?videoid=NDE2fDMz)
  • Stickam (http://www.stickam.com/editMediaComment.do?method=load&mId=176905747)
  • FreeVideoBlog (now Vidiac) (http://www.vidiac.com/toprated/0/f24a376c-636c-4280-af15-8b9547f46127.htm)
  • StreetFire (http://videos.streetfire.net/video/7b129723-1aac-40a5-b9cf-9a1d00e3ecda.htm)
  • DropShots (http://www.dropshots.com/felfert#albums/videotest/2007-04-28/09:30:42)
  • Bofunk (http://www.bofunk.com/video/6192/me_under_the_train.html)
  • Virb.com (http://www.virb.com/victorsolomon/videos/2795)
  • TED.com (http://www.ted.com/index.php/talks/view/id/127)
  • DailyMotion.com (http://www.dailymotion.com/de/cluster/travel/featured/video/x5tnma_weisswasserrodeo-das-kajak-special_sport)
A lot to do ;D work in progress.
Title: Re: Embed external videos for cpg1.5.x
Post by: Αndré on June 19, 2009, 12:46:33 pm
I need to increase the size of the file type extension during plugin installation:
Code: [Select]
ALTER TABLE {$CONFIG['TABLE_FILETYPES']} MODIFY extension CHAR(10)
Can this cause some unintended behavior to the rest of the gallery?
Title: Re: Embed external videos for cpg1.5.x
Post by: Phill Luckhurst on June 19, 2009, 01:28:05 pm
It was a while back when I first started using the plugin that I saw the legal page but I cannot find it right now. It may have been on on of the othe branches of this plugin as there are a number borrowing the code.

The gist of it is that it all depends on whether it can be considered "re-broadcasting". In the UK for instance it is illegal to rebroadcast without consent but in the case of embedding you are not the one liable but the host site is. There have been cases in the UK where lawyers have sent out letters asking poeple to withdraw such content and people usually abide. There has not yet been a case of this taken to court in the UK as both sides are worried it would set a legal precedent which depending on which way it went could damage either side. In Turkey for however, you are considered the one liable and can be persued. So it depends on where you are.

Another worrying issue is that of privacy. By viewing an embedded video you are still sending certain information back to for example youtube, it is just the way a browser works. But you as a user have not visited youtube but another site that happened to embed a youtube video. Therefore you did not have a choice whether to have that information sent to them. There are currently legal wrangles going on accross the globe regarding this to find out who is ultimately responsible and whether this is an invasion of privacy.

So having said all that I suggest you put a disclaimer/warning somewhere in the plugin stating some of the above information.
Title: Re: Embed external videos for cpg1.5.x
Post by: Joachim Müller on June 19, 2009, 06:51:14 pm
I need to increase the size of the file type extension during plugin installation:
Code: [Select]
ALTER TABLE {$CONFIG['TABLE_FILETYPES']} MODIFY extension CHAR(10)
Can this cause some unintended behavior to the rest of the gallery?
I'm not sure. I suggest asking this question on the dev board for cpg1.5.x coding and to suggest increasing the size in the first place (not only for the plugin, but generally for the entire cpg1.5.x install).
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on January 14, 2010, 02:16:29 pm
Version 1.3 attached to the initial post.
Title: Re: Remote videos for cpg1.5.x
Post by: Timos-Welt on January 18, 2010, 06:45:55 pm
Issue: Slideshow button sometimes crashes gallery if an external video is displayed as guest.
http://pics.timos-welt.de/displayimage-lastup-0-1037.html => click on slideshow.

Code: [Select]
While executing query 'UPDATE cpg15x_pictures SET hits = hits + 1, lasthit_ip = '84.174.92.155', mtime = CURRENT_TIMESTAMP WHERE pid = ' in include/functions.inc.php on line 2626

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on January 19, 2010, 10:15:03 am
Same happens for all non-images. See bug report (http://forum.coppermine-gallery.net/index.php/topic,63316.0.html).
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on March 13, 2010, 10:52:28 am
Version 1.5 adds a new config option to overwrite the default video dimensions.
Title: Re: Remote videos for cpg1.5.x
Post by: Scope on March 21, 2010, 07:52:33 pm
I have tried uploading a privat video, which works fine if you use the youtube URL a normal video has, but if you try to upload the "Limited-access URL" youtube offers I get this error:

Error: invalid video id

I dont make my videos (of the kids for my family to see) available to everybody, so it would be useful if this type of youtube URLs were supported.

Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on March 23, 2010, 09:25:39 am
I tested a private YouTube video some weeks ago and it worked. Please post the url.
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on March 27, 2010, 02:39:14 pm
Updated the video player height for the new dailymotion player in version 1.6.
Title: Re: Remote videos for cpg1.5.x
Post by: freakmonger on April 17, 2010, 12:29:40 pm
When trying to upload "Jeff.YouTube" I get "Security Error". :(
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on April 17, 2010, 12:41:14 pm
Please try to upload that file with the simple upload form (http upload). Problem seems not to be related to this plugin, but to your Coppermine setup. Maybe it helps to write the file extension in lower case.
Title: Re: Remote videos for cpg1.5.x
Post by: nike_bytom on April 26, 2010, 10:43:25 pm
hi  just add some code for youtube private videos. extension for them will be youtubepriv


Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on April 27, 2010, 09:05:31 am
Thanks for your contribution.

If you click on a limited access url (e.g. http://www.youtube.com/watch_private?v=abcdefghijk&sharing_token=N5RZKiA4K3cNuHELreQkeA) you will automatically redirected to http://www.youtube.com/watch?v=abcdefghijk. It's not possible to embed private videos via limited access url. Hm, it's technically possible, but only registered YouTube users which have access to that video can view it.

Changelog of version 1.7:
Title: Re: Remote videos for cpg1.5.x
Post by: grantson on May 21, 2010, 03:06:37 pm
Very nice

I was reading through the example codes for cpg1.4 to do this and it was making my head spin
upgraded to 1.5 and installed this, all working sweet

I had a look in the codebase.php file most of it seems to make sense
just wondered if anyone can tell me how to find the info to add in more sites?

motionbox and photobucket to be exact

thanks

Grant
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on May 21, 2010, 03:23:18 pm
motionbox and photobucket to be exact
I'll have a look if it's possible to integrate them.
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on May 26, 2010, 11:28:00 am
You need an account for motionbox.com - I neither have one nor want to register myself.

It's not possible to derive the embed path from the website url at photobucket.com. You need to enter that path manually, which isn't fool-proof and therefore beyond the scope of this plugin. Of course you can add
Code: [Select]
        case 'photobucket':
            $params = array(
                'search_pattern' => '/(.*)/',
                'default_width'  => 600,
                'default_height' => 361,
                'player'         => 'http://static.photobucket.com/player.swf',
                'player_height'  => 0,
            );
            return remote_videos_html_replace($params, $pic_html);
        break;
to codebase.php. But that's only recommended if you are the only person who can upload files to your gallery.
Title: Re: Remote videos for cpg1.5.x
Post by: grantson on May 26, 2010, 11:57:39 am
Thanks Andre :)
Title: Re: Remote videos for cpg1.5.x
Post by: sweetgunner on June 24, 2010, 10:37:54 pm
Could someone help me?
I've just installed the latest version of Coppermine and also this plugin, but I cant find the upload link and field for videos in my Upload Screen.

How can I fix that?

Thanks.
Title: Re: Remote videos for cpg1.5.x
Post by: sweetgunner on June 24, 2010, 11:30:21 pm
Could someone help me?
I've just installed the latest version of Coppermine and also this plugin, but I cant find the upload link and field for videos in my Upload Screen.

How can I fix that?

Thanks.

Ok, sorry. I just figured out how to do it. I was thinking as vs 1.4...  ::)
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on July 17, 2010, 11:26:50 pm
Version 1.8 fixes a small issue on the plugin config page. If a 'remote video file extension' is the first entry in the allowed movie types list, the checkbox is now set correctly.
Title: Re: Remote videos for cpg1.5.x
Post by: diafol on August 03, 2010, 11:16:08 pm
This works like a charm. Thank you.

I was a bit confused as to how to configure it, but that's now sorted.
Still, uploading a text file may be a fiddle for non-tech users. Perhaps a form with inputs for an url and a dropdown for video provider would be useful - when sent, this creates the textfile automatically. Just a thought.
Title: Re: Remote videos for cpg1.5.x
Post by: ff on August 19, 2010, 07:31:55 am
Maybe I'm wrong...

I've got several movies added in my CPG 1.4x with the Youtube-mod.
Will these be available with this plugin or do I have to add them all again?
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on August 19, 2010, 09:13:39 am
There are at least 2 YouTube mods. Please post a link which mod you are using.
Title: Re: Remote videos for cpg1.5.x
Post by: ff on August 19, 2010, 05:56:16 pm
There are at least 2 YouTube mods. Please post a link which mod you are using.

Sorry.

I am/was using this one : http://forum.coppermine-gallery.net/index.php/topic,37962.0.html
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on August 19, 2010, 07:52:07 pm
I don't know how that plugin works. But I assume that it won't work without some changes. Just give it a try in a local test environment.
Title: Re: Remote videos for cpg1.5.x
Post by: ff on August 19, 2010, 09:19:25 pm
I've tried your plugin.

Pro:
no modding -> no fuss with updates

Contra:
need to create and upload a text-file
need to create and upload a thumbnail

The mod had as pro that you could just put the URL in an text-field and that the thumbnail was automatically generated.

If you can add the last two contra's to pro's you've got a wonderfull plugin.
Everybody should than be able to add YouTube-movies ;)
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on August 19, 2010, 10:04:02 pm
I already thought about a box where you just have to paste the youtube url and it creates the file automatically. I planned to add a second box where you have to add the file name (or alternatively use the video id as file name). But as the plugin is designed to work without fopen, I think it's not possible to automatically add the thumbnail. Of course the plugin could try to grab the thumbnail and just do noting if it doesn't work.
Let me think a little bit more about these options and give me some time :)
Title: Re: Remote videos for cpg1.5.x
Post by: ff on August 19, 2010, 10:32:52 pm
I already thought about a box where you just have to paste the youtube url and it creates the file automatically. I planned to add a second box where you have to add the file name (or alternatively use the video id as file name). But as the plugin is designed to work without fopen, I think it's not possible to automatically add the thumbnail. Of course the plugin could try to grab the thumbnail and just do noting if it doesn't work.
Let me think a little bit more about these options and give me some time :)

Bitte ;)

The two largest suppliers of my plugins are German... how's that possible :D
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on August 19, 2010, 10:47:57 pm
The two largest suppliers of my plugins are German... how's that possible :D
We are busy bunnies :)
Title: Re: Remote videos for cpg1.5.x
Post by: christianr on August 20, 2010, 12:20:16 am
I am very satisfied about your plugin, and it works fine with the custom image.
It is a little work creating the text files, change the extension, and loading up for every file an image,
but the results may be seen. I upload for each audio also a custom image.
Advantage, all the other video providers can be done on the same way.
Once I was familar with "how to do it" i am very surprised with the result.
Here you have an example of my site:

http://christianitymedia.net/

Thank you very much, und eine gutte tag zugewuncht  :o

Title: Re: Remote videos for cpg1.5.x
Post by: christianr on August 24, 2010, 01:25:54 pm
I have discoverd something special:

If you use keyword tags for your Albums and Files
If you enable the keywords manager in your general settings
If you enable in your album list settings show number of linked files

For an album with a keyword f.i. "Promise", the application gonna search in all your albums all files where the word "Promise" is used.
In the album list it gives you a review, there are 3 normal files and 7 linked files in this album.
In the thumnail file list view of that album: First you will see the original files and than the linked files from all other albums.
It gonna give you the linked youtube files and also the uploaded thumbnails for that files.
So your user can see everything about "Promise" from different albums in one same album.
So that story about linked files works also for this plugin remote videos.

I was surprised in a very positive sense, to view this, and hope you can use it, because it is a powerful tool.
I tested a lot of applications, but I cannot ignore for these special things, coppermine is the best  ;D

Here you can see an example, see the description of the last folder "Promise" and open it,
The 3 first files Promise 01,02,03 are original files, all the other files are linked files from other albums.

http://christianitymedia.net/index.php?cat=4&page=3 (http://christianitymedia.net/index.php?cat=4&page=3)

Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on August 24, 2010, 08:09:12 pm
I have discoverd something special:

If you use keyword tags for your Albums and Files
If you enable the keywords manager in your general settings
If you enable in your album list settings show number of linked files

For an album with a keyword f.i. "Promise", the application gonna search in all your albums all files where the word "Promise" is used.
In the album list it gives you a review, there are 3 normal files and 7 linked files in this album.
In the thumnail file list view of that album: First you will see the original files and than the linked files from all other albums.
It gonna give you the linked youtube files and also the uploaded thumbnails for that files.
So your user can see everything about "Promise" from different albums in one same album.
So that story about linked files works also for this plugin remote videos.

I was surprised in a very positive sense, to view this, and hope you can use it, because it is a powerful tool.
I tested a lot of applications, but I cannot ignore for these special things, coppermine is the best  ;D

Here you can see an example, see the description of the last folder "Promise" and open it,
The 3 first files Promise 01,02,03 are original files, all the other files are linked files from other albums.

http://christianitymedia.net/index.php?cat=4&page=3 (http://christianitymedia.net/index.php?cat=4&page=3)


Something wrong here? Or is it just a report that this plugin works like a charm? 8)
Title: Re: Remote videos for cpg1.5.x
Post by: christianr on August 24, 2010, 11:54:21 pm
Something wrong here? Or is it just a report that this plugin works like a charm? 8)

Everythings works above my expectations, thanks for this fine plugin
Title: Re: Remote videos for cpg1.5.x
Post by: ShiversOfHorror on August 30, 2010, 06:26:01 pm
I'm upgrading to the latest 1.5.x and I'm curious about my current YouTube videos. Someone else asked here but I'm not sure if their reply back was that everything was fine or not.

Anyhow, currently I am using 1.4.x with this YouTube modification:
http://forum.coppermine-gallery.net/index.php/topic,37962.0.html

To be honest I love it, I don't have to do anything other then post the URL and it does the thumbnail for me. I wish you could somehow do the same thing with this.

Anyhow, I'm curious if my YouTube videos will still work (with thumbs and all) when I switch over to the newer version, or am I going to have to add them again again - thus taking a LONG time to fix & having to make thumbnails for each and having views back at 0
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on August 30, 2010, 06:39:35 pm
It's already on my to-do list:
I already thought about a box where you just have to paste the youtube url and it creates the file automatically. I planned to add a second box where you have to add the file name (or alternatively use the video id as file name). But as the plugin is designed to work without fopen, I think it's not possible to automatically add the thumbnail. Of course the plugin could try to grab the thumbnail and just do noting if it doesn't work.

Give me some time to add and test this feature.
Title: Re: Remote videos for cpg1.5.x
Post by: ShiversOfHorror on August 30, 2010, 08:15:57 pm
Awesome :)
Title: Re: Remote videos for cpg1.5.x
Post by: ff on October 11, 2010, 08:09:19 pm
It's already on my to-do list:
Give me some time to add and test this feature.

Is one month too soon? ;)
I wish I could program like you guys.
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on October 11, 2010, 09:31:44 pm
Is one month too soon? ;)
No. I'm currently quite busy. But it's on top of my list and it will be added as soon I find some spare time :)
Title: Re: Remote videos for cpg1.5.x
Post by: ShiversOfHorror on October 27, 2010, 05:59:33 pm
No. I'm currently quite busy. But it's on top of my list and it will be added as soon I find some spare time :)

Glad you still plan on this. Is the only reason I haven't upgraded yet lol  ;)
Title: Re: Remote videos for cpg1.5.x
Post by: ff on November 28, 2010, 09:59:23 pm
Glad you still plan on this. Is the only reason I haven't upgraded yet lol  ;)

I'm setting 1.5 up right now.
I think I'll get a big notify on this thread because I'm eager :)
Title: Re: Remote videos for cpg1.5.x
Post by: auct on December 17, 2010, 10:50:46 pm
I made a text file to the youtube video how do i change the name? When i click on the photo it just opens a browser with the code
http://www.theparsleys.com/gallery/displayimage.php?album=6&pid=12#top_display_media
i was trying to follow the instructions from andre.
1. Create a text file and insert the permalink or url from the browser address bar
2. Rename the text file to <filename>.<provider>
3. Upload the file like a normal video file
how do i upload it like a normal video file? maybe thats the problem.

thanks,
Ron
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on December 17, 2010, 10:56:50 pm
how do i change the name
With your file browser.


how do i upload it like a normal video file?
Just upload it like any other file you upload in Coppermine (with the flash uploader, the upload form or via batch-add).
Title: Re: Remote videos for cpg1.5.x
Post by: auct on December 17, 2010, 11:03:13 pm
thanks for answering so fast Andre what all should be in my text file, i can't change the .txt to .youtube
did you check my link?
thanks,
ron
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on December 17, 2010, 11:41:40 pm
You have to rename the file before you upload it. You have to insert
the permalink or url from the browser address bar
of the video.
Title: Re: Remote videos for cpg1.5.x
Post by: profili on February 26, 2011, 02:00:32 am
No. I'm currently quite busy. But it's on top of my list and it will be added as soon I find some spare time :)

Hey André, can you give the final touch to this plugin? Cheers.
Title: Re: Remote videos for cpg1.5.x
Post by: johny000 on April 11, 2011, 10:54:21 am
hello i just install this mod & is not working  where  i can post the youtube url?
 can you give me more inf as you saying

2. Rename the text file to <filename>.<provider>

i cant save  text file to <filename>.<provider>

or i'm doing any thing  bad  need more info plez

With this plugin you can 'upload' videos from Youtube and other video file hosters to your website.

Please find the button for the config page on the plugin manager. There you can enable/disable the different video hosters.

Usage:
1. Create a text file and insert the permalink or url from the browser address bar
2. Rename the text file to <filename>.<provider>
3. Upload the file like a normal video file
4. Optional: upload a thumbnail for your video by using this plugin (http://forum.coppermine-gallery.net/index.php/topic,60272.0.html)

Download: http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/cpg1.5.x_plugin_remote-videos_v1.7.zip/download
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on April 11, 2011, 11:23:53 am
i cant save  text file to <filename>.<provider>
You have to replace the token with something like
Quote
my_video.youtube
I just updated the instructions in the initial post.
Title: Re: Remote videos for cpg1.5.x
Post by: wutacrock on July 11, 2011, 05:35:35 am
so i got the plugin to work, but i can't seem to get my thumb nail shown. can someone help me?
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on July 13, 2011, 12:17:21 pm
How do you add the thumbnail? Please post a link to a video where the thumbnail doesn't work.
Title: Re: Remote videos for cpg1.5.x
Post by: kutanime.net.ms on October 04, 2011, 08:54:09 pm
please can you add the videozer.com to this plug-in
i tried to add it but all my tries was failed
Title: Re: Remote videos for cpg1.5.x
Post by: wrchto on October 23, 2011, 02:50:57 pm
I do something wrong using this plugin and I hope you can help me!

My video is on YouTube (http://www.youtube.com/watch?v=J1zpS0ins0A&feature=feedu (http://www.youtube.com/watch?v=J1zpS0ins0A&feature=feedu)).
I created the textfile Joyride.youtube (including exactly the link) and uploaded it via http-upload.
I also uploaded a thumbnail for my video using the plugin Custom Thumbnail for cpg1.5.x (http://forum.coppermine-gallery.net/index.php/topic,60272.0.html (http://forum.coppermine-gallery.net/index.php/topic,60272.0.html))

When I watch my gallery (Videos in www.photo66.at (http://www.photo66.at)) I can see the thumbnail for the video, but when I click on it, a new browser window opens showing the text http://www.youtube.com/watch?v=J1zpS0ins0A&feature=feedu (that's the link to my YouTube video) instead of starting the video.

Can you tell me what I did wrong?

Thx
Thomas
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on October 23, 2011, 03:34:57 pm
Try to remove the
Code: [Select]
&feature=feedu
Title: Re: Remote videos for cpg1.5.x
Post by: wrchto on November 06, 2011, 07:08:08 pm
Try to remove the
Code: [Select]
&feature=feedu

Sorry that I haven't answered till today...

I tried it without that but the result is the same.
If I copy it into the address line of my browser everthing is alright.
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on November 06, 2011, 11:18:53 pm
You have to display known file extensions in your browser. You haven't uploaded the file
Code: [Select]
Joyride.youtubebut
Code: [Select]
Joyride.youtube.txt
Remove the .txt and it will work as expected.
Title: Re: Remote videos for cpg1.5.x
Post by: altenae on November 16, 2011, 10:04:16 pm
Any change for à version supporter for Ipads ? (no flash) ??

Edward
Title: Re: Remote videos for cpg1.5.x
Post by: altenae on November 16, 2011, 10:05:52 pm
Sorry for the strange English.
It is the T9 on my IPad. ( it was still on Dutch)

Edward
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on November 17, 2011, 09:43:43 am
This plugin just uses the functionality provided by the video hosting sites. I have no personal interest in exploring all available websites if they provide a HTML5 player. So if you need that support, please have a look at those websites yourself and suggest their HTML5 codes.
Title: Re: Remote videos for cpg1.5.x
Post by: thomaskarado on November 28, 2011, 08:08:27 pm
Hi Andre..
I would like to use this plugin but is  not working for me,
In NOTEPAP...I include the youtube URL...
and SAVE as "mtvideo.youtube", upload using "normal" way but opens a code files tumbnails...cliking on it opens a blank page.
Please could you tell me what I did wrong?
yhank you.
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on November 28, 2011, 09:31:24 pm
Please post a link to the intermediate view of that uploaded file in your gallery (displayimage.php).
Title: Re: Re: Remote videos for cpg1.5.x
Post by: beatbone on February 08, 2012, 11:34:36 pm
You have to display known file extensions in your browser. You haven't uploaded the file
Code: [Select]
Joyride.youtubebut
Code: [Select]
Joyride.youtube.txt
Remove the .txt and it will work as expected.

With the txt-ending I only get a screen showing nothing but the url.

Without the txt-ending I cant even upload the file. I get this error message:
Forbidden file extension!

what now?
Title: Re: Remote videos for cpg1.5.x
Post by: beatbone on February 09, 2012, 12:49:40 am

Please find the button for the config page on the plugin manager. There you can enable/disable the different video hosters.

I think it has something to do with the enabling. When I hit the "remote videos" button on the plugin managing site I get redirected to the start page.
Nothing is happening. No adding of new file types or sth like that.
I tried to add "youtube" as a new video file type under settings - file settings, but didnt work either.

tried to reinstall the plugin, but didnt work either.

Any advice?
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on March 05, 2012, 04:56:08 pm
After installing the plugin:
Please find the button for the config page on the plugin manager. There you can enable/disable the different video hosters.

Without that additional configuration you won't be able to upload the custom plugin file types.
Title: Re: Re: Remote videos for cpg1.5.x
Post by: beatbone on March 07, 2012, 05:42:45 pm
After installing the plugin:
Without that additional configuration you won't be able to upload the custom plugin file types.
How can I get there? When I hit the "Remote videos"-button (the one with the toothed wheel) on the plugin manager site, I get redirected to the index.
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on March 08, 2012, 09:47:26 am
I just downloaded plugin version 1.8 from the initial post, installed it and hit the "Remote Videos Config" button. It directs me to index.php?file=remote_videos/admin and displays the plugin configuration screen, as intended (see attachment).
Title: Re: Remote videos for cpg1.5.x
Post by: pckconsult on April 29, 2012, 07:19:06 pm
Great Plugin.

Any thoughts for .facebook remote video - Mainly for use with business "pages" where no login to facebook is required by the end user? Have I missed it some how?

Thanks
 -PCK
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on April 30, 2012, 03:06:03 am
Please post a link to a Facebook video, so I can check its embedding options.
Title: Re: Remote videos for cpg1.5.x
Post by: pckconsult on May 03, 2012, 10:43:25 pm
Facebook Public Video Link:

https://www.facebook.com/photo.php?v=317043961686974&set=o.177605802297458&type=3&theater

or

https://www.facebook.com/photo.php?v=317043961686974

Thanks!

-PCK
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on May 04, 2012, 10:39:19 am
I cannot see any embedding options, so I think Facebook doesn't want that people embed their videos somewhere else. So there won't be support for Facebook videos, sorry.
Title: Re: Remote videos for cpg1.5.x
Post by: pckconsult on June 13, 2012, 11:42:32 pm
We appreciate you looking at this.

Thank you for your time,

-PCK 
Title: Re: Remote videos for cpg1.5.x
Post by: brad4edat on July 22, 2012, 07:05:29 pm
Hello :)

Can anyone make a video step by step how to use this plugin? I'm trying for months to do it but fail: (

Get Here:
Upload ... (TODO)

But the video and not be attached: (

Make a short video video, step by step work, please!
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on July 23, 2012, 12:08:21 pm
Maybe someone else will, but I won't create a video, as the instructions are very easy IMHO. Instead, explain what doesn't work and/or attach the file you try to upload to your gallery.
Title: Re: Remote videos for cpg1.5.x
Post by: brad4edat on July 23, 2012, 07:13:00 pm
From the instructions I can not figure out how to uploading -
use the upload form or the batch-add feature

What, where and how uploading (state) in this plugin is not well explained - explained. No good illustration.
Title: Re: Remote videos for cpg1.5.x
Post by: brad4edat on July 23, 2012, 07:16:31 pm
Should the server where my site is to be "virtual", ie Mainframe with full access to the root directory?
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on July 24, 2012, 08:51:45 am
I can not figure out how to uploading
http://documentation.coppermine-gallery.net/en/uploading.htm
Title: Re: Remote videos for cpg1.5.x
Post by: mykee on July 29, 2012, 10:12:02 am
Hmmmm... I think this feature will be good with pictures too or make a remote pictures plugin: uploaded or remote picture show on gallery... ::)
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on July 30, 2012, 09:23:33 am
I won't add this feature to this plugin, and I probably also won't create such a plugin.
Title: Re: Remote videos for cpg1.5.x
Post by: terrano on September 11, 2012, 09:50:59 pm
Is this plugin just for admin's to upload youtube videos to their gallery or can users/members also upload youtube videos ?

Cheers
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on September 12, 2012, 09:56:54 am
Like every other file type, everyone can upload this special file type.
Title: Re: Remote videos for cpg1.5.x
Post by: terrano on September 12, 2012, 10:00:47 pm
Thank you André for the mod

Really like how when the video is enlarged the user is not directed to You Tube.

So the uploading side does not look like "the poor cousin" to other gallery platforms is it possible please for you to code into the mod
as others have suggested where the user can simply just paste in the video hosts URL ?

I know of open source code that maybe of use to you to help implement where you can just paste in the URL ?

Obviously I am requesting this cause I want my gallery to be easy for our users to use, but obviously its going to really help to future proof the demand for Coppermine .....
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on September 13, 2012, 09:28:59 am
is it possible please for you to code into the mod
as others have suggested where the user can simply just paste in the video hosts URL ?

I still don't know where to place the field. Do you have any suggestions? If not, my idea is to add a button either to the menu or directly on the upload pages, which redirects you to a separate upload form where you can select the album and paste the URL.
Title: Re: Remote videos for cpg1.5.x
Post by: terrano on September 13, 2012, 11:30:08 pm
Thank you Αndré

Yes think on the upload page would be best. (clean and least confusion)
Title: Re: Remote videos for cpg1.5.x
Post by: terrano on September 19, 2012, 09:31:25 pm
Any idea please on a time frame when this can be implemented Αndré ?

Title: Re: Remote videos for cpg1.5.x
Post by: Veronica on September 19, 2012, 11:55:18 pm
I'm currently working on an Youtube URL user upload plugin which will work with this plugin Remote videos for cpg1.5.
I have added a third upload form in addition to swf and single file uploads.
Also I have made a conversion tool for the old Youtube hack for cpg1.4 by Nibbler so Coppermine sites still on cpg1.4 can upgrade and keep their Youtube links.

To make this plugin installable by anybody I want a new hook in db_input.php to process "uploads" which are not file uploads.
My suggestion for a new hook is like this in the last lines of db_input.php:
Quote
default:
    if(CPGPluginAPI::action('upload_process',$event)) break;

    // Unknown event
    if ($CONFIG['log_mode'] != 0) {
            log_write('Denied privileged access to db_input.php (unknown event) for user '.$USER_DATA['user_name'].' at ' . $hdr_ip, CPG_SECURITY_LOG);
    }
    cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
}

?>
Title: Re: Remote videos for cpg1.5.x
Post by: terrano on September 22, 2012, 03:22:40 am
Thank you Veronica that is excellent.

With wishful thinking I installed the code  :) are you able to give an indication
of time frame please Veronica, days weeks, months ? Appreciate everyone busy with
their own projects, looking to release our new site in 2 weeks, wondering if first bit
of correspondence going to be - "What's notepad"  :D
Title: Re: Remote videos for cpg1.5.x
Post by: Veronica on September 22, 2012, 03:35:52 am
I have a 99% working plugin but some more testing should be performed by me before releasing the code for installation
Title: Re: Remote videos for cpg1.5.x
Post by: terrano on September 22, 2012, 04:49:22 am
Well done - thank you for all your effort into the plugin ...
Title: Re: Remote videos for cpg1.5.x
Post by: Veronica on October 06, 2012, 02:48:46 pm
This is a status update of my new remote video linking plugin.

I have found a bug in Coppermine 1.5.20 which results in none of the help screens is easy readable within my plugin
http://forum.coppermine-gallery.net/index.php/topic,75476.0.html

When this bug is resolved by Coppermine development I can continue my work and also release my plugin
Title: Re: Remote videos for cpg1.5.x
Post by: terrano on October 23, 2012, 07:34:09 am
Thank you for the update Veronica



Our new site is ready togo live - this is the only piece of the jigsaw left to do.


Appreciate how precious The Coppermine Development team's time is, are you able to give a
time frame please when the bug will be fixed ?

Title: Re: Remote videos for cpg1.5.x
Post by: terrano on October 29, 2012, 10:15:27 pm
Veronica could you please contact me at 188318@gmail.com

Thank you
 
Title: Re: Remote videos for cpg1.5.x
Post by: Trinity1962 on July 16, 2013, 08:17:57 am
This is a fantastic plugin idea!

However I am having a little trouble...I have followed all of the instructions but after loading the test file to Coppermine I get the following error message when trying to view:

Error: invalid video id

Could somebody please advise where I might be going wrong.  I have the latest version of the video plugin (1.8) and Coppermine version 1.5.24

Thanks!
Title: Re: Remote videos for cpg1.5.x
Post by: Trinity1962 on July 16, 2013, 09:05:48 am
Ok, so if you leave us long enough we will work it out!

I needed to remove the "s" from https in the URL.

Cheers
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on August 19, 2013, 05:07:22 pm
I'll have a look if I can add HTTPS support.
Title: Re: Remote videos for cpg1.5.x
Post by: all-gsm on December 18, 2013, 04:26:42 am
please can add vk.com or any other video hosting for erotic content. The presented nothing works or violated by law (that I make myself shoot :)) :)
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on December 18, 2013, 09:13:41 am
Feel free to extend the plugin, it shouldn't be hard to understand how it works and how to add additional video hosting services.
Title: Re: Remote videos for cpg1.5.x
Post by: all-gsm on December 19, 2013, 04:39:21 am
not obtained to extend the plugin  :-\
where to find params 'player' from vk.com ?
Title: Re: Remote videos for cpg1.5.x
Post by: Phill Luckhurst on December 19, 2013, 08:09:20 am
You would need to research your chosen video provider. Some do not allow remote videos while other readily provide all the details. Andre has provided the facilities for many but we cannot obviously provide for all as they vary so much.
Title: Re: Remote videos for cpg1.5.x
Post by: all-gsm on December 19, 2013, 07:06:18 pm
if the video 100-200 pieces (each video is about 100Mb)upload, will it affect performance of my site
or you recommend to download the video on the video hosting?
performance of my hosting average
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on December 21, 2013, 05:58:12 pm
all-gsm, unfortunately I don't know what you're asking for. Using this plugin will save some traffic and storage space from your website, as you'd upload the video files to an external page.
Title: Re: Remote videos for cpg1.5.x
Post by: all-gsm on December 21, 2013, 07:49:14 pm
video that I need only on vk.com, unfortunately I do not know how to extend the plugin, I tried,
and about the video I meant upload to my site, video 100-200 pcs (each video ~ 100Mb), it probably will be very slow job site. Way more than 100MB video playing slow.
Title: Remote Video = Error: invalid video id
Post by: PopsTX on January 02, 2014, 04:22:12 pm
New installation of CPG w/ remote video plugin -->  Remote_Videos: Revision: 7781  LastChangedBy: eenemeenemuu

All is wonderful except the remote videos; which produce "Error: invalid video id".

In searching this forum, I find similar posts but nary a solution... Would really like to get this up and running.
All videos are YouTube pieces --of our own authorship -->a sample link is below.

http://youtu.be/EH5Rxi5qQos

Any help would be Greatly appreciated.
Title: Re: Remote Video = Error: invalid video id
Post by: Niecher on January 02, 2014, 05:05:21 pm
Use this url:
http://www.youtube.com/watch?v=EH5Rxi5qQos

Check out the post of the plugin:
http://forum.coppermine-gallery.net/index.php/topic,60195.msg297840.html#msg297840

Regards.
Title: Re: Remote Video = Error: invalid video id
Post by: Αndré on January 03, 2014, 02:33:09 pm
Try this change: http://sourceforge.net/p/coppermine/code/8636/#diff-1
Title: Re: Remote videos for cpg1.5.x
Post by: Niecher on January 04, 2014, 01:28:37 pm
Thank you very much André.

Regards.
Title: Re: Remote videos for cpg1.5.x
Post by: PopsTX on January 06, 2014, 06:24:20 am
Αndré, Niecher --> THANKS!

Especially for the updated codebase.php file.
Title: Re: Remote videos for cpg1.5.x
Post by: MarioLaul on February 02, 2014, 01:44:46 pm
It's just not working for me. I uploaded 02_02_14.youtube file on coppermine callery and i show player icon, but when i push the video icon nothing to do. Whats problem? anyone can help me?
Title: Re: Remote videos for cpg1.5.x
Post by: gmc on February 02, 2014, 07:21:12 pm
MarioLaul,
A link to the gallery would help to see what it is doing...
What version of Coppermine and the plugin?

I hadn't used this plugin before - but installed in in my testbed, uploaded the textfile description as {filename}.youtube, and played it successfully.


Title: Re: Remote videos for cpg1.5.x
Post by: MarioLaul on February 02, 2014, 07:48:24 pm
okei i see you :) http://rescue.nsc.ee/displayimage.php?album=15&pid=437#top_display_media

I use coppermine 1.5.26 version and plugin 1.8 version
Title: Re: Remote videos for cpg1.5.x
Post by: gmc on February 02, 2014, 08:15:55 pm
OK... your .youtube file looks correct - containing: http://www.youtube.com/watch?v=DOBiTKD2a-c which properly plays on youtube...
I loaded the same file to my sandbox and it played fine...

I overrode your sites theme - adding &theme=curve to the url:
http://rescue.nsc.ee/displayimage.php?album=15&pid=437&theme=curve#top_display_media (http://rescue.nsc.ee/displayimage.php?album=15&pid=437&theme=curve#top_display_media)
and the video played fine...
Something in your theme may be altering the code generating for the imbedded flash?

The page source for the flash object on your site appears as:
Code: [Select]
<object id="SWFlash"  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" type="application/x-shockwave-flash" width="320" height="285"><param name="autostart" value="true" /><param name="src" value="albums/userpics/10001/video.youtube" /><embed width="320" height="285" src="albums/userpics/10001/video.youtube" autostart="true" type="application/x-shockwave-flash" ></embed></object><br />

and on my site - and yours with theme set to curve:
Code: [Select]
<object type="application/x-shockwave-flash" width="640" height="385" data="http://www.youtube-nocookie.com/v/DOBiTKD2a-c"><param name="movie" value="http://www.youtube-nocookie.com/v/DOBiTKD2a-c" /><param name="allowfullscreen" value="true" /></object><br />

Not sure what accounts for the difference - but maybe will point you in the right direction...

Title: Re: Remote videos for cpg1.5.x
Post by: MarioLaul on February 02, 2014, 08:38:27 pm
okay, but how it works in floog theme?

i don't understood, what's different?
Title: Re: Remote videos for cpg1.5.x
Post by: MarioLaul on February 02, 2014, 08:55:53 pm
but looks this http://coppermine-gallery.net/demo/cpg15x/displayimage.php?album=6&pid=17#top_display_media

video is working..but not me.
Title: Re: Remote videos for cpg1.5.x
Post by: gmc on February 02, 2014, 09:25:40 pm
Perhaps one of the other devs can assist when they are available... Others have works with themes and the theme engine much more than me...
Title: Re: Remote videos for cpg1.5.x
Post by: Phill Luckhurst on February 02, 2014, 10:19:06 pm
Currently when I look at your link I am getting a database error. Is that something new?
Title: Re: Remote videos for cpg1.5.x
Post by: MarioLaul on February 02, 2014, 11:09:19 pm
Please look again http://rescue.nsc.ee/displayimage.php?album=15&pid=438#top_display_media
Title: Re: Remote videos for cpg1.5.x
Post by: gmc on February 03, 2014, 05:30:59 am
Phill,
see threadhttp://forum.coppermine-gallery.net/index.php/topic,62704.0.html (http://forum.coppermine-gallery.net/index.php/topic,62704.0.html) for related issue with another flash plugin...
Title: Re: Remote videos for cpg1.5.x
Post by: MarioLaul on February 03, 2014, 11:36:45 am
i'll try it, but nothing change.
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on February 03, 2014, 12:20:58 pm
As it seems to be a theme issue, please don't clutter any plugin threads, but start a new thread in the themes board describing your issue. Thanks.
Title: Re: Remote videos for cpg1.5.x
Post by: sharpo on March 14, 2014, 12:14:32 am
I'd just like to say this plugin is excellent. I installed it this evening along with the custom thumbnail plugin & it works very well.

Thanks.
Title: Re: Remote videos for cpg1.5.x
Post by: sharpo on March 15, 2014, 12:16:34 am
When I posted yesterday about it working well, I had not tried using Chrome. It doesn't appear to work, nothing appears where the intermediate image should be.

Firefox and Internet Explorer work as expected.

I have done a search about embedding videos in Chrome and other people seem to have problems as well. Is it Chrome at fault?

http://www.sharpos-world.co.uk/BB3cpg/thumbnails.php?album=672

Above is a link to 2 YouTube videos in my gallery
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on March 15, 2014, 12:54:36 pm
http://www.sharpos-world.co.uk/BB3cpg/thumbnails.php?album=672
Works as expected for me with Chrome 33.
Title: Re: Re: Remote videos for cpg1.5.x
Post by: sharpo on March 15, 2014, 03:30:20 pm
Works as expected for me with Chrome 33.
Thanks for checking Andre.

I'd better investigate further, mine is also version 33. Just checked "about" and it updated to:-
"Version 33.0.1750.154 m Google Chrome is up to date."

Suppose this is what happens when you don't regularly use a certain browser and it isn't the latest version!!

Pleased to say it works for me now.
Title: Re: Remote videos for cpg1.5.x
Post by: Apolimia on December 10, 2014, 09:06:35 pm
Is possible to add just embed codes? I mean... if I want to add a video from other host, can I just somehow add the embed code in the file and add it to the gallery? Thanks.
Title: Re: Remote videos for cpg1.5.x
Post by: GainesvilleHOG on December 11, 2014, 08:42:27 am
Rather than having to return to here for USAGE, I found it helpful to include the 3 steps in the configuration file $description.

Code: [Select]
$description = 'Upload videos from video file hosters to your gallery (YouTube, Google, Yahoo!, ...)<br />
USAGE:<br />
1. Create a text file and insert the permalink or url from the browser address bar (e.g. http://www.youtube.com/watch?v=6B26asyGKDo)<br />
2. Rename the text file to &lt;filename&gt;.&lt;provider&gt; (e.g. my_video.youtube)<br />
3. Upload the text file to your Coppermine gallery (use the upload form or the batch-add feature)';
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on December 17, 2014, 02:50:54 pm
Is possible to add just embed codes? I mean... if I want to add a video from other host, can I just somehow add the embed code in the file and add it to the gallery? Thanks.
That's currently not supported. Of course it could be added by adjusting the regular expressions the plugin uses to detect the video ID (and probably other needed information). Feel free to adjust the plugin and share it with the community. Maybe a leading and trailing
Code: [Select]
.*will already work, but that really depends on the embed code of the respective video hosters.
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on January 30, 2015, 09:56:22 pm
Attached is a beta version. It includes some unreleased changes I committed over a year ago (:o), Vine support (http://forum.coppermine-gallery.net/index.php/topic,77788.msg377063.html#msg377063) added by ISANexusDev (http://forum.coppermine-gallery.net/index.php?action=profile;u=166395) and some general code and feature improvement of both contributions.

Main things to test:
- YouTube: HTTP and HTTPS support of short (youtu.be) and long (youtube.com) domain - both with and without leading "www" sub-domain
- Vimeo: HTTP and HTTPS support
- Vine: everything (HTTP and HTTPS support & new config options)

Title: Re: Re: Remote videos for cpg1.5.x
Post by: ISANexusDev on January 31, 2015, 01:28:56 pm
Attached is a beta version. It includes some unreleased changes I committed over a year ago (:o), Vine support (http://forum.coppermine-gallery.net/index.php/topic,77788.msg377063.html#msg377063) added by ISANexusDev (http://forum.coppermine-gallery.net/index.php?action=profile;u=166395) and some general code and feature improvement of both contributions.

Main things to test:
- YouTube: HTTP and HTTPS support of short (youtu.be) and long (youtube.com) domain - both with and without leading "www" sub-domain
- Vimeo: HTTP and HTTPS support
- Vine: everything (HTTP and HTTPS support & new config options)

Reviewed the code: It looks shinny for me.
Tested many Youtube/Vimeo/Vine for https | http  + with or without www subdomain + youtube.com | youtu.be combinations, and all were working correctly.

Thank you!
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on January 31, 2015, 02:00:01 pm
Version 1.9 has been added to initial post.
Title: Re: Remote videos for cpg1.5.x
Post by: ratte-rizzo on March 06, 2015, 04:50:04 pm
Hey

I am facing a problem, that the video plugin is not working anymore since a day or so. The video link is re-directed from
https://www.youtube.com/watch?v=xxx
to
https://www.youtube-nocookie.com/watch?v=xxx

It WOULD work, if it would be redirected to
https://www.youtube-nocookie.com/watch/v/xxx
or the classic initial link above...

Thanks for fixing
Daniel
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on March 11, 2015, 08:48:12 pm
I noticed on my private gallery that all YouTube videos stopped to work. I guess you're facing the same problem, but I don't know what you mean with "redirect" in your explanation.

I just had a look at the embed code YouTube currently provides. It obviously changed to iframe. I'll perform some tests as soon as possible.
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on March 11, 2015, 09:02:14 pm
Version 1.10 (attached to initial post) should fix the YouTube issues.
Title: Re: Remote videos for cpg1.5.x
Post by: SFdrifter on March 11, 2015, 10:34:08 pm
Wow!  Thanks for the quick turnaround...works fine!
Title: Re: Remote videos for cpg1.5.x
Post by: kylemj on August 02, 2015, 07:17:41 pm
i've tried to figure out the code to embed
Code: [Select]
<iframe src="http://vk.com/video_ext.php?oid=164681391&id=162151261&hash=45dcf38e51031b2f" width="607" height="360" frameborder="0"></iframe>but every method i tried brings up  Error: invalid video id

Any ideas?
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on August 04, 2015, 08:21:13 pm
Please post more details. What exactly have you tried?
Title: Re: Re: Remote videos for cpg1.5.x
Post by: kylemj on August 06, 2015, 08:55:04 pm
Please post more details. What exactly have you tried?

I didn't keep all the tests but this was the last one i tried, I don't know coding and tried to manipulate existing ones but it didn't work as the VK embed code uses 3 different IDs

Code: [Select]


        case 'vk':

            $params = array(

                'search_pattern' => '/http:\/\/(?:www\.)?vk\.com\/\?video_ext.php?oid=([A-Za-z0-9]+)&id=([A-Za-z0-9]+)&hash=([A-Za-z0-9]+)/',

                'default_width'  => 640,

                'default_height' => 480,

                'player'         => 'http://vk.com/video_ext.php?oid={MATCH_1}&id={MATCH_2}&hash={MATCH_3}',

                'player_height'  => 0,

            );

            return remote_videos_html_replace($params, $pic_html);

        break;



/*

        case '':

            $params = array(

                'search_pattern' => '',

                'default_width'  => ,

                'default_height' => ,

                'player'         => '{MATCH_1}',

                'player_height'  => ,

            );

            return remote_videos_html_replace($params, $pic_html);

        break;

This is the embed code VK gives
Code: [Select]
<iframe src="http://vk.com/video_ext.php?oid=164681391&id=162151261&hash=45dcf38e51031b2f" width="607" height="360" frameborder="0"></iframe>So theoretically just need to know how to get the oid, id and hash values
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on August 07, 2015, 01:15:27 pm
Code: [Select]
'search_pattern' => '/http:\/\/(?:www\.)?vk\.com\/video_ext\.php\?oid=([A-Za-z0-9]+)&id=([A-Za-z0-9]+)&hash=([A-Za-z0-9]+)/',removes the invalid video ID message.

Unfortunately the vk.com player needs some more parameters to play the video:
Code: [Select]
<param name="flashvars" value="uid=164681391&amp;vid=162151261&amp;oid=164681391&amp;host=http://cs505420v4.vk.me/&amp;vtag=3db79b5d6d&amp;ltag=l_6b169856&amp;vkid=162151261&amp;md_title=%26lt%3Biframe+src%3D%22http%3A%2F%2Fvk.com%2Fvideo_ext.php%3Foid%3D7324586%26id%3D162001297%26hash%3Db7d57fd756ecf0d3%26sd%22+width%3D%26quot&amp;md_author=Elena+Rotsel&amp;author_id=164681391&amp;author_href=/id164681391&amp;hd=0&amp;no_flv=1&amp;hd_def=0&amp;dbg_on=0&amp;t=0&amp;duration=63&amp;thumb=http://cs505420.vk.me/u164681391/video/l_6b169856.jpg&amp;hash=6b3a8670eb0ed9db33fef5cd5dc3487f&amp;hash2=45dcf38e51031b2f&amp;angle=0&amp;img_angle=0&amp;repeat=0&amp;show_ads_preroll=0&amp;show_ads_postroll=0&amp;show_ads_overlay=0&amp;legal_owner=0&amp;eid1=0&amp;slot=0&amp;g=0&amp;a=0&amp;puid34=0&amp;water_mark=&amp;can_rotate=1&amp;c3=&amp;no_adfox=1&amp;ads_preview=0&amp;puid4=0&amp;url240=http://cs505420v4.vk.me/u164681391/videos/3db79b5d6d.240.mp4?extra=D0j3UO6n8dPwDgaNZXS5TbpsaynlgivH2y_L8viVqgfY7xW98I-99CNw08vomo0qwM7NyMTi3mmG4EjeM-J4qNC_IdjPOFI&amp;jpg=http://cs505420.vk.me/u164681391/video/l_6b169856.jpg&amp;ip_subm=1&amp;video_ext=1&amp;is_yandex=0&apm;&amp;is_vk=1&amp;is_ext=1&amp;referrer=&amp;lang_add=Add+to+My+Videos&amp;lang_added=Video+added+to+My+Videos&amp;lang_share=Share&amp;lang_like=Like&amp;lang_subscribe=Subscribe&amp;lang_subscribed=You+have+subscribed&amp;lang_volume_on=Unmute&amp;lang_volume_off=Mute&amp;lang_volume=Volume&amp;lang_hdsd=Change+Video+Quality&amp;lang_open_popup=Expand&amp;lang_fullscreen=Full+Screen&amp;lang_window=Minimize&amp;lang_rotate=Rotate&amp;lang_ads_link=Advertiser%27s+Site&amp;lang_ads=Ads&amp;lang_ads_skip=Skip+ad&amp;lang_next=Next+video&amp;lang_replay=Replay&amp;lang_next_cancel=Cancel&amp;lang_ads_skip_time=Skip+ads+in+%7Btime%7D&amp;lang_report_problem=Report+a+problem..&amp;video_play_hd=Watch+in+HD&amp;video_stop_loading=Stop+Download&amp;video_player_version=VK+Video+Player&amp;goto_orig_video=Go+to+Video&amp;video_get_video_code=Copy+video+code&amp;video_load_error=The+video+has+not+uploaded+yet+or+the+server+is+not+available&amp;video_get_current_url=Copy+frame+link"></param>

so the video player cannot be embedded directly in Coppermine, but needs an iframe. Please have a look how it has been solved for vine.
Title: Re: Remote videos for cpg1.5.x
Post by: kylemj on August 09, 2015, 05:24:55 pm
After many days of clueless testing i have got it to work  ;D

ok and to share

find
Code: [Select]
$params['player'] = str_replace("{MATCH_2}", $video_id[2], $params['player']);

and below add
Code: [Select]
$params['player'] = str_replace("{MATCH_3}", $video_id[3], $params['player']);

find
Code: [Select]
$params['extra_params'] = str_replace("{MATCH_2}", $video_id[2], $params['extra_params']);
and below add
Code: [Select]
$params['extra_params'] = str_replace("{MATCH_3}", $video_id[3], $params['extra_params']);
after the last case (eg. vine after break; add
Code: [Select]
        case 'vk':

            $params = array(

'search_pattern' => '/http:\/\/(?:www\.)?vk\.com\/video_ext\.php\?oid=([A-Za-z0-9]+)&id=([A-Za-z0-9]+)&hash=([A-Za-z0-9]+)/',

                'default_width'  => 660,

                'default_height' => 415,

                'player'         => 'http://vk.com/video?act=get_swf&oid={MATCH_1}&vid={MATCH_2}&embed_hash={MATCH_3}',
Title: Re: Remote videos for cpg1.5.x
Post by: kylemj on August 09, 2015, 10:35:56 pm
You'll need to take the url out of the embed code and to save the text file extension as .vk
Title: Re: Remote videos for cpg1.5.x
Post by: chant_s on November 15, 2015, 06:42:55 pm
With this plugin you can 'upload' videos from Youtube and other video file hosters to your website.

Please find the button for the config page on the plugin manager. There you can enable/disable the different video hosters.

Usage:
1. Create a text file and insert the permalink or url from the browser address bar (e.g. http://www.youtube.com/watch?v=6B26asyGKDo)
2. Rename the text file to <filename>.<provider> (e.g. my_video.youtube)
3. Upload the text file to your Coppermine gallery (use the upload form or the batch-add feature)
4. Optional: upload a thumbnail for your video by using this plugin (http://forum.coppermine-gallery.net/index.php/topic,60272.0.html)

Download: http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/cpg1.5.x_plugin_remote_videos_v1.9.zip/download

Ive uploaded the folder to the gallery directory, as well as the txt file, but this plugin doenst show in plugin directory? nor does the video work
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on November 15, 2015, 06:55:01 pm
Please read the docs how to install Coppermine plugins.
Title: Re: Remote videos for cpg1.5.x
Post by: Αndré on March 23, 2016, 12:25:24 pm
Version 1.11 (attached to initial post) adds general iframe support. Additionally the deprecated <object> embed was replaced by an iframe for YouTube.