Page 1 of 2
Vimeo Component
Posted: Fri Oct 24, 2014 7:15 pm
by David Paez7098939
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.
Vimeo Component
Posted: Fri Oct 24, 2014 10:25 pm
by Illya Stepanov
Hi David,
Could you please show how your list of videos is looks like?
Vimeo Component
Posted: Tue Nov 04, 2014 3:09 pm
by David Paez7098939
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.
Vimeo Component
Posted: Tue Nov 04, 2014 7:59 pm
by Maryna Brodina
Hello!
Do you want to add navigation like this http://devcenter.appery.io/tutorials/...?
Vimeo Component
Posted: Tue Nov 04, 2014 8:16 pm
by David Paez7098939
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...");
Vimeo Component
Posted: Wed Nov 05, 2014 10:34 am
by Evgene Karachevtsev
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?
Vimeo Component
Posted: Wed Nov 05, 2014 2:23 pm
by David Paez7098939
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.
Vimeo Component
Posted: Wed Nov 05, 2014 6:40 pm
by Maryna Brodina
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
Vimeo Component
Posted: Wed Nov 05, 2014 7:29 pm
by David Paez7098939
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?
Vimeo Component
Posted: Thu Nov 06, 2014 11:40 am
by Evgene Karachevtsev
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.