v16 -  Play M3u8 with AuthSign parameter
#1
Hi,
I have an URL which is
Code:
http://live1.karwan.tv/karwan.tv/net-tv/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MS8xNi8yMDE3IDI6Mzk6MDggUE0maGFzaF92YWx1ZT1pdVlZYW9PVHZhVGYvdUhUSGtzajVBPT0mdmFsaWRtaW51dGVzPTIw
As you see the code includes some wmsAuthSign that is jQuery string parameter. This changes every 20th minutes and I can not play it after a while. How do I work around this? is there any php or programming thing that I can use on any free servers that can get the video and remove the parameter[/code]? or am I just dreaming?

Is there any solution to this?
Reply
#2
You have to do it in PHP and use CURL function (Web Scraping).
Next -> Create php file with appropriate headers
Is also useful: .htaccess

Example:

http://example.com/stream.m3u
Quote:<?php

$stream_url = "Huh"; // scraping with web page use curl in php

header('Content-Type: application/octet-stream');
echo "#EXTM3U\n";
echo "#EXTINF:-1," . $stream_name . "\n";
echo $stream_url;
Reply
#3
(2017-02-20, 03:31)tinware Wrote: You have to do it in PHP and use CURL function (Web Scraping).
Next -> Create php file with appropriate headers
Is also useful: .htaccess

Example:

http://example.com/stream.m3u
Quote:<?php

$stream_url = "Huh"; // scraping with web page use curl in php

header('Content-Type: application/octet-stream');
echo "#EXTM3U\n";
echo "#EXTINF:-1," . $stream_name . "\n";
echo $stream_url;
Hi,Thanks for your respose. Could you please explain it to me. can you make an example with the link I provided? do O make such file for each channel?
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Play M3u8 with AuthSign parameter00