please test the Beta: there is now a picture page, so video plugins might work or at least can be easily updated
Offline
Hello,
I tested the latest beta 2.6.0 beta 1.
it does not change anything for mobile.
I tried also the patch, which gave me this template file :
{if !empty($thumbnails)}
{combine_script id='klass' path='themes/smartpocket/js/klass.min.js'}
{combine_script id='photoswipe' path='themes/smartpocket/js/code.photoswipe.jquery.min.js' require='klass,jquery.mobile'}
{combine_script id='smartpocket' path='themes/smartpocket/js/smartpocket.js' require='photoswipe'}
{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
<ul class="thumbnails">
{foreach from=$thumbnails item=thumbnail}{strip}
{assign var=derivative value=$pwg->derivative($thumbnail_derivative_params, $thumbnail.src_image)}
{
{if $thumbnail.file|pathinfo:$smarty.const.PATHINFO_EXTENSION == 'm4v' || $thumbnail.file|pathinfo:$smarty.const.PATHINFO_EXTENSION == 'webm' }
{assign var=show_original value=true}
{else}
{assign var=show_original value=false}
{/if}
<!--{$show_original}
{$thumbnail|@print_r}
-->
{if isset($page_selection[$thumbnail.id])}
<li>
{if $show_original}
<a href="{$thumbnail.path}" target="_blank" onClick="window.location='{$thumbnail.path}'" >
{else}
<a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" rel="external">
{/if}
<img {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}">
</a>
</li>
{else}
<li style="display:none;">
<a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" rel="external"></a>
</li>
{/if}
{/strip}{/foreach}
</ul>
{/if}
this does not work on mobile.
I have the video JS plugin.
I have added a mp4 file in my gallerie, synchronise it
when I browser my website on mobile, I have several :
{{{{{{ shown on the mobile screen, near the video icon.
I have updated the tpl according to this ( I removed the { located below {assign, in the patch):
<ul class="thumbnails">
{foreach from=$thumbnails item=thumbnail}{strip}
{assign var=derivative value=$pwg->derivative($thumbnail_derivative_params, $thumbnail.src_image)}
{if $thumbnail.file|pathinfo:$smarty.const.PATHINFO_EXTENSION == 'm4v' || $thumbnail.file|pathinfo:$smarty.const.PATHINFO_EXTENSION == 'webm' }
{assign var=show_original value=true}
{else}
{assign var=show_original value=false}
{/if}
<!--{$show_original}
{$thumbnail|@print_r}
-->
{if isset($page_selection[$thumbnail.id])}
<li>
{if $show_original}
<a href="{$thumbnail.path}" target="_blank" onClick="window.location='{$thumbnail.path}'" >
{else}
<a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" rel="external">
{/if}
<img {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}">
</a>
</li>
{else}
<li style="display:none;">
<a href="{$pwg->derivative_url($picture_derivative_params, $thumbnail.src_image)}" rel="external"></a>
</li>
{/if}
{/strip}{/foreach}
</ul>
{/if}
this is "better" as the {{{{{ have disapeared from the xscreen.
but there is still noway to play video on mobile.
any idea of what I am doing wrong ?
thanks
Olivier
wait for the beta2
Offline
ok, thanks for the reply
:o)
Olivier
Hi,
I 've installed the latest trunk
now, video are working on mobile device.
at first, it display a small picture, showing that it is a video.
when I click on this picture, it redirect me on another page, with a video player (which has an option to show video in full screen)
I have to investigate a little bit, as the mobile themes show, now, the thumbnails in really small size.
I am new on piwigo, I may find a parameter on the web site admin pages.
:o)
thanks
Olivier
great
did you use the /pwg_representative folder? see Photo->add->ftp+synch
Offline
Hi,
no, I will have a llok today.
I keep you updated.
thanks
Olivier
Offline
hi,
I made a test.
I added a jpeg file, with same name that my video, in pwg_representative folder.
now on PC when I click on the album :
I can see a exclamation mark.
on mobile, when §I click on the album,
I can sse that the thumbnails is the jpeg located in pwg_representative.
if I click on it, I can see a cross (white)
if I click on More Information, it run my video.
hope this test help :o)
olivier
Offline
on pc, did you refreshed? http://piwigo.org/doc/doku.php?id=user_ … es_missing if it's still not there
on mobile could you make a screenshot of that white cross?
Offline
Hi,
I did a refresh on PC ( F5), I tried also to syncrhonise again.
I went also in tools, "maintenance" (I don't have the English word), and test to refresh datas of photos, and albums.
it does not change.
please, see the screen shot.
on mobile, I have attached the screen shot also.
thanks
Olivier
Offline
thx for the screenshot
flop25 wrote:
? http://piwigo.org/doc/doku.php?id=user_ … es_missing if it's still not there
plz
There is the Frech forum if you prefer, since it seems we are all French here...
Offline
Hello,
I want to keep this case open.
The problem with the mobile theme exists in 2.7.1
Regards
Kuzco
Offline
PWG2.7.1 with VideoJS plugin allow to play video on the mobile theme.
Can you provide an URL or screenshot or your issue?
Offline
Hello,
sorry for the late reply.
I do have still issues to view my *.mp4 in the mobile theme.
I have installed:
Themes:
- elegant
- Smart Pocket (Mobil)
Plugin:
- Mobile Theme for tablets
The automatic swtich between "elegant" and "Smart Pocket" works very well for iPad, Laptop (MacOS) and PC (Win7).
Unfortunately I am still not able to view any *.mp4 with the "mobile theme". Have tried it on my iPad and also on my PC (with mobile theme). I do only see an X on the screen. That`s it.
When using the "elegant" theme on MacOS and Win7 I can view all *.mp4.
Any hint is appreciated.
In case someone need a link, I will try to setup a second site on my server at home.
Regards
EDIT: When using the mobile theme AND i do click on "more Information" i am able to see the thumbnails and also the *.mp4.
Unfortunately this does not allows me any longer to wipe legt and right the Images. Now i have to use the small arrows to go For- and backwards.
- Version von Piwigo
Piwigo 2.7.2
Prüfe, ob eine neue Version verfügbar ist.
Melde rscheffer@gmx.net an für den Piwigo-Newsletter
Server-Daten
Betriebssystem: WINNT
PHP: 5.3.27 (Info anzeigen) [2015-01-03 14:57:01]
MySQL: 5.6.13 [2015-01-03 12:57:01]
Grafikbibliothek: GD bundled (2.1.0 compatible)
Last edited by kuzco (2015-01-03 14:06:07)
Offline