AliZairov Posted January 11, 2016 Share Posted January 11, 2016 Salam. AzerBox web sehifesini hazırlamışam. Tekcə player cURL jsondan linki çəkəndə token problemi olur. Bunun üçün bir çarə varmı. $url = "http://www.myvideo.az/ios/android.php?chan=&chan=aztv"; $ct = curl_init(); curl_setopt($ct, CURLOPT_URL, $url); curl_setopt($ct, CURLOPT_RETURNTRANSFER, true); curl_setopt($ct, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); $response = curl_exec($ct); $source = json_decode($response, true); echo $source["st"]; SoxulcanPRO 1 Quote Link to comment Share on other sites More sharing options...
AliZairov Posted January 11, 2016 Author Share Posted January 11, 2016 Çarə üçün öz playerini istifadə etdim myvideo üçün. Hazırdı amma heyif hər smart tv dəstəklmiyəcək. http://azerbox.tk test edə bilərsiniz. ACCOUNTANT and Elvin Məlikov 2 Quote Link to comment Share on other sites More sharing options...
ACCOUNTANT Posted January 11, 2016 Share Posted January 11, 2016 Təbriklər.. AliZairov 1 Quote Link to comment Share on other sites More sharing options...
Elvin Məlikov Posted January 11, 2016 Share Posted January 11, 2016 Doğurdan çox bəyəndim.Super. AliZairov 1 Quote Link to comment Share on other sites More sharing options...
AliZairov Posted January 12, 2016 Author Share Posted January 12, 2016 Salam. Təşəkkürlər. Mobil android versiyasıda mövcutdur. Elvin Məlikov 1 Quote Link to comment Share on other sites More sharing options...
SoxulcanPRO Posted July 10, 2016 Share Posted July 10, 2016 Salam. AzerBox web sehifesini hazırlamışam. Tekcə player cURL jsondan linki çəkəndə token problemi olur. Bunun üçün bir çarə varmı. $url = "http://www.myvideo.az/ios/android.php?chan=&chan=aztv"; $ct = curl_init(); curl_setopt($ct, CURLOPT_URL, $url); curl_setopt($ct, CURLOPT_RETURNTRANSFER, true); curl_setopt($ct, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); $response = curl_exec($ct); $source = json_decode($response, true); echo $source["st"]; belede ede bilersen. $tv='lider'; $page = file_get_contents('http://www.myvideo.az/?act=dvr&chan='.$tv); preg_match("#dvrServer':'(.*)'#sU", $page, $cek); $tv_link=''.$cek[1].''.$tv.'/index.m3u8'; <script src="//jwpsrv.com/library/xxxxxXxxxxx.js"></script> <div id="player"></div> <script type="text/javascript"> jwplayer("player").setup({ width: "100%", file: "'.$tv_link.'", autostart: "true", primary: "html5", androidhls: "true", skin: "vapor", androidhls:"true", aspectratio: "16:9", primary: "flash", ga: "{}", sharing: "{}" }); </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.