Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

RadioWAVE+TUNEIN

  • Andrey Yugov
  • Andrey Yugov's Avatar Topic Author
  • Offline
  • New Member
More
10 years 5 months ago - 10 years 5 months ago #138794 by Andrey Yugov
RadioWAVE+TUNEIN was created by Andrey Yugov
Hello dears!
So, i have one trouble when want to combine radiowave and tunein portal (tunein.com).
How can i combine NOW playing information and play button for ex. with TUNEIN portal. I send music with icecast system. I haven't possibilities to use Radiojar portal. This is not comfortable portal. Please help.

Tunein used next parameters:
Tunein Api PartnerID
Tunein Api Partner Key
Tunein Api StationID

tunein.com/broadcasters/api/

Our directory in TUNEIN portal is tunein.com/radio/Radio-Umax-s224326/
I can to parse XML file by the link www.umax.kz/curent_song/umax-status.xml playing now information to TXT files for ex. www.umax.kz/curent_song/umax-status.txt
Maybe this parameter can to help you, your clients and me in the Future ???!!!!

I appreciate for your soon support!

Best, Regards, Andrew.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 5 months ago #138795 by Krikor Boghossian
Replied by Krikor Boghossian on topic RadioWAVE+TUNEIN
Hello Andrey,

Unfortunately this is outside the scope of our support.
The radiowave template only supports only Radiojar out of the box.

You can switch all the Radiojar modules to K2 Content (the templates already exist ) but the parsing of the xml you have to do it yourself.
On the bright side since the player is a custom code module you have most of the markup needed already there.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Andrey Yugov
  • Andrey Yugov's Avatar Topic Author
  • Offline
  • New Member
More
10 years 5 months ago - 10 years 5 months ago #138796 by Andrey Yugov
Replied by Andrey Yugov on topic RadioWAVE+TUNEIN
Hello Krikor! Thank you for your fast answer.
I already have parsing script for XML file

<?php
$xml = @simplexml_load_file('www.umax.kz/curent_song/umax-status.xml'); //Где лежит файл ХМЛ
if ($xml)

{echo "".$xml->ELEM->STATUS."<b><font color=red>Now playing: </font></b><a href=\"vk.com/search?c%5Bq%5D=".$xml->ELEM->ARTIST. " - ".$xml->ELEM->NAME."&c%5Bsection%5D=audio\">".$xml->ELEM->ARTIST. " - ".$xml->ELEM->NAME."
";}
else{
}
$file = fopen ("www.umax.kz/curent_song/umax-status.txt","w"); //Путь к созд. файлу и его название
$str = $xml->ELEM->ARTIST." - ".$xml->ELEM->NAME;
if (!$file ) {
echo("Ошибка открытия файла - Error open file");
} else {
fputs ($file, $str);
}
fclose ($file);
?>

But i don't know where used him(((
OK, THANK YOU, VERY MUCH!

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 5 months ago #138797 by Krikor Boghossian
Replied by Krikor Boghossian on topic RadioWAVE+TUNEIN
Ok this will never work in a custom module, the PHP code will be stripped.

You might need to make a new module altogether.
You will find the required markup in the player module (it is a K2 Tools module). Finally some js might be needed in order to make the palyer actually work (play/ pause etc..)

My recommendation is to look if tune-in offers players or solutions for products like JWPlayer or similar.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum