Page 1 of 4

JLC's Internet TV v1.0 Beta 4 #old thread#

Posted: Wed Jul 12, 2006 4:14 am
by Joakim Christiansen
Wed Jul 12, 2006 <-- not my fault this old thread gets bumped

About:
JLC's Internet TV is a program for watching free online TV channels. It automatically finds over 1300 channels and have an online updater to keep the channel list updated. Other people is selling programs like this for 30$+ but I'm releasing my program for FREE so I hope you donate some money to support it!

Features:
Watch over 1300 free online TV channels.
User friendly interface with inbuilt channel list.
Powerfull search function let's you easely find your channels.
Channel updater that fetches all channels from the updated list at World Wide Internet TV (wwitv.com)
Favorite list to keep a track of your favorite channels.
Works with both Windows Media Player and Real Player.

Known problems:
Some channels doesn't start:
That's in most cases a problem with the server streaming the channel and not a bug in JLC's Internet TV, so there is nothing I can do about this.

If you discover any bugs or problems then please let me know of them and I will try to fix it!

Version history:
1.0 Beta 1:
First public version.

1.0 Beta 2:
Added: Sort list
Added: Visit channel homepage
Added: Marks played channel with green
Fixed: Nasty bug where Real Player got the wrong url
Changed: Channel list format (not compatible with old channels.dat or favorites.dat)

1.0 Beta 2a:
Fixed: Updated the updater since it didn't work anymore...

1.0 Beta 3:
Fixed: The crash some users had at startup
Added: Support for different WMP versions (settings window)
Added: A help file
Changed: New user interface
Changed: Channel updater doesn't create tempoary files anymore

1.0 Beta 3a:
Fixed: Bug in the channel updater

1.0 Beta 4:
Added: Search function
Added: Choose GUI mode
Added: Choose how you want do download the channels...
Fixed: Flimmering in the Windows Media Player when resizeing the window

Click here to dowload.

Here is some screenshots:
Image

Posted: Wed Jul 12, 2006 5:20 am
by Xombie
Haha! This is great :D Thanks a lot. I can use it to help my wife practice her English and for me to practice my Mandarin speaking.

Thanks a lot 8)

Posted: Wed Jul 12, 2006 5:29 am
by Joakim Christiansen
Hehe, cool! :)
I have to make that sort function now, I've never done that before...

Posted: Wed Jul 12, 2006 9:50 am
by Dare
Nice.

What all is involved in something like this? How do you stream directly from a website into the player?

Posted: Wed Jul 12, 2006 11:07 am
by inc.

Posted: Wed Jul 12, 2006 2:28 pm
by Straker
8)

Posted: Wed Jul 12, 2006 2:38 pm
by thefool
works great here!

Posted: Wed Jul 12, 2006 4:35 pm
by Joakim Christiansen
Dare wrote:What all is involved in something like this? How do you stream directly from a website into the player?
I just have a WebGadget which I put html for a Real Player object or a Windows Media Player object in.
And with Freak's WebGadgetExtras I don't need external files for this:
http://www.purebasic.fr/english/viewtopic.php?t=16837
(thank you Freak)

Posted: Wed Jul 12, 2006 5:08 pm
by Inf0Byt3
Wow, very nice program! Thanks!

Posted: Wed Jul 12, 2006 7:58 pm
by Droopy
Thanks :D

Posted: Wed Jul 12, 2006 8:46 pm
by Joakim Christiansen
I need to be able to sort the list, so I tried to just sort the linked list and then update the gadget, but I think it was too slow.
So I want to just sort the gadget directly, I searched the forum for code on doing this, but most was for PB 3.94 and gave me InvalidMemory access when I converted it. :?

It would be nice if anyone had a sort ListIconGadget example for PB 4! :D

Posted: Wed Jul 12, 2006 8:48 pm
by utopiomania
JC, the source ?? What's the prob? :wink:

Posted: Wed Jul 12, 2006 9:06 pm
by Joakim Christiansen
utopiomania wrote:JC, the source ?? What's the prob? :wink:
Here is one example I had problems with:
http://www.myhome.no/whatever/listicon_sort.pb

Posted: Wed Jul 12, 2006 9:39 pm
by TerryHough
Joakim Christiansen wrote: Here is one example I had problems with:
http://www.myhome.no/whatever/listicon_sort.pb
???
Rem the "ProcedureReturn result" in the call back and try it. That works
here OK.

I suggest the PureLVSORT library unless you are trying to avoid a library.
It adds numerous features very efficiently.

Here is your example rewritten to use PureLVSORT

Code: Select all

If OpenWindow(0, 384, 288, 640, 480, "ListIconGadget sort example", #PB_Window_ScreenCentered|#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget|#PB_Window_SizeGadget)
  LVWidth = WindowWidth(0)
  LVCWidth = Int(LVWidth/4)-1
  If CreateGadgetList(WindowID(0))
    ListIconGadget = ListIconGadget(0, 0, 0, LVWidth, WindowHeight(0), "Column 0", LVCWidth, #PB_ListIcon_GridLines | #PB_ListIcon_FullRowSelect)
    AddGadgetColumn(0, 1, "Column 1", LVCWidth)
    AddGadgetColumn(0, 2, "Column 2", LVCWidth)
    AddGadgetColumn(0, 3, "Column 3", LVCWidth)
  EndIf
  ; ListIcon Sort Setup
  If PureLVSORT_SelectGadgetToSort(0, #PureLVSORT_ShowClickedHeader_IconLeft) = #PureLVSORT_Ok
    PureLVSORT_SetColumnType(0, 0, #PureLVSORT_String)  ; default, not necessary
    ;PureLVSORT_SetColumnType(0, 1, #PureLVSORT_String) ; see the default sorts in
    ;PureLVSORT_SetColumnType(0, 2, #PureLVSORT_String) ; the help file
    ;PureLVSORT_SetColumnType(0, 3, #PureLVSORT_String)
  EndIf
  ; Add data to the listicongadget
  AddGadgetItem(0, 0, "Aaa 1"+Chr(10)+"Bcc 3"+Chr(10)+"Cdd 2"+Chr(10)+"Eee 3"+Chr(10), 0)
  AddGadgetItem(0, 1, "Aab 2"+Chr(10)+"Bbc 2"+Chr(10)+"Ddd 3"+Chr(10)+"Dde 1"+Chr(10), 0)
  AddGadgetItem(0, 2, "Abb 3"+Chr(10)+"Baa 1"+Chr(10)+"Ccd 1"+Chr(10)+"Dee 2"+Chr(10), 0)
  ; Sort immediately if desired
  PureLVSORT_SortListIconNow(0, 0, #True) ; If desired, Sort on column 0 ascending after loading
  ; the listicongadget with data.
  Repeat
    EventID = WaitWindowEvent()
  Until EventID = #PB_Event_CloseWindow
EndIf

Posted: Fri Jul 14, 2006 1:57 am
by Joakim Christiansen
1.0 Beta 2:
Added: Sort list
Added: Visit channel homepage
Added: Mark played channel with green
Fixed: Nasty bug where Real Player only played the same channel
Changed: Channel list format, delete your old Channels.dat and Favorites.dat

Here is the new channels.dat if you don't want to use the updater:
http://www.myhome.no/whatever/channels.dat (right click save as)

And if you have more than one OS; please test it with them too! :)

EDIT:
TerryHough, it didn't work by commenting away "ProcedureReturn result" here, but I got it to work in another example that way, but then it just got too buggy.
So I just sorted the linked list and added that instead (the "slow" way).
And I try to avoid any librarys, that's cheating :P