PDA

View Full Version : How to use php to decode token of m3u8 link


sonnvl
11-09-2015, 02:39 AM
I use php to get content of this stream but its token was encoded.
Can I decode this ?

http://hplus.com.vn/vi/content/detail/youtv-2070.html
http://htqjrpsv.cdnviet.com/htjzzsg/_definst_/youtv.360p.stream/playlist.m3u8?t=5XLYb8EtDkZE6GAfPt8p6eTVTg5e4I5iUj nFW5K8NG7NlPIal0LtTtBeq+3FnZvYPG+hCQjvBMYIelCVqO9C SpYiP5FhhSrZRvgN0dzFI8eFMsr67qhu6xaa2fCMecp/

Thanks !

peterpan
11-09-2015, 07:15 AM
The stream in question does not use a token. If by "token" you're referring to the t= param, then why would you need to decode it?! The stream, as you can see, works just fine w/o decoding anything ;)


http://i.imgur.com/vdETDp8l.png

troller12
11-09-2015, 12:27 PM
So I think sonnvl want to get the direct paramters (to execute it with a php script + LS etc without to grab the working playlist manually) which are not readable in page source (only long encoded).The long m3u8 link gets post to hplus.com.vn/content/getlinkvideo/ (with many paramters) and as response you get the direct m3u8 link you can use with LS.Just check this out with FF or Chrome network tool tab there you can see it.

greetz