Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 21. Nov 2024, 23:37

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 21. May 2014, 18:23 
Offline

Joined: 21. May 2014, 18:10
Posts: 4
Hello

I'm using TWG21.
I can show videos on normal web browers (Windows PC).
However: How to show videos on Smartphone + Tablet computers (connected by WLAN)?
What parameters have to been set in my_config.php?

Regards
PeeF


Top
 Profile  
 
PostPosted: 22. May 2014, 09:58 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Which kind of videos do you include? Because first you have to make sure that the videos you offer can be played on mobile devices...

Best, Michael


Top
 Profile  
 
PostPosted: 23. May 2014, 11:04 
Offline

Joined: 21. May 2014, 18:10
Posts: 4
Hello Michael,

I show video in the following formats: avi, flv, mov, mp4, wmv.
A can see the videos on Windows and Mac computers.
A jpg file for every video format with the same name is in the directory.
The video.php file in the directory contains:

$video_size_x=720;
$video_size_y=480;
$video_player="AUTO";
$video_autostart=true; // or false - depending what you want
$video_show_dl_link=true; // true or false works
$show_slideshow = true;
$default_big_navigation="HTML"; // should be set if you have images and videos in one folder!

And in the config.php in the same directory are the commands:

$low_video_autostart=true;
$low_show_videos=true;
$twg_mobile_show_breadcrumb = true;
$twg_mobile_show_menu_items = true;
$twg_mobile_show_rating = true;
$twg_mobile_show_comments = true;
$twg_mobile_show_big_navigation = true;

However, on my (Android) smartphone (Version 2.2) and tablet (4.x) only the image of the video is shown. No video.

Any ideas?

Regards, PeeF


Top
 Profile  
 
PostPosted: 23. May 2014, 12:17 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Hi, many formats are not supported by smartphones.

Please check this first:
http://webdesign.about.com/od/video/a/h ... ormats.htm

In the table you see that there is no format that will works for all. You even have to offer different formats to support all Windows browsers.

I have added
New 1.8.9 - iframe youtube support
Since version 1.8.9 TWG does also support the new iframe embed code of youtube where depending on the browser and the video also HTML5 videos are played. Please use the following video.php to support this. As you see the video_player is IFRAME and the video_flash_site looks a little bit different.

youtube does deliver the right content depending on your device.

New versions of JW-player (which I use in the last free version) can switch automatically but there is no free unbranded version anymore and the pro version does cost 149$/year... This player does switch between flv and mp4 depending on the device. See http://www.jwplayer.com/media/: So mp4 for mobile devices and flv for desktops seems like a feasable solution. But to catch all you need to have MP4 (.mp4, .m4v, and .f4v file extensions), WebM, and FLV video formats.

But I'm planning to include support vor video.js in TWG 2.2 -> http://www.videojs.com/

Then you "only" have to provide all needed formats and than all devices you offer videos for should work fine.


Top
 Profile  
 
PostPosted: 11. Nov 2015, 13:31 
Offline

Joined: 11. Nov 2015, 10:48
Posts: 3
Hi,

I'm having similar problems with mobile support.

From Windows desktop, no issue I have MP4 videos playing, and with adding xyz.mp4 and xyz.jpg in the folder all works well.

I have tried a few varitions of video.php and config.php in the folder, and to simplify I have only one mp4 and jpg in that folder.

I tried copying config.php and video.php from demo where I believe the
$video_player="HTML5";

seems the key item

However on my mobile device it seems to fall back to flash and then fails as I am using the default chrome android browser that cannot support flash. I get an window with an image like an out of tuned TV and error '#4 the media () coudl not be loaded because the server or network failed.' I guess because flash doesn't run on the Chrome browser.
I can get it to work using firefox on chrome as I believe that has flash support built in.

Annoyingly the TWG demo web site and specifically this gallery http://www.tinywebgallery.com/demo/twg_album/04_Multimedia~016_html5_player&twg_foffset=0,8,0
does work on my android chrome, but I can't get my gallery to behave the same even after copying the config and video php files as below

config.php
<?php
$enable_dir_description_on_image=true;
?>

video.php
<?php
$video_size_x=500;
$video_size_y=365;
$video_player="HTML5";
$video_flash_site = ""; // http://video-js.zencoder.com/
$video_autostart=true; // new 1.5 - enabled the autostart of the videos
$video_show_dl_link=true;
$show_rotation_buttons=false;
?>

What am I missing in my web site? is there something I need in the My_Config.php on the root of my site or something?

Thanks for any help and guidance.

Actually should add, I am not an expert on web or programming, just a little exposure to both (just enough to be dangerous) and I am using the lastest TWG 2.2


Top
 Profile  
 
PostPosted: 11. Nov 2015, 18:13 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
How is your mp4 file encoded. Because this is the key. Is it h.264?


Top
 Profile  
 
PostPosted: 12. Nov 2015, 08:42 
Offline

Joined: 11. Nov 2015, 10:48
Posts: 3
It wasn't h.264

I've used VL Player to re-encode now to the following settings for their default h.264 encoding
MP4/MOV encapsulation
H-264 Video
MPEG Audio 128 Kbps

Sadly it does the same, as does one of the demo videos from the TWG site Brahma4.mpg

Any other thoughts?

Thanks for any help

Marcus


Top
 Profile  
 
PostPosted: 12. Nov 2015, 13:55 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
one of my demos also does not work? Strange. Because I encoded all of them the same way.
At which device does mine not work?
Which Android version?

Best, Michael


Top
 Profile  
 
PostPosted: 12. Nov 2015, 22:41 
Offline

Joined: 11. Nov 2015, 10:48
Posts: 3
I may be a few days on that one :-( I managed to drop my phone and it is trashed. It was a Samsung Galaxy S4 running Android 5.1
Your Brahma video works fine from the TWG site, but when I have it on my site it didn't work the same.

I did notice the URL was different though in structure
From my site it is this
/gallery/index.php?twg_album=6_testvid&twg_show=x

from your demo site
demo/twg_image/04_Multimedia~016_html5_player/Brahma.jpg

I'm not sure why that would happen.

It's a bit of a pet project, so no real rush, not that I'll be testing it until I've got a new phone anyway.

Thanks Michael


Top
 Profile  
 
PostPosted: 12. Nov 2015, 22:55 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
The url is only different because I have the seo option enabled.

Do you have an url?

Best, Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 56 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy