Embedding video is not working on Android

Q&A about the latest versions
Post Reply
Umberto
Posts: 17
Joined: Thu May 21, 2020 1:00 pm

Hi,

I have to do a virtual tour with embedded video but it doesn't work on phones with android. Is there any solution for embedded video to also work on phones?

Example in link:

http://spacery360.com/torun/klinikarobocze/index.html
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
The videos do play on an iPhone 11.
But…
You need to start the video with a button click somewhere. As an example, It could be a welcome screen with a close button. This button will also start the video.
But opening your tour then using the thumbnail menu to change nodes, the embedded videos then play.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Umberto
Posts: 17
Joined: Thu May 21, 2020 1:00 pm

That's right but it's a draft for now. Everything works fine on IOS, but on Android it shows only panoramas without embedded video. Is there a solution for that?
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Please try the attached video.
Add it to your project, the important thing is to set the size in Pano2VR to 1024 x 1024px.
Try it and let me know, I can go into more detail once you have tested it.
For me your original video did not play, this one does but, of course, you need to test in your project.
Regards,
Attachments
test2.m4v
(615 KiB) Downloaded 117 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Umberto
Posts: 17
Joined: Thu May 21, 2020 1:00 pm

Your video works in my project. I resized my video to 1024 x 1024 but mine still doesn't work.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
If you looked at your video it was 11.3MB
The reencoded video is 630KB.

So for a start, this saves so much space and faster download time if you do this to all your videos.

Use HandBrake which is a free download https://handbrake.fr
Open your video in HandBrake.
Use the Preset: Fast 1080p30, we will resize this to 1024 x 1024px later.
Select Web Optimised, this adds all the video headers to the start of the video so optimised for streaming, the result is the video starts to play sooner.
Without this, a portion of the video will need to be downloaded before it will start to play.

1.png
1.png (37.48 KiB) Viewed 2777 times

Select the Dimensions tab and change the Storage size to 1024 x 1024px. The reason for this is most mobile devices will not play media over 1024px, even Apple say you should avoid sizes over 1024 x 1024px.

2.png
2.png (58.02 KiB) Viewed 2777 times

Now select the Audio tab and add a new codec, AC3, this is for Apple devices to keep the sound and video in synchronisation.

3.png
3.png (172.48 KiB) Viewed 2777 times

Now output the new video.

4.png
4.png (29 KiB) Viewed 2777 times

Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Umberto
Posts: 17
Joined: Thu May 21, 2020 1:00 pm

Thank you, Hopki.

Regards.
Umberto
Posts: 17
Joined: Thu May 21, 2020 1:00 pm

Hi,

I'm still having trouble with viewing embedded video on Android. I converted all the videos exactly as you described it. Currently, some video is shown and some is not. How can I fix it?

Link:

http://spacery360.com/torun/test4/index.html
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Your link is using videos that are 2304 x 2304px AAC and very large, 6MB and 23.6 MB
If you encode the videos as advised then they should work and be much smaller in file size.
Remember to set the size in the video panel from 2304 x 2304px to 1024 x 1024px after you have resized the videos.

Also, the file path in the console shows: http://spacery360.com/torun/test4/media ... i%20ok.mp4
To tidy things up always use an underscore or hyphen rather than a space.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Umberto
Posts: 17
Joined: Thu May 21, 2020 1:00 pm

When you open everything on your computer, the files are large. On the phones, the version available under the "LQ" button opens and the files are small there. Exactly like you said.

For example, I have a 1.m4v file there, which has 500 KB and is not displayed on Android

Open the link, click "LQ" button and then the phone version opens.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Umberto,
My apologies, would have expected to see the smaller files on the desktop.
Using a Pixel 3 and using the link, it all works as should.

ScreenFlow.gif
ScreenFlow.gif (3.74 MiB) Viewed 2704 times

This is a screen recording from the Pixel 3.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Umberto
Posts: 17
Joined: Thu May 21, 2020 1:00 pm

Everything works fine at beginning . The problem is in these places:
Attachments
Screenshot_20210525-151953_Messenger.jpg
Screenshot_20210525-151953_Messenger.jpg (1.08 MiB) Viewed 2702 times
Screenshot_20210525-151853_Messenger.jpg
Screenshot_20210525-151853_Messenger.jpg (1.22 MiB) Viewed 2702 times
Screenshot_20210525-151841_Messenger.jpg
Screenshot_20210525-151841_Messenger.jpg (1.04 MiB) Viewed 2702 times
Screenshot_20210525-151808_Messenger.jpg
Screenshot_20210525-151808_Messenger.jpg (1.13 MiB) Viewed 2702 times
Screenshot_20210525-151743_Messenger.jpg
Screenshot_20210525-151743_Messenger.jpg (1.03 MiB) Viewed 2702 times
Umberto
Posts: 17
Joined: Thu May 21, 2020 1:00 pm

2
Attachments
Screenshot_20210525-152031_Messenger.jpg
Screenshot_20210525-152031_Messenger.jpg (969.1 KiB) Viewed 2701 times
Screenshot_20210525-152004_Messenger.jpg
Screenshot_20210525-152004_Messenger.jpg (1.15 MiB) Viewed 2701 times
48porsegundo
Posts: 1
Joined: Wed Aug 19, 2020 10:21 am

I had the same problem but once I changed the video resolution to under 1024, everything works fine. Thanks alot Hopkin for your help.
Post Reply