Is there any way to view movies embeded in the page. After you click the thumb to go to the detailed page. I would like to view the movie there not have to download it.
also is there any way to have the comments visible like in gallery1
yes, movies are displayed inline. if you see "download this " (item? movie?) then something went wrong.
activate the comments module and set appropriate permissions on your albums/items to work with comments.
rogermh
Joined: 2005-01-09
Posts: 102
Posted: Wed, 2005-04-20 06:51
Quote:
if you see "download this " (item? movie?) then something went wrong.
Hmmm...I've always gotten the "Download this item" for movies. Been meaning to ask about this in the forums, but davej beat me to it. Any suggestions on what's going wrong?
----
Gallery URL (optional):
Gallery version: G2 from Apr 17, 2005 nightly
Webserver (with version): Apache 1.3.33
Database (with version): MySQL 3.23.53
PHP version (eg 4.2.1): 4.3.2
phpinfo URL (optional):
Graphics Toolkit(s): ImageMagick
Operating system: OS X 10.3.8
Web browser/version: Firefox 1.0.3
mindless
Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-04-20 15:08
When you upload a file to G2 it tries to identify the mime type.. it then assigns an internal type to the item, like GalleryPhotoItem or GalleryMovieItem. If there is no internal type for handling the particular mime type then it uses GalleryUnknownItem which will show that "Download this item" link when viewed.
The browser may send a mime type along with the file; otherwise G2 looks at the file extension to determine the mime type. With the default mime settings (you can add/edit these in site admin if you activate the mime types module) these extensions should create a GalleryMovieItem: avi, mov, mpe, mpeg, mpg, qt, asf, wmv
rogermh
Joined: 2005-01-09
Posts: 102
Posted: Wed, 2005-04-20 19:37
OK, that makes sense, but all the movie files I have are .AVI files which is one of the recognized formats you listed for G2. Plus, G2 knows it's a movie file because it automatically assigns it the default movie thumbnail and provides the link "Download this movie".
Does the case of the text matter? My movie files end in .AVI (all caps). I wouldn't think it would make a difference though.
rogermh
Joined: 2005-01-09
Posts: 102
Posted: Wed, 2005-04-20 19:39
I just realized that I didn't have the MIME Maintenance module installed and activated so I just did that. Unfortunately, my movies still don't display inline. Maybe I need to flush some sort of cache?
mindless
Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-04-20 22:24
Oh, if you see "Download this movie" it means the item was created as GalleryMovieItem but it doesn't know the dimensions of the movie so it can't display it inline. Use ffmpeg module to get the dimensions automatically; otherwise do "edit movie" and enter the dimensions.
I forgot about this.. it's the more likely case for davej too, I think.
A couple other notes.. 1) Mime module isn't required to support these mime types.. the module only adds the UI where you can edit the mime types list.
2) You are correct that case in the filename doesn't matter.. however, I just discovered that the mime types module will allow you to add an extension in uppercase which will never be used since we match by converting the filename extension to lowercase. (I'll fix this)
3) If you get the mime types setup correctly it won't fix movies you have already uploaded.. these are already saved as GalleryUnknownItem. You have to upload a new movie and see if it works. (but as described above it sounds like you have GalleryMovieItems already, so you're ok here)
Posts: 8601
yes, movies are displayed inline. if you see "download this " (item? movie?) then something went wrong.
activate the comments module and set appropriate permissions on your albums/items to work with comments.
Posts: 102
Hmmm...I've always gotten the "Download this item" for movies. Been meaning to ask about this in the forums, but davej beat me to it. Any suggestions on what's going wrong?
Here's an example from my work-in-progress site (please excuse the mess, I'm struggling a bit getting all the layouts and CSS to work):
http://www.rohjuh.com/gallery/main.php?g2_view=core:ShowItem&g2_itemId=21874
----
Gallery URL (optional):
Gallery version: G2 from Apr 17, 2005 nightly
Webserver (with version): Apache 1.3.33
Database (with version): MySQL 3.23.53
PHP version (eg 4.2.1): 4.3.2
phpinfo URL (optional):
Graphics Toolkit(s): ImageMagick
Operating system: OS X 10.3.8
Web browser/version: Firefox 1.0.3
Posts: 8601
When you upload a file to G2 it tries to identify the mime type.. it then assigns an internal type to the item, like GalleryPhotoItem or GalleryMovieItem. If there is no internal type for handling the particular mime type then it uses GalleryUnknownItem which will show that "Download this item" link when viewed.
The browser may send a mime type along with the file; otherwise G2 looks at the file extension to determine the mime type. With the default mime settings (you can add/edit these in site admin if you activate the mime types module) these extensions should create a GalleryMovieItem: avi, mov, mpe, mpeg, mpg, qt, asf, wmv
Posts: 102
OK, that makes sense, but all the movie files I have are .AVI files which is one of the recognized formats you listed for G2. Plus, G2 knows it's a movie file because it automatically assigns it the default movie thumbnail and provides the link "Download this movie".
Does the case of the text matter? My movie files end in .AVI (all caps). I wouldn't think it would make a difference though.
Posts: 102
I just realized that I didn't have the MIME Maintenance module installed and activated so I just did that. Unfortunately, my movies still don't display inline. Maybe I need to flush some sort of cache?
Posts: 8601
Oh, if you see "Download this movie" it means the item was created as GalleryMovieItem but it doesn't know the dimensions of the movie so it can't display it inline. Use ffmpeg module to get the dimensions automatically; otherwise do "edit movie" and enter the dimensions.
I forgot about this.. it's the more likely case for davej too, I think.
A couple other notes..
1) Mime module isn't required to support these mime types.. the module only adds the UI where you can edit the mime types list.
2) You are correct that case in the filename doesn't matter.. however, I just discovered that the mime types module will allow you to add an extension in uppercase which will never be used since we match by converting the filename extension to lowercase. (I'll fix this)
3) If you get the mime types setup correctly it won't fix movies you have already uploaded.. these are already saved as GalleryUnknownItem. You have to upload a new movie and see if it works. (but as described above it sounds like you have GalleryMovieItems already, so you're ok here)
Posts: 102
Thanks mindless, that did the trick.
Posts: 8601
Great!
davej, does this work for you too?