The mobile plugin seems to be working well. Having a problem with the zpmobile theme for video and audio files.
The problem I was seeing is that if I have an album of videos, when in the album page and clicking on a video it seemed to lockup. It would never show the image page with the video.
I've modified the section of image.php as follows:
<?php
if(isImagePhoto()) {
?>
<img src="<?php echo pathurlencode(getDefaultSizedImage()); ?>" alt="<?php echo getBareImageTitle(); ?>" style="max-width:<?php echo getDefaultWidth(); ?>px"/>
<?php
} elseif(isImageVideo() && getOption('zpmobile_mediadirectlink')) {
// mp3 files in the album also end up here...seems to kind still work ok...plya button doesn't work, but click on scrollbar plays audio
$videoThumb = $_zp_current_image->objectsThumb;
if (!empty($videoThumb)) {
$album = $_zp_current_image->getAlbum();
$albumfolder = $album->name;
$videoThumb = getAlbumFolder(WEBPATH).pathurlencode($albumfolder.'/'.$videoThumb);
}
$vid = '<p><video src="';
$vid .= pathurlencode(getUnprotectedImageURL());
$vid .= '" poster="';
$vid .= $videoThumb;
$vid .= '" width="300" controls preload onclick="this.play();"> Your browser does not support video/audio.</video></p>'; //this line old
// autoplay working in Chrome/Windows and on iOS6 Iphone4s. Android Gingerbread, Jellybean not autoplaying in default browser or Chrome
//in CHrome if autoplay, navigating to different page..video's audio can still be heard!
//$vid .= '" width="300" preload controls="controls" autoplay="autoplay" onclick="this.play();"> Your browser does not support video/audio.</video></p>';
echo $vid;
} else {
printDefaultSizedImage(getImageTitle());
}
?>
Few question. I'm not clear what the zpmobile_mediadirectlink setting in the theme options was supposed to be for, but here I am using it to put in an HTML 5 video tag instead of using flowplayer.
Wondering if anyone has any thoughts on the above??