PDA

View Full Version : Youtube Video Gallery - NOT showing on Ipad or Iphone. Please help.



Bizzmaxx
04-14-2016, 08:18 PM
1) Script Title: YouTube Video Gallery script v1.1

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/youtube-video-gallery.htm

3) Describe problem: Works very well in android (Many thanks!) but It's not showing on ipad or iphone. Is there an additional script to solve this? Thanks for your help. :)

jscheuer1
04-15-2016, 12:23 AM
This is not my script, and I don't have any of those devices to test in. But I do have emulation. The demo page for this script appears to work in iPhone 5 and 6 emulation. Are you saying that the demo page doesn't work for you on iPhone? If, so, which version of iPhone? If not, then is it only your implementation where you are having trouble on iPhone? If so, we would need a link to your page to see what the trouble is.

ddadmin
04-15-2016, 03:07 AM
The script was tested and works on a iPad 3 as well. Does the problem appear on the DD script page, or just on your own page? If the later, please post a link to it.

Beverleyh
04-15-2016, 05:21 AM
The DD demo page works fine on iPhone 5S so no worries there. The problem must be with the OP's installation.

Bizzmaxx
04-15-2016, 09:18 AM
Thanks for the replies..
Both the DD demo page video gallery and this page http://gospelorder.com/index.html is not appearing on my iphone 5 model A1428 and mini ipad model A 1432 but it's perfectly working with my Galaxy Note 4. Am I missing something on the script?

molendijk
04-15-2016, 05:25 PM
The script was tested and works on a iPad 3 as well. Does the problem appear on the DD script page, or just on your own page? If the later, please post a link to it.
The original script does not work on my iPad. The video's don't load or take ages to load.
No problem on the Android-Asus tablet.

ddadmin
04-15-2016, 11:03 PM
Ok, I've confirmed the bug, which basically stems from:

1) iOS devices unable to play youtube videos automatically using Youtube API's play() related functions
2) Worse still, calling the play() related functions causes Youtube to buffer the requested video indefinitely, instead of allowing the user to manually play the video

With that in mind, use the updated .js file (v1.2) on the script page for the fix: http://dynamicdrive.com/dynamicindex17/youtube-video-gallery.htm

molendijk
04-16-2016, 12:12 AM
Problem solved. But there's another issue. When you hit the last image of the playlist, the playbar at the bottom of the video is too 'high' on iOS.

ddadmin
04-16-2016, 12:44 AM
I think it's simply the native dimensions of the last video being shorter in height:

https://www.youtube.com/watch?v=piH5_aP0fY8 versus
https://www.youtube.com/watch?v=GgpqQ9K4fHI

molendijk
04-16-2016, 10:57 AM
I think it's simply the native dimensions of the last video being shorter in height
That's not it, I'm afraid, since:
- it only happens on my iPad if the last video starts playing via a click on the last image, not if the video corresponding to the last image loads by itself;
- it does not happen on my laptop and my android tablet.