VLC IPTV how to play *.m3u8

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

VLC IPTV how to play *.m3u8

Post by AUGE_OHR »

hi,

i can play "local" file in my HMG VLC App using

Code: Select all

      ::oPlaylist:items:clear()
      ::oPlaylist:add( "File:///" + ::cFileName )
      ::oInput:position := 0
      IF HB_ISBLOCK( ::bOnSetFile )
         EVAL( ::bOnSetFile, Self, cFileName )
      ENDIF
now i got a *.m3u8 File which i can open/play in VLC "direct"
i have to use URL like https://mcdn.daserste.de/daserste/de/master.m3u8 in VLC Player
VLC_IPTV.jpg
VLC_IPTV.jpg (26.86 KiB) Viewed 4181 times
but how to play in "my App" ? i try

Code: Select all

      ::oPlaylist:add( "https://mcdn.daserste.de/daserste/de/master.m3u8" )
but that seems not to work.

---

attached ZIP include *.m3u for many IPTV Station
ZZ_PLAYLIST_ALL_TV.m3u does contain all
Countries-master.zip
(296.94 KiB) Downloaded 185 times
have fun
Jimmy
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: VLC IPTV how to play *.m3u8

Post by andyglezl »

Maybe just the name of file master.m3u8 ...

::oPlaylist:add( "File:///" + ::cFileName )
imagen_2022-03-12_183421.png
imagen_2022-03-12_183421.png (189.15 KiB) Viewed 4154 times



It gives too many errors...
imagen_2022-03-12_183518.png
imagen_2022-03-12_183518.png (43.14 KiB) Viewed 4154 times
imagen_2022-03-12_183539.png
imagen_2022-03-12_183539.png (103.83 KiB) Viewed 4154 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: VLC IPTV how to play *.m3u8

Post by AUGE_OHR »

hi,

have figure out how to play IP-TV using VLC

Demo will create a "Config.INI" where you can change Size of App ( Default 800x600 )

after start IPTV.EXE it will show Main Window where you got a List of free TV / Radio Station
to use "your" Language use Combobox to set "Filter"
IPTV_MAIN.jpg
IPTV_MAIN.jpg (148.08 KiB) Viewed 4046 times
IPTV004.ZIP
(1.86 MiB) Downloaded 156 times
! Note : Config.INI does have

Code: Select all

Country=
which will used for Combobox

to start free TV / Radio Station Dblclick in BROWSE or on "Logo" of Station ( unknown = "i" )
it will "minimize" Main to Task-Tray and open a new Windows in Full-HD (1920x1080)

you can resize Windows if TV ( Radio only small Titlebar)
if DblClick it will change into FullScreen / Normal

press ESC tp close Window -> Main appear again
btw. Dblclick on Task-Tray Icon will hide/show Main App

---

sometimes it need some Time until Connection is done so "wait" ...
but also a URL my be "not valid anymore" ... don´t know how to "check it" (yet)
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: VLC IPTV how to play *.m3u8

Post by AUGE_OHR »

hi,

last Version was 32 Bit so it need 32 Bit VLC which i have also used for my Xbase++ App.
but on 64 Bit OS most have 64 Bit Version of VLC installed which will NOT work wirh 32 Bit VLC Engine

so i create 64 Bit HMG App using 64 Bit VLC Engine

---

new :
Ctrl + F : LOCATE for Channel-No, Name or Country (TVGROUP)
! Note : it work CASE sensitive
! Tip : try
Star
and click on "Star Trek" :D

Taskline in VLC Player Windows ( now real Full-HD ) will automatic hide after some Time
when move over Taskline you can right-click to get Context Menu ( work with Table PC )

in Main Windows right-click Context Menu to "read" *.m3u8 File into (UNICODE) DBF
! Note : new DBF will have same Name as *.m3u8 File in same Folder

...

before start new Version please delete *.CDX which will be create new ( without UPPER() )
IPTV64_6.zip
(1.9 MiB) Downloaded 145 times
have fun
Jimmy
User avatar
andyglezl
Posts: 1461
Joined: Fri Oct 26, 2012 7:58 pm
Location: Guadalajara Jalisco, MX
Contact:

Re: VLC IPTV how to play *.m3u8

Post by andyglezl »

Hola Jimmy

Lo siento, mi VLC es portable...
*--------------------------------------------------------------------------------
Hi jimmy

Sorry, my VLC is portable...
imagen_2022-03-15_111111.png
imagen_2022-03-15_111111.png (52.13 KiB) Viewed 3966 times
Andrés González López
Desde Guadalajara, Jalisco. México.
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: VLC IPTV how to play *.m3u8

Post by AUGE_OHR »

hi Andy,
andyglezl wrote: Tue Mar 15, 2022 5:11 pm Sorry, my VLC is portable...
i "think" COM-Interface need Registry Stetting

Code: Select all

            PROGID "VideoLAN.VLCPlugin.2"
which is not available in Portable Version (without Manifest File which include it )
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: VLC IPTV how to play *.m3u8

Post by AUGE_OHR »

hi,

based on this Thread
https://groups.google.com/g/harbour-users/c/sjeytL6zUPs

here new Design using DWM
DWM_IPTV.jpg
DWM_IPTV.jpg (155.37 KiB) Viewed 3942 times
it does NOT have a Inage as Background ... it IS "Transparent"
IPTV32_7.zip
32 Bit
(1.76 MiB) Downloaded 143 times
IPTV64_7.zip
64 Bit
(1.79 MiB) Downloaded 155 times
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2117
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: VLC IPTV how to play *.m3u8

Post by AUGE_OHR »

hi,

have found out that i have "read" *.m3u "incomplete" ... there are more than 3000 Station in *.m3u List
here "full" IPTVDBF.DBF and new Code to "show" how i got Information from *.m3u File
READM3U.ZIP
(186.64 KiB) Downloaded 151 times
! Note : Source does have Code, e.g. for Progressbar, which is not need to get Code work as Standalone

p.s. Delete *.CDX before start with new DBF ( will be create new *.CDX )
have fun
Jimmy
Post Reply