Page 1 of 1

[LUA] TuneIn Radio Service Discovery Script

Posted: 20 Aug 2012 01:01
by diegofn
Hi to all

I want to share with us the Version 0.2 from my TuneIn Radio SD LUA Script for VLC
It can be downloaded from: http://addons.videolan.org/content/show ... ent=152788

Screenshots
Image
Image

How to Install

Copy the tunein.lua in the share/lua/sd directory. If you have an TuneIn user, you can modify the script in the username and password variables
Start your VLC
Enjoy

Version 0.2

Add music menu
Add custom icon for main categories
Run plugin as a LUA Object

Version 0.1

This is the first version, My Presets and Local Radio working
The LUA Script mapping the Categories and Location nodes

Wish list

Read the username and password for the Preference Dialog
Mapping the Talk and Podcast menu (using a Lua Module)
Support for StreamtheWorld
Be accepted in VLC git ;)


I hope your comments and improvements, I want to be accepted in VLC git tree some day ;)

Sincerely,

Diego Fernando Nieto
@diegofn

Re: [LUA] TuneIn Radio Service Discovery Script

Posted: 20 Aug 2012 07:27
by Jean-Baptiste Kempf
Nice job. Retweeted.

Install TuneIn Radio to VLC 1.1.7 on Puppy Linux Precise 5.4

Posted: 26 Jan 2013 00:26
by markov2013
Subject: Install TuneIn Radio to VLC 1.1.7 on Puppy Linux Precise 5.4.3
Note 1: TuneIn website under Linux Browsers (Opera, Firefox, Seamonkey, etc) does not have sound, however, through VLC (versin 1 or version 2) tunein sounds perfectly if installed correctly.
Note 2: Packages are due courtesy to author "diegofn" at VideoLan forum "viewtopic.php?f=29&t=103587"
Note 3: Installation Confusion - The installation steps given by author "diegofn" most likely are for Linux VLC.2.xxx. However, VLC.2.xxx and VLC.1.xxx might have different directory tree structure once installed. That which TuneIn lua file should be copied to which VLC linux directory confuses people.
Noticing that after VLC.1.xxx is installed in Precise Puppy 5.4.3, there are two "vlc" directories. 1. "/usr/lib/vlc" and 2. "/usr/share/vlc" , and both directories have subdirectory "lua". All three tunein lua files SHOULD be copied to subdirectories "sd" and "playlist" of "/usr/lib/vlc/lua". DO NOT TOUCH "/usr/share/vlc" subdirectories.
1. Three "luc" files are needed; main file: "tunein.lua", playlist files: "radiotime.lua" and "streamtheworld.lua" .
2. Download tunein lua files from http://addons.videolan.org/content/show ... ent=152788. I downloaded the zipped file "TuneIn-Radio-VLC.zip" which includes all three files.
2.0. Edit "tunein.lua" file. In function main(), there are two lines :
local __username__ = "username"
local __password__ = "password"
Replace "username" and "password" by your own TuneIn username and password. Of course you need to go to "http://www.tunein.com" to register as a user in order to get your username and password. The username is most likely be one of your email address.
Save the "tunein.lua" file.
3. Copy "tunein.lua" to "/usr/lib/vlc/lua/sd" directory (the "sd" directory is already existed).
4. Copy "radiotime.lua" and "streamtheworld.lua" to "/usr/lib/vlc/lua/playlist" directory (the "playlist" directory is already existed).
5. DO NOT TOUCH directory "/usr/lib/vlc/lua/extensions", DO NOT CHANGE these three file's extension from "lua" to "luac". In general I guess, "xxx.lua" script files are accepted fine the same way as "xxx.luac" compiled files do under vlc.
6. Run VLC from "Menu" > "Multimedia" > "VLC Video Player" .
7. Choose vlc main menu "View" > "Playlist". A page show up, on the left pane there is an item "Internet", click the arrow precede it, a pull-down menu show up; you will see an item "TuneIn Radio".
8. Click on "TuneIn Radio", and wait a moment; the right pane "playlist" will list many category directories: "My preset", "Local Radio", "Trending", "Music", "News", "Talk", "Sports", "By Location", "By Language", and "Potcast".
9. Try out one radio site in the list to see if it works.
10. Notice that when a clickable line of a particular radio site show up in the playlist pane, the line contains "mms://..." mms url of that radio station. Alternatively you can copy url "mms://..." and paste it to "Media" > "Open Internet Streaming" page "URL" placeholder to listen to the radio.
11. Using (10) streaming method, you can try out radio-audio "mms://bcr.media.hinet.net/RA000014", Classic Music.
12. Using (10) streaming method, you can try out vedio "http://zb.v.qq.com:1863/?progid=1039787969", Beijing TV realtime in video.

Final Reminder:
1. The vlc version I used is "vlc-1.1.7-full-lucid52.pet", because it is free of dependencies. Other version, such as "vlc-1.1.10-i686-lucid525.pet" I tried, cause my some dependencies, and was not work at all.
2. Download it from http://distro.ibiblio.org/puppylinux/pe ... ges-lucid/ .
3. Downlad precise-5.4.3.iso from "http://distro.ibiblio.org/quirky/precis ... -5.4.3.iso"

Re: [LUA] TuneIn Radio Service Discovery Script

Posted: 27 May 2014 03:37
by Dan33185
I'm trying to set this up in Windows 7, and I can get as far as entering my SN and PW, but after that it does nothing. It doesn't show up under the "Internet" section, and I can't seem to find any other way to use it.


EDIT-I actually got it to show up under "Internet", but when I click it, all I see is:

Image

Re: [LUA] TuneIn Radio Service Discovery Script

Posted: 01 Jun 2014 18:43
by Dan33185
Anyone?

Re: [LUA] TuneIn Radio Service Discovery Script

Posted: 12 Aug 2014 11:48
by mtu111
Hi,

I reset preferences in my VLC and all was well. I also had the same problem where the playlist was not loading.

Re: [LUA] TuneIn Radio Service Discovery Script

Posted: 20 Sep 2014 23:35
by ElSaxo
Hello, I've a big problem with this addon and I can't make it work.

Except the fact that the instructions given by the author are confusing and incomplete, as for example I haven't seen mentioned nowhere that's necessary to copy also the folders "extension", "playlist", "resources" and its contents and only after doing this, now I can see the "Tunein Radio" element in the playlists, under "Internet", but after a lengthy loading the window remain blank. All this no matter if I uninstall/reinstall VLC or I try to use an older version, because the result never change.

On what I wrong?

Re: [LUA] TuneIn Radio Service Discovery Script

Posted: 08 Feb 2016 14:12
by Agnelo Alves
Hello friend I installed worked however not login to my account I do Itunei.que