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

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

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

Post 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
Last edited by Joakim Christiansen on Sun Oct 26, 2008 11:24 am, edited 14 times in total.
I like logic, hence I dislike humans but love computers.
Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Post 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)
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Hehe, cool! :)
I have to make that sort function now, I've never done that before...
I like logic, hence I dislike humans but love computers.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Nice.

What all is involved in something like this? How do you stream directly from a website into the player?
Dare2 cut down to size
inc.
Enthusiast
Enthusiast
Posts: 406
Joined: Thu May 06, 2004 4:28 pm
Location: Cologne/GER

Post by inc. »

Check out OOP support for PB here!
Straker
Enthusiast
Enthusiast
Posts: 701
Joined: Wed Apr 13, 2005 10:45 pm
Location: Idaho, USA

Post by Straker »

8)
Image Image
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

works great here!
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post 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)
I like logic, hence I dislike humans but love computers.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

Wow, very nice program! Thanks!
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
User avatar
Droopy
Enthusiast
Enthusiast
Posts: 658
Joined: Thu Sep 16, 2004 9:50 pm
Location: France
Contact:

Post by Droopy »

Thanks :D
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post 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
I like logic, hence I dislike humans but love computers.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post by utopiomania »

JC, the source ?? What's the prob? :wink:
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post 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
I like logic, hence I dislike humans but love computers.
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Post 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
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post 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
I like logic, hence I dislike humans but love computers.
Post Reply