devin1014 / DLNA-Cast

基于Cling库封装的DLNA投屏库,支持DMC、DMS、DMR功能。
380 stars 101 forks source link

投屏时,怎么携带header #35

Open wangshufu opened 1 year ago

wangshufu commented 1 year ago

投屏时,怎么携带header

ZhuSky commented 1 year ago

同问🙏

ZhuSky commented 1 year ago

@wangshufu 大佬,找到方法了,麻烦告知下,感谢🙏

FongMi commented 1 year ago

同問 @devin1014

nbwzlyd commented 11 months ago

同問 @devin1014

gjy12345 commented 11 months ago

  YOUS  

devin1014 commented 9 months ago

这个是爱奇艺投屏时,发过来的信息。

<DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/">
  <item id="莲花楼 第1集" parentID="-1" restricted="1">
    <upnp:genre>Unknown</upnp:genre>
    <upnp:storageMedium>UNKNOWN</upnp:storageMedium>
    <upnp:writeStatus>UNKNOWN</upnp:writeStatus>
    <upnp:class>object.item.videoItem.movie</upnp:class>
    <dc:title>莲花楼 第1集</dc:title>
    <res protocolInfo="http-get:*:video/mp4:*;DLNA.ORG_OP=01;">http://intel-cache.m.iqiyi.com/mus/1758046726077401/182e3fe46dd29b54327e90b491400856/afbe8fd3d73448c9/0/20230717/9e/b8/a7003f533203042e20ff2790049f7da7.m3u8?vt=2&amp;ff=ts&amp;qd_originate=sys&amp;k_uid=5a044bd3dd2ba3264ed53b18c3587e1e110d&amp;_lnt=0&amp;ve=b435a7cc1b84d981305b656d9d7882be&amp;bossStatus=0&amp;qd_uri=dash&amp;qd_p=2dfb694a&amp;bid=300&amp;px=0&amp;tvid=8753735085244300&amp;qd_vip=0&amp;qd_time=1690357014497&amp;code=2&amp;src=02022001010024000000-04000000001010000000-01&amp;tm=1690356967304&amp;sgti=37_5a044bd3dd2ba3264ed53b18c3587e1e110d_1690356967304&amp;vf=0e7bf7da9b44393c9a5473cfae305a1a</res>
  </item>
</DIDL-Lite>

这个header不知道是啥信息,自己做的话可以加一段 <upnp:genre>Unknown</upnp:genre> 播放器那边读出来就行了。

devin1014 commented 9 months ago
image