Thread: i24NEWS Live
View Single Post
  #36  
Old 10-08-2020, 04:51 AM
j_cool j_cool is offline
Senior Member
 
Join Date: Feb 2016
Posts: 515
j_cool is on a distinguished road
Default

Re: i24NEWS Live


Code:
$header = '"Accept: application/json;pk=BCpkADawqM1UIU4favtR1Jj4rqM0ZAkYwMEbgN9bsEpJ2150CdxJmRIG8jK-Up_9w4w37x3tP1AsoO_MZhD_XoAGkdKWxymaaw4OHuhPn_lEJczODTm3AO7S08gLFPnLnb-FcKJwXhbxCQ10"'
$url = ' "https://edge.api.brightcove.com/playback/v1/accounts/5377161796001/videos/6168209415001"'
$iPID = Run('cmd.exe /c curl.exe -k -H '& $header & $url,'',@SW_MINIMIZE,2)
ProcessWaitClose($iPID)
$s = StdoutRead($iPID)
$s = StringTrimLeft($s,StringInStr($s,'"https://i24alive2'))
$s = StringTrimRight($s,(StringLen($s)+1)-StringInStr($s,'"'))
run('cmd.exe /c livecli.exe --player=ffplay.exe "'& $s &'" 540p','',@SW_MINIMIZE)


Here is basic script. Not much but it is a start.
Broadcast is half day in english and another half day in arabic.
For english only stream i24news demands "membership", no option for me.
Reply With Quote