TV-Screen with program selection (remote control)

Q&A about the latest versions
Post Reply
ollyfromkup
Posts: 14
Joined: Thu Apr 02, 2020 4:14 pm

Thu Jul 02, 2020 8:31 am

Hello
is it possible to change the film that is running as an integrated element (movie element) on a TV surface? I would like to program a program-selection (remote control) to change the tv program, so the user can chose which movie is playing on the TV screen.

The first idea was to put several films on top of each other on the TV-Screen and control the visibility of the film according to the user's choice. However, this does not seem to work.
Are there other possibilities?

Thanks a lot for a feedback!
User avatar
3DV
Posts: 86
Joined: Tue Dec 15, 2015 12:44 pm
Contact:

Thu Jul 02, 2020 1:28 pm

Have you tried to control the visibility using Javascript? You can add Javascript in the text field of a text item and check 'Evaluate'

For example:
javascript:"";
pano.setMediaVisibility("video01",0);
pano.setMediaVisibility("video02",1);
});

More info about the Javascript API can be found here: https://ggnome.com/doc/javascript-api/

Note that on that page the setMediaVisibility is missing a parameter, I assume it should be: pano.setMediaVisibility(id:String, mode:Number)
Where mode can be: 0 – hide, 1 – show, 2 – toggle
3DV - Real estate artist impressions and animations
VR Tourviewer - Experience Pano2VR tours on Oculus Go, Quest, Rift, Gear VR and Cardboard VR headsets
ollyfromkup
Posts: 14
Joined: Thu Apr 02, 2020 4:14 pm

Fri Jul 03, 2020 9:07 am

Hi, and thank you for the reply.
Unfortunatly the JAVA Solution doesn't work. Everytime after I implement the JAVA code, the project starts with a black-screen. Very strange!
Do you have an idea why the project doesn't work anymore after implementing the JAVA code?
Framework-conditions: Windows 10 with Firefox.
User avatar
3DV
Posts: 86
Joined: Tue Dec 15, 2015 12:44 pm
Contact:

Fri Jul 03, 2020 10:28 am

I realize there was a mistake in my example, it should be without the }) at the end:

Code: Select all

javascript:"";
pano.setMediaVisibility("video01",1);
pano.setMediaVisibility("video02",0);
Also, when 'Evaluate' is checked this JavaScript will be executed when the skin is loaded.

Instead you could create a (polygonal) URL hotspot with the following Link Target Url:

Code: Select all

javascript:pano.setMediaVisibility("Video01",0);pano.setMediaVisibility("Video02",1);pano.playSound("Video02");
This will hide Video01, show Video02 and then play Video02. (playSound works on sounds and video)
3DV - Real estate artist impressions and animations
VR Tourviewer - Experience Pano2VR tours on Oculus Go, Quest, Rift, Gear VR and Cardboard VR headsets
User avatar
Hopki
Gnome
Posts: 10748
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Fri Jul 03, 2020 9:54 pm

Hi guys,
There is actions to do this.
If you stacked videos on a TV, have a container with the action, config loaded, media, hide, element, Element01.
The another action to hide all the other Elements so only showing the video you want to see first.

Then in your TV remote you can have buttons with actions to hide and show different videos.

Regards,
Hopki
Garden Gnome Software 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/
User avatar
3DV
Posts: 86
Joined: Tue Dec 15, 2015 12:44 pm
Contact:

Sat Jul 04, 2020 1:52 pm

Of course, much more convenient/flexible, thanks!
3DV - Real estate artist impressions and animations
VR Tourviewer - Experience Pano2VR tours on Oculus Go, Quest, Rift, Gear VR and Cardboard VR headsets
ollyfromkup
Posts: 14
Joined: Thu Apr 02, 2020 4:14 pm

Thu Jul 16, 2020 1:20 pm

Yes.... that way was working quite comfortable. Thank you!
Post Reply