David Paez7098939
Posts: 0
Joined: Thu Sep 11, 2014 7:26 pm

Vimeo Component

I have two pages in my APP.

First page has the list of Vimeo videos

Second Page is a player page that has the vimeo component.

How do I make specific vimeo load on a specific page when I push a button or make selection. (Keeping the vimeo ID while it load the page with vimeo component)

Thank you.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Vimeo Component

Hi David,

Could you please show how your list of videos is looks like?

David Paez7098939
Posts: 0
Joined: Thu Sep 11, 2014 7:26 pm

Vimeo Component

I have to models.

One its just a page with different buttons. I would like them to redirect to my player page while keeping the vimeo ID.

the second it a drop down select list right beneath the player. I would like that every-time a specific variable is changed in the list that it would pay the right video on the same page.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Vimeo Component

Hello!

Do you want to add navigation like this http://devcenter.appery.io/tutorials/...?

David Paez7098939
Posts: 0
Joined: Thu Sep 11, 2014 7:26 pm

Vimeo Component

Maybe some simpler, like

if ($(this).val() == "ep2") Appery("vimeo_4").attr("src", "https://player.vimeo.com/video/"+29844...");

that works of the Vimeo component.

but when I try to do the same for a button, the url variable of the button does not change.

if ($(this).val() == "ep2") Appery("mobilebutton_6").attr("URL", "https://player.vimeo.com/external/2984...");

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Vimeo Component

Hello David,

The code that you've provided will add the url attribute with a specified value to mobilebutton_6 . Could you please specify, what effect you want to achieve?

David Paez7098939
Posts: 0
Joined: Thu Sep 11, 2014 7:26 pm

Vimeo Component

The affect I want to achieve is the is to change the url in the button depending on the value selected on the drop down select list.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Vimeo Component

Hello!

On button click you want to add video which id is chosen in select component? In this case use the following code:

prevar selected = Apperyio("mobileselectmenuName").val();
Apperyio("vimeoName").attr("src", "http://player.vimeo.com/video/" + selected);/prewhere mobileselectmenuName - select component name, vimeoName vimeo componet name

David Paez7098939
Posts: 0
Joined: Thu Sep 11, 2014 7:26 pm

Vimeo Component

Hey Thank you so much for all your help.

I got to work by doing the following:

if ($(this).val() == "ep2") Appery("mobilebutton_6").attr("href", "https://player.vimeo.com/external/2984...");

This work in the browser test but when we try it in our devices it does not work. We try the appery app tester and we even packaged and tested with our Nexus 5 and Samsung G4. but it only work in the browser am I missing anything?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Vimeo Component

Hello David,

Unfortunately it is not clear how you pass this url in vimeo component of Appery.io. You should do it like it was advised in the comment above.

Return to “Issues”