I have found some things using the Chrome's tool:
chrome://net-internals
It looks like they are using a .m3u8 to stream on the web site:
Code:
http://hlslive-l3c.med1.net.wwe.com/ls01/wwe/LINEAR/WWE_ALL_DAY_NO_ARCHIVE_VIDEO_MEDIA_2_WWE_Dual_Linear_Event_20160525/1800K/1800_slide.m3u8
but then right after that request, the next request is to a .ts:
Code:
http://hlslive-l3c.med1.net.wwe.com/ls01/wwe/LINEAR/WWE_ALL_DAY_NO_ARCHIVE_VIDEO_MEDIA_2_WWE_Dual_Linear_Event_20160525/1800K/148/00/20/30.ts
Those seem to come from this request:
Code:
http://hlslive-l3c.med2.net.wwe.com/ls01/wwe/LINEAR/master_wired.m3u8
A curl of that presents me with this result:
Code:
20:25 $ curl http://hlslive-l3c.med2.net.wwe.com/ls01/wwe/LINEAR/master_wired.m3u8
#EXTM3U
#EXT-X-MEDIA:TYPE=CLOSED-CAPTIONS,GROUP-ID="captions",LANGUAGE="en",INSTREAM-ID="CC1",NAME="CC1"
#EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=896x504,BANDWIDTH=2100000,CODECS="avc1.4d001f,mp4a.40.2",CLOSED-CAPTIONS="captions"
WWE_ALL_DAY_NO_ARCHIVE_VIDEO_MEDIA_2_WWE_Dual_Linear_Event_20160525/1800K/1800_slide.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=400x224,BANDWIDTH=650000,CODECS="avc1.42001e,mp4a.40.2",CLOSED-CAPTIONS="captions"
WWE_ALL_DAY_NO_ARCHIVE_VIDEO_MEDIA_2_WWE_Dual_Linear_Event_20160525/500K/500_slide.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=512x288,BANDWIDTH=990000,CODECS="avc1.42001e,mp4a.40.2",CLOSED-CAPTIONS="captions"
WWE_ALL_DAY_NO_ARCHIVE_VIDEO_MEDIA_2_WWE_Dual_Linear_Event_20160525/800K/800_slide.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=640x360,BANDWIDTH=1450000,CODECS="avc1.4d001f,mp4a.40.2",CLOSED-CAPTIONS="captions"
WWE_ALL_DAY_NO_ARCHIVE_VIDEO_MEDIA_2_WWE_Dual_Linear_Event_20160525/1200K/1200_slide.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=960x540,BANDWIDTH=2700000,CODECS="avc1.4d001f,mp4a.40.2",CLOSED-CAPTIONS="captions"
WWE_ALL_DAY_NO_ARCHIVE_VIDEO_MEDIA_2_WWE_Dual_Linear_Event_20160525/2400K/2400_slide.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=960x720,BANDWIDTH=3500000,CODECS="avc1.640028,mp4a.40.2",CLOSED-CAPTIONS="captions"
WWE_ALL_DAY_NO_ARCHIVE_VIDEO_MEDIA_2_WWE_Dual_Linear_Event_20160525/3000K/3000_slide.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,RESOLUTION=1280x720,BANDWIDTH=5200000,CODECS="avc1.640028,mp4a.40.2",CLOSED-CAPTIONS="captions"
WWE_ALL_DAY_NO_ARCHIVE_VIDEO_MEDIA_2_WWE_Dual_Linear_Event_20160525/4500K/4500_slide.m3u8
The master_wired.m3u8 url I get from hitting this URL:
Code:
https://ws.media.net.wwe.com/ws/media/mf/op-findUserVerifiedEvent/v-2.3?identityPointId=7406043&fingerprint=MDRGazNpazJjOVhGMy9FUVBDdXBudjB0bFFzPXwxNDY0MTQzODk4NjYyfGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D&contentId=732983183&playbackScenario=HTTP_CLOUD_WIRED&subject=LIVE_EVENT_COVERAGE&sessionKey=B0kKr0Uw8s5khL0ZIOWpIGmaCqc%3D&platform=WEB_MEDIAPLAYER_5&frameworkURL=https%3A%2F%2Fws.media.net.wwe.com&_=1464308721767
If I change that URL to be (Note the playbackScenario, I changed to FMS_CLOUD):
Code:
https://ws.media.net.wwe.com/ws/media/mf/op-findUserVerifiedEvent/v-2.3?identityPointId=7406043&fingerprint=MDRGazNpazJjOVhGMy9FUVBDdXBudjB0bFFzPXwxNDY0MTQzODk4NjYyfGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D&contentId=732983183&playbackScenario=FMS_CLOUD
I get this new URL:
And when I curl that I see:
Code:
<smil>
<head>
<meta base="rtmp://wwesecurelivefs.fplive.net/wwesecurelive-live/" />
</head>
<body>
<switch>
<video src="wwe_d35_s300@s180588" system-bitrate="300000"/>
<video src="wwe_d35_s500@s180589" system-bitrate="500000"/>
<video src="wwe_d35_s800@s180590" system-bitrate="800000"/>
<video src="wwe_d35_s1200@s180591" system-bitrate="1200000"/>
<video src="wwe_d35_s1800@s180592" system-bitrate="1800000"/>
<video src="wwe_d35_s2400@s180593" system-bitrate="2400000"/>
<video src="wwe_d35_s3000@s180594" system-bitrate="3000000"/>
</switch>
</body>
</smil>
This is all for the live feed, and the metabase there is quite different from what the code is expecting, that that is where I think we see the issues.
If I look at an on-demand video and change the Url playbackScenario to FMS_CLOUD
Code:
https://ws.media.net.wwe.com/ws/media/mf/op-findUserVerifiedEvent/v-2.3?identityPointId=7406043&fingerprint=MDRGazNpazJjOVhGMy9FUVBDdXBudjB0bFFzPXwxNDY0MTQzODk4NjYyfGlwdD1lbWFpbC1wYXNzd29yZA%3D%3D&contentId=717008583&playbackScenario=FMS_CLOUD
I get this URL back:
Code:
http://smil.media.net.wwe.com/wwe/2016/05/20/wwe_717008583_fms_cloud_aka.smil?aifp=v0004&auth=da.a6aaa1a8aVb8dhb.aVdOb6aZbIcnbRdb-bxr5Cc-O-NFnoxjBqIolGHo-jhmbkajdkdl8kem6jhj8j5jbjkk3mfkejam7khjek7l9kamf&slist=secure/wwe/2016/05/20&ct5=27-May-16&ct6=68.37.248.129&ct7=717008583:FMS_CLOUD&ct8=56&ct1=wwe&ct3=7406043&ct4=wwe&ct9=549bee6a5e3e4ce7a0ed74a532cfa050
And this result:
Code:
<smil>
<head>
<meta base="rtmp://cp271756.edgefcs.net/ondemand/"/>
</head>
<body>
<switch>
<video src="mp4:secure/wwe/2016/05/20/wwe_717008583_500K.mp4" system-bitrate="500000"/>
<video src="mp4:secure/wwe/2016/05/20/wwe_717008583_1200K.mp4" system-bitrate="1200000"/>
<video src="mp4:secure/wwe/2016/05/20/wwe_717008583_1800K.mp4" system-bitrate="1800000"/>
<video src="mp4:secure/wwe/2016/05/20/wwe_717008583_2400K.mp4" system-bitrate="2400000"/>
<video src="mp4:secure/wwe/2016/05/20/wwe_717008583_3000K.mp4" system-bitrate="3000000"/>
</switch>
</body>
</smil>
Which is exactly what the code expects. So I am at a bit of a loss of how to convert the live stream response into something I can use for rtmp. Is it possible to use the m3u8 to stream on kodi, and if so are their any good examples?