Displaying videos from Youtube in Coppermine. - Page 5 Displaying videos from Youtube in Coppermine. - Page 5
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Displaying videos from Youtube in Coppermine.

Started by Nibbler, October 31, 2006, 03:42:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ashelby

Does this actually upload the youtube file to my server?  Or is it linking to youtube?  I'm looking around the coppermine forums and it is a question I am curious of.  I read there is no remote storage option for coppermine, does this hack null that.  This might be another subject all together, but would it be possible to feed video through coppermine from other sites.  Take a url from somesite.com/videos/video_x.wmv and play that video on the coppermine page without storing the file locally.

I am looking at this for my site and giving away the original URL is no problem, in fact I want it displayed for credit purposes and I've added a field for the video creator to put their website address on every video.

Thanks the excellent support and excellent script,

Aric

Nibbler

A already answered this question - it is just a link. The thumbnail is copied to the server but that is all.

You can add code to stream videos from anywhere you like.

ashelby

Awesome, I will take a much closer look at your code today (I have the YOUTUBE working) and see if I can massage it into what I need. 

Any quick tips on doing this?

This really helps my effort.  I was getting frustrated with godaddy's file size limits.

I will post what I can figure out on changing the godady limit to 8MB, as well as the streaming other formats.

Aric

video-tutorials.com

webslingers

I have put in all the code, can upload a youtube video fine, but when it comes to display on the theme, there is only a small thumbnail. Clicking on the thumbnail does nothing. Can someone tell me where I may have messed up? I've tried using a upload.php from a working source which tells me it might be a server thing. Thanks for any help.

Nibbler

You probably missed the change to your theme. post your code.

ashelby

Yes, I had the same when I switched themes.  You have to make the changes in every theme.php file or you will just get the thumbnail.

Aric

P1mm3l4ug3

Hi

I have a small Problem

The Upload works fine, then i select the album and then i got this message

The previous file could not be placed.

You have successfully placed all the files.


What i have to do

webslingers

I uploaded the script to my production server to work out all the bugs there and not have to do it twice. All works well until I go to view the newly uploaded video. I get a white box. www.frankandmarywatson.com/vids

I have entered the code to work with PHP4 and made all the needed chmod adjustments.

Thank you.

Nibbler

You have some issue with duplicate files. Add a video you have never added before.

webslingers

Quote from: Nibbler on March 01, 2007, 12:35:46 AM
You have some issue with duplicate files. Add a video you have never added before.

Ok, I uploaded a new video and it worked. Awesome! How do I clear all the history of all vids to start over? Is there a way to dissallow or change dup uploads?

Nibbler

Duplicates are normally handled fine by Coppermine, but since this is just a hack it is not so clean. You need to delete the thumbnails of the youtube videos from your FTP (thumb_youtube_xxx.jpg)

webslingers

Quote from: Nibbler on March 01, 2007, 12:47:00 AM
Duplicates are normally handled fine by Coppermine, but since this is just a hack it is not so clean. You need to delete the thumbnails of the youtube videos from your FTP (thumb_youtube_xxx.jpg)

and those are in albums/userpics/xxx   ?

I've delete those, didn't fix the white vids. Did I miss something?

Nibbler

It won't fix existing problems. It will stop it happening for future videos.

webslingers

Quote from: Nibbler on March 01, 2007, 01:13:15 AM
It won't fix existing problems. It will stop it happening for future videos.

Ok, that works for me. Seems to have done the trick. I have one more question. Is it my understanding that if you have private vids only, this is not for you? There is no way to add the site as a user somehow and allow viewing of private vids?


webslingers

Ok, so it works great! Thank you for this!

If anyone has info on how to display private vids on your website without the user being logged into youtube as well, that would be great information. Maybe the site can have an open session with youtube and be listed as a friend somehow...? What are the thoughts on this? Can it be done?

Thanks Nibbler... Thanks to anyone else who posts!

P1mm3l4ug3

Quote from: P1mm3l4ug3 on February 28, 2007, 11:49:50 PM
Hi

I have a small Problem

The Upload works fine, then i select the album and then i got this message

The previous file could not be placed.

You have successfully placed all the files.


What i have to do


aNY iDEA

ashelby

Nibbler has explained this, you are probably uploaing duplicate files.  Try uploading something you have never uploaded before and see if it comes out successfully.  If it works, then you should just have to change the file names for uploading the duplicate files.

Aric

P1mm3l4ug3

its not an duplicate file i have test it with many different video's and pictures

its always the same message

upload ok, i choose the album and the title and then

The previous file could not be placed.

You have successfully placed all the files.

and the files are 100% not a duplicate

P1mm3l4ug3

Here is my Upload.php file

possibly anyone can find the error i build in, in the script ;D