我正在努力使用JWPlayer 8.2从实时HLS流中检索#EXT-X-PROGRAM-DATE-TIME的值。如果我抓住了元'对于VOD流的JW事件,我可以看到我正在寻找的programDateTime参数/值,但在实时流上JW似乎无法提供它,即使清单文件包含它。
以下是VOD清单文件的示例:
#EXTM3U
#EXT-X-VERSION:4
## Created with Unified Streaming Platform(version=1.7.25)
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MEDIA-SEQUENCE:190527336
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:8
#USP-X-TIMESTAMP-MAP:MPEGTS=7016782483,LOCAL=2018-04-20T10:04:42.023600Z
#EXT-X-PROGRAM-DATE-TIME:2018-04-20T10:04:42.023683Z
#EXTINF:8.008, no desc
live-video=8000000-190527336.ts?token=abcco|2018-04-24T13:08:07Z|RufAWBYsJCTRTc06E%2BtSvg==|038cd04f1e982ce33e16702639268381ede1652e&%3Bt=2018-04-20T11:04:38-2018-04-20T10:05:16
#EXTINF:7.9914, no desc
live-video=8000000-190527337.ts?token=abcco|2018-04-24T13:08:07Z|RufAWBYsJCTRTc06E%2BtSvg==|038cd04f1e982ce33e16702639268381ede1652e&%3Bt=2018-04-20T11:04:38-2018-04-20T10:05:16
#EXTINF:8.008, no desc
live-video=8000000-190527338.ts?token=abcco|2018-04-24T13:08:07Z|RufAWBYsJCTRTc06E%2BtSvg==|038cd04f1e982ce33e16702639268381ede1652e&%3Bt=2018-04-20T11:04:38-2018-04-20T10:05:16
#EXTINF:7.9913, no desc
live-video=8000000-190527339.ts?token=abcco|2018-04-24T13:08:07Z|RufAWBYsJCTRTc06E%2BtSvg==|038cd04f1e982ce33e16702639268381ede1652e&%3Bt=2018-04-20T11:04:38-2018-04-20T10:05:16
#EXTINF:1.7684, no desc
live-video=8000000-190527340.ts?token=abcco|2018-04-24T13:08:07Z|RufAWBYsJCTRTc06E%2BtSvg==|038cd04f1e982ce33e16702639268381ede1652e&%3Bt=2018-04-20T11:04:38-2018-04-20T10:05:16
#EXT-X-ENDLIST
...和元有效载荷上的JW:
meta= {
"duration": 33.7671,
"height": 480,
"width": 853,
"seekRange": {
"start": 0,
"end": 33.7671
},
"type": "meta"
}
meta= {
"programDateTime": "2018-04-20T10:04:42.023683Z",
"type": "meta
}
......以及LIVE清单的样本:
#EXTM3U
#EXT-X-VERSION:4
## Created with Unified Streaming Platform(version=1.7.25)
#EXT-X-MEDIA-SEQUENCE:190571398
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:8
#USP-X-TIMESTAMP-MAP:MPEGTS=4382044205,LOCAL=2018-04-24T11:59:42.024600Z
#EXT-X-PROGRAM-DATE-TIME:2018-04-24T11:59:42.024683Z
#EXTINF:8.008, no desc
live-video=8000000-190571398.ts?token=abcco|2018-04-24T13:00:13Z|RufAWBYsJCTRTc06E%2BtSvg==|b57a1e57d55685deb9aff6ad41292f1053d7294f
#EXTINF:7.9914, no desc
live-video=8000000-190571399.ts?token=abcco|2018-04-24T13:00:13Z|RufAWBYsJCTRTc06E%2BtSvg==|b57a1e57d55685deb9aff6ad41292f1053d7294f
#EXTINF:8.008, no desc
live-video=8000000-190571400.ts?token=abcco|2018-04-24T13:00:13Z|RufAWBYsJCTRTc06E%2BtSvg==|b57a1e57d55685deb9aff6ad41292f1053d7294f
#EXTINF:7.9913, no desc
live-video=8000000-190571401.ts?token=abcco|2018-04-24T13:00:13Z|RufAWBYsJCTRTc06E%2BtSvg==|b57a1e57d55685deb9aff6ad41292f1053d7294f
#EXTINF:8.008, no desc
live-video=8000000-190571402.ts?token=abcco|2018-04-24T13:00:13Z|RufAWBYsJCTRTc06E%2BtSvg==|b57a1e57d55685deb9aff6ad41292f1053d7294f
#EXTINF:7.9913, no desc
live-video=8000000-190571403.ts?token=abcco|2018-04-24T13:00:13Z|RufAWBYsJCTRTc06E%2BtSvg==|b57a1e57d55685deb9aff6ad41292f1053d7294f
#EXTINF:8.008, no desc
live-video=8000000-190571404.ts?token=abcco|2018-04-24T13:00:13Z|RufAWBYsJCTRTc06E%2BtSvg==|b57a1e57d55685deb9aff6ad41292f1053d7294f
...和on meta payload:
meta= {
"duration": null,
"height": 480,
"width": 853,
"seekRange": {
"start": 0,
"end": 88.0046
},
"type": "meta"
}
如您所见,两个清单文件中都提供了#EXT-X-PROGRAM-DATE-TIME,但我还没有找到提取实时值的方法。
非常感谢任何想法或帮助。
答案 0 :(得分:0)
这里没有太多答案,但元数据似乎依赖于直播本身。我刚刚在JW 8.2.3中查看了实时流的on(' meta')响应对象,我看到了:
{
"metadataTime":123.00226666666667,
"metadata":{
"PRIV":{
"com.cisco.streaming.Timecode.0":"\t\u0013ٸ̐踐"
},
"width":320,
"height":180,
"duration":null
},
"type":"meta"
}