Pages (6):    1 2 3 4 5 6   
Member
Member
aitf311   27-07-2007, 19:57
#81

kenoji, if you look in template-functions.php there is a function printCustomSizedImage()

It looks like you can set the width and height in there but an autodetect script is beyond me.

Member
Member
La0c00n   27-07-2007, 20:26
#82

I don't think php could autodetect easily the size of a video...
Except using some system calls with ffmpeg

Member
Member
jordi-kun   23-08-2007, 11:48
#83

I realized that having an album with only videos, no album thumb is shown in the list of albums.

I had to add in the class-album.php/getAlbumThumbImage function:

  `//jordi-kun - no images, no subalbums, check for videos

  $dp = opendir($albumdir);

  while ($thumb = readdir($dp)) {

    if (is_file($albumdir.$thumb) && is_valid_video($thumb)) {

      return new Image($this, $thumb);

    }

  }`

right after the

  `// Otherwise, look in sub-albums.

  $subalbums = $this->getSubAlbums();

  foreach ($subalbums as $subdir) {

    $subalbum = new Album($this->gallery, $subdir);

    $thumb = $subalbum->getAlbumThumbImage();

    if ($thumb != NULL && $thumb->exists) {

      return $thumb;

    }

  }`
Member
Member
bouncey   24-08-2007, 20:53
#84

This is great! One thing really bothers me though.

The way the player works by default, it has a control bar that covers part of the video. At 320x240 it's a very non-trivial part. If I move the mouse away, after a few seconds the bar goes away too. But that isn't entirely intuitive and I only noticed by accident. Besides, I'd like to leave it visible to give an indication of how much time remains.

I've been looking at the documentation from the apparent original producer of the FLV player (the SWF file). It's possible to control the image size, player bar color, show/hide volume control, etc... But how do I move that control bar [i]under[/i] my movie where it belongs?!? I didn't have much luck finding info about that.

Maybe resize the video area to leave enough pixels for the control bar... But then the movie centers itself vertically, leaving a black bar on the top and an obstructed area on bottom. Ugh.

But otherwise, again, the video mod is well done.

Member
Member
bouncey   24-08-2007, 22:10
#85

One other suggestion: It would be good to overlay something on the thumbnail image to indicate that it's a movie. That way photos and videos can be mixed in the same album, and people clicking through will know which type is about to be downloaded. Good for those with slow net access.

I wouldn't call it a major problem though. It would be easy enough to separate our movies and stills into different albums with "photo" and "video" in the album names. In my case (for now anyway) they're in completely separate galleries.

Member
Member
jordi-kun   24-08-2007, 22:44
#86

@bouncey:
this can be done using the watermark hack and forcing to watermark the thumbs of videos.

Member
Member
mickey2combs   27-08-2007, 21:40
#87

I would be grateful of any help - I have installed the video theme and on first view with the default theme, all appeared to be OK - video uploaded, displayed OK with thumb and played OK when tested. However, when I went into admin>options, it threw up the following error:

Warning: Invalid argument supplied for foreach() in /home/sites/mysite/public_html/zenphoto/zen/kses.php on line 429

It is repeated about 25-30 times before then displaying the list of themes. I tried changing the theme but still get the same error repeated on every page - whatever theme is selected. However, at the end of end of the error messages, it does give me the relevant screen eventually - with the last error message showing

Warning: Cannot modify header information - headers already sent by (output started at /home/sites/mysite/public_html/zenphoto/zen/kses.php:429) in /home/sites/mysite/public_html/zenphoto/index.php on line 9

When I eventaully scroll through all this and get to the relevant links - the video file still works but how do I get rid of this problem as it makes this fantasic feature unuseable at the current time?

I have no knowlege of php so am at a bit of a loss to understand what has gone wrong...

I have downloaded and installed the zenvideo zip file from the earlier link according to the instructions.

Thanks

Member
Member
BertSimons   28-08-2007, 07:07
#88

hi bouncey

i did add a filmstrip to the videos for thw zenvideo hack like described in this post
http://www.zenphoto.org/support/topic.php?id=1599&replies=4#post-9005

see it at http://www.kiemkracht.com/en/vrij%20werk/homo%20herbarius/

an for the video parameters;
on my own site (under contruction at http://www.bertsimons.nl/wordpress/?p=28 )I used jeroen weijerings flashplayer and added this to my customfunctions.php which is called on my image.php page by printDefaultSizedImageVideo() tu use his player which has a lot of adjustable parameters. ( use it uploading an image and a flv of the same name eg movie.jpg, movie.flv)

// Video integration jeroen weijerings flashplayer

function printDefaultSizedImageVideo($alt, $class=NULL, $id=NULL) {
// [BEGIN] added by cvogt: check for non image data
$file_full = $_SERVER['DOCUMENT_ROOT'].getFullImageURL();
$file_wo_ext = substr($file_full,0,strrpos($file_full,"."));
if( file_exists( $file_wo_ext.".flv" )){
?>

Get Flash to see this player.

var so = new SWFObject("/zenphoto/themes/izen/flvplayer/flvplayer.swf","mpl","520","390","7");
so.addParam("allowfullscreen","true");
so.addVariable("file",".flv");
so.addVariable("displayheight","390");
so.addVariable("autostart","true");
so.addVariable("repeat","true");
so.addVariable("overstretch","true");
so.addVariable("showicons","false");
so.write("player");
Member
Member
BertSimons   28-08-2007, 10:29
#89

and off course add

Member
Member
sunkast   13-09-2007, 20:44
#90

Has anyone figured out how to use the watermark hack to apply a watermark only to video thumbnails? If so, can you explain how? I have the video and watermark hack applied but so far I haven't been able to figure out how to apply a watermark only to video thumbnails.

Member
Member
jordi-kun   19-09-2007, 03:38
#91

I have added support for .mov videos as well as .3gp (not sure if you guys in the states have it).

the patch can be found in the zenvideo ticket here

mov files are heavy, so only intranet use is advised. For both video types, Quicktime plugin for your browser is required.

Administrator
Administrator
acrylian   19-09-2007, 09:52
#92

How heavy .mov files are depends on how you compress them. They look better than most .flv files, I think.
Maybe it would be a good idea to include .mp4-files or .avi/divx-files, too?

Member
Member
aitf311   19-09-2007, 12:22
#93

.mov .flv and .3gp videos are now supported in the SVN thanks to jordi-kun

Member
Member
jordi-kun   21-09-2007, 15:39
#94

@aitf311: in the revision 477, this change was lost. There is no reference in its comments so I'm not sure if it was on purpose or just overlooked.

Member
Member
aitf311   21-09-2007, 17:00
#95

jordi-kun, what part is missing? I just checked my template-functions and the major section is still there starting on line 803.

Member
Member
jordi-kun   21-09-2007, 17:12
#96

well, it's indeed in the functions.php

Member
Member
aitf311   21-09-2007, 17:13
#97

But whats missing?

Member
Member
jordi-kun   21-09-2007, 17:25
#98

the mov+3gp support is reverted back to only .flv videos, isn't it? you can see that in is_valid_video(), is_videoThumb() and checkVideoThumb()

Member
Member
aitf311   21-09-2007, 17:27
#99

Would you mind patching it up and putting the php files up on the ticket? I will halt updated until I get this included. Thanks jordi.

Member
Member
jordi-kun   21-09-2007, 18:24

done, all yours (ticket 54)

Pages (6):    1 2 3 4 5 6   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.