•  » Extensions
  •  » Watching video from Smart Mobile theme

#16 2013-08-22 10:28:48

flop25
Piwigo Team
2006-07-06
7037

Re: Watching video from Smart Mobile theme

please test the Beta: there is now a picture page, so video plugins might work or at least can be easily updated


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#17 2013-10-16 11:52:03

orobin
Guest

Re: Watching video from Smart Mobile theme

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

 

#18 2013-10-16 11:59:59

flop25
Piwigo Team
2006-07-06
7037

Re: Watching video from Smart Mobile theme

wait for the beta2


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#19 2013-10-16 12:39:10

olivier robin
Guest

Re: Watching video from Smart Mobile theme

ok, thanks for the  reply

:o)

Olivier

 

#20 2013-10-16 15:51:54

olivier robin
Guest

Re: Watching video from Smart Mobile theme

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

 

#21 2013-10-16 16:13:27

flop25
Piwigo Team
2006-07-06
7037

Re: Watching video from Smart Mobile theme

great

did you use the /pwg_representative folder? see Photo->add->ftp+synch


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#22 2013-10-17 14:07:18

orobin
Member
2013-10-16
25

Re: Watching video from Smart Mobile theme

Hi,

no, I will have a llok today.

I keep you updated.
thanks
Olivier

Offline

 

#23 2013-10-17 15:27:49

orobin
Member
2013-10-16
25

Re: Watching video from Smart Mobile theme

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

 

#24 2013-10-17 15:58:44

flop25
Piwigo Team
2006-07-06
7037

Re: Watching video from Smart Mobile theme

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?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#25 2013-10-17 16:29:57

orobin
Member
2013-10-16
25

Re: Watching video from Smart Mobile theme

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

 

#26 2013-10-17 16:32:38

flop25
Piwigo Team
2006-07-06
7037

Re: Watching video from Smart Mobile theme

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...


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#27 2014-10-22 19:32:26

kuzco
Member
2013-09-17
66

Re: Watching video from Smart Mobile theme

Hello,
I want to keep this case open.
The problem with the mobile theme exists in 2.7.1

Regards
Kuzco

Offline

 

#28 2014-11-09 18:50:40

kuzco
Member
2013-09-17
66

Re: Watching video from Smart Mobile theme

Nobody ?

Thanks.

Offline

 

#29 2014-11-11 16:23:58

xbgmsharp
Member
1970-01-01
215

Re: Watching video from Smart Mobile theme

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

 

#30 2015-01-03 13:23:47

kuzco
Member
2013-09-17
66

Re: Watching video from Smart Mobile theme

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

 
  •  » Extensions
  •  » Watching video from Smart Mobile theme

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact