Page 2 of 3

create more than radio stream in the same page

Posted: Sat Jun 07, 2014 10:45 pm
by rabeeh

this is the same code that i put
var player = Tiggzi('mobileaudio_62');
player.empty().append('');
player.append('');
player.append('');
player[0].load();
player[0].play();
showSpinner();
player.on('canplay', function () {
hideSpinner();
});

not work for 4.2.2


create more than radio stream in the same page

Posted: Sat Jun 07, 2014 10:47 pm
by rabeeh

code
var player = Tiggzi('mobileaudio_62');
player&#46;empty()&#46;append('<source src="http:&#47;&#47;www&#46;radio-abana&#46;org:8000" type="audio/mpeg">');
player&#46;append('<source src="http:&#47;&#47;www&#46;radio-abana&#46;org:8000" type="audio/ogg">');
player&#46;append('<source src="http:&#47;&#47;www&#46;radio-abana&#46;org:8000" type="audio/wav">');
player[0]&#46;load();
player[0]&#46;play();
showSpinner();
player&#46;on('canplay', function () {
hideSpinner();
});/code


create more than radio stream in the same page

Posted: Sun Jun 08, 2014 2:57 am
by Illya Stepanov

Have you possibility to check it on the device with Android 4.3?


create more than radio stream in the same page

Posted: Tue Jun 10, 2014 10:34 am
by rabeeh

i did not have android 4.3 so what to do???????????


create more than radio stream in the same page

Posted: Wed Jun 11, 2014 4:56 pm
by Evgene Karachevtsev

Hello,

Yo can use such code for every radio station:

codeshowSpinner();
Appery("mobileaudio_62")[0]&#46;src = "http:&#47;&#47;s5&#46;viastreaming&#46;net:7040/;stream/1&quot
Appery("mobileaudio_62")[0]&#46;load();
Appery("mobileaudio_62")[0]&#46;play();
hideSpinner(); /code
We have tested it on Android 4.0.3 - it works well. And it should work on older version too.


create more than radio stream in the same page

Posted: Wed Jun 11, 2014 10:50 pm
by rabeeh

thank you
how can i add some thing like this
codeshowSpinner();
player&#46;on('canplay', function () {
hideSpinner();
});/code

it was in the old form. this used to show the spinner and it will hide just after the stream play


create more than radio stream in the same page

Posted: Thu Jun 12, 2014 2:22 pm
by Evgene Karachevtsev

Hello Rabeeh,

You can use the same method as you used before for showing and hiding spinner.


create more than radio stream in the same page

Posted: Thu Jun 12, 2014 9:47 pm
by rabeeh

hello again Evgene
you know that i need to switch between radios in the same page. the code that you send work will just for one stream radio but when i switch to another radio its not work. you can check it also


create more than radio stream in the same page

Posted: Fri Jun 13, 2014 10:16 am
by Kateryna Grynko

Hi Rabeeh,

If you store links to radio stations in a Select component then you can modify and run this code on Select component Value change event:preshowSpinner();
Appery("mobileaudio_62")[0]&#46;src = Apperyio("mobileselectmenuName")&#46;val();

Appery("mobileaudio_62")[0]&#46;load();
Appery("mobileaudio_62")[0]&#46;play();
hideSpinner();/preWhere 'mobileselectmenuName' is a Select component name.


create more than radio stream in the same page

Posted: Fri Jun 13, 2014 9:26 pm
by rabeeh

i do not have mobile select menu Name in my app
this is the app
http://appery.io/app/mobile-frame?src...

as you see you have some images when we click in the images or the title the new radio should start. i did not use select menu in my app