rabeeh
Posts: 0
Joined: Thu Jun 05, 2014 11:34 pm

create more than radio stream in the same page

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

rabeeh
Posts: 0
Joined: Thu Jun 05, 2014 11:34 pm

create more than radio stream in the same page

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

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

create more than radio stream in the same page

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

rabeeh
Posts: 0
Joined: Thu Jun 05, 2014 11:34 pm

create more than radio stream in the same page

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

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

create more than radio stream in the same page

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.

rabeeh
Posts: 0
Joined: Thu Jun 05, 2014 11:34 pm

create more than radio stream in the same page

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

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

create more than radio stream in the same page

Hello Rabeeh,

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

rabeeh
Posts: 0
Joined: Thu Jun 05, 2014 11:34 pm

create more than radio stream in the same page

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

create more than radio stream in the same page

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.

rabeeh
Posts: 0
Joined: Thu Jun 05, 2014 11:34 pm

create more than radio stream in the same page

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

Return to “Issues”