On Gallery3: cannot play video on iPhone if it's only available to registered users (I am logged in)

cipc

Joined: 2009-12-17
Posts: 8
Posted: Mon, 2012-06-18 13:58

Hi,

in public albums everything works perfect. In an album that's available only to registered users, when trying to play the video (logged in as admin, using imobile theme), I get an empty stream (the video seams to start playing, but all I get is a black screen). As soon as I make the same album available to everyone, I can play the video.

I suppose this has something to do with permissions at file level, but cannot get behind it.

Mention: on the desktop, everything works fine.

Any help is greatly appreciated.

Regards,
C


Gallery version: 3.0.4
PHP version: 5.2 (FastCGI)
PHPInfo Link: http://gallery.cioiulescu.net/phpinfo.php
Webserver: Apache 2.2.22
Operating system: Linux

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2012-06-18 16:15

In order to narrow things down:
Does it work with the default theme?
Do you have view full permissions set for the album as there is no resize version of the video to show. So if the user does not have permissions to view the full size no vidoe will play.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
cipc

Joined: 2009-12-17
Posts: 8
Posted: Mon, 2012-06-18 16:46

Thanks for the quick answer:

regardles the theme, I have the same behaviour.
Here's a screenshot of the persmisions:

Again, if I set the same permisions for everybody, then it works!

Greetings,
C

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2012-06-18 17:04

I don't have a iphone to test but might be able to test with a ipod touch later today.
Does this work?
login as user: fred pass: fredfred
to http://www.langleycom.com/gallery3/index.php/
and see if this movie plays:
http://www.langleycom.com/gallery3/index.php/Test1/barsandtone

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
cipc

Joined: 2009-12-17
Posts: 8
Posted: Mon, 2012-06-18 18:19

barsandtone does not seem to work.

Here's my examples of working videos:
http://gallery.cioiulescu.net/2010_08_U2_Frankfurt/Filme#PhotoSwipe1340043297851

Which, if I set permissions to registered users only, will not work anymore.

Greetings,
C.

 
m34m

Joined: 2013-03-12
Posts: 1
Posted: Tue, 2013-03-12 02:20

There are at least 2 problems around this:

1. iPhone sends different user-agent for video requests, 'AppleCoreMedia/<version> (iPhone; U; CPU OS <version> like Mac OS X; <locale>)' instead of normal Mozila/5.0 (iPhone;...). This breaks G3's session management.
See cookie::salt() and $conifg["validate"] in modules/gallery/config/session.php.

2. iPhone requires Range: HTTP header support for videos. See Appendix A in http://mobiforge.com/developing/story/content-delivery-mobile-devices

Thanks.