[vlc-devel] [PATCH] Add Apple AirTunes stream output plugin
Michael Hanselmann
public at hansmi.ch
Wed Dec 17 00:19:50 CET 2008
2008/12/13 Michael Hanselmann <public at hansmi.ch>:
> 2008/12/11 Rémi Denis-Courmont <rem at videolan.org>:
>>> + /* Build SDP */
>>> + i_rc = asprintf( &psz_sdp,
>>> + "v=0\r\n"
>>> + "o=iTunes %u 0 IN IP4 %s\r\n"
>>> + "s=iTunes\r\n"
>>> + "c=IN IP4 %s\r\n"
>>> + "t=0 0\r\n"
>>> + "m=audio 0 RTP/AVP 96\r\n"
>>> + "a=rtpmap:96 AppleLossless\r\n"
>>> + "a=fmtp:96 4096 0 16 40 10 14 2 255 0 0 44100\r\n"
>>> + "a=rsaaeskey:%s\r\n"
>>> + "a=aesiv:%s\r\n",
>>> + i_session_id, psz_local, p_sys->psz_host,
>>> + psz_aes_key_base64, psz_aes_iv_base64 );
>>
>> I wonder if IP6 would ever make any sense here?
>> I also guess this is not really RTP but we cannot fix that :(
>
> I just tested it using Apple iTunes (actual IP addresses obfuscated
> because to the MAC address encoded in them):
>
> "ANNOUNCE rtsp://fe80::216:1234:567:89/2822725808 RTSP/1.0
> […]
> o=iTunes 2822725808 0 IN IP4 fe80::321:1234:567:89
> s=iTunes
> c=IN IP4 fe80::123:9876:543:21
> t=0 0
> […]"
>
> It still uses "IP4", despite the underlying protocol being IPv6.
Just as a random information: Streaming RAOP over IPv6 using VLC works.
Without [] ("raop{host=fe80::216:1234:567:89%eth0}"):
"ANNOUNCE rtsp://fe80::216:1234:567:89%eth0/1584072703 RTSP/1.0
[…]
o=iTunes 1584072703 0 IN IP4 fe80::216:1234:567:89%eth0
s=iTunes
c=IN IP4 fe80::123:9876:543:21"
With [] ("raop{host=[fe80::216:1234:567:89%eth0]}"):
"ANNOUNCE rtsp://fe80::216:1234:567:89%eth0/359194335 RTSP/1.0
[…]
o=iTunes 359194335 0 IN IP4 fe80::216:1234:567:89%eth0
s=iTunes
c=IN IP4 [fe80::123:9876:543:21%eth0]"
Both work, no changes are required for IPv6 support in the RAOP plugin.
Regards,
Michael
More information about the vlc-devel
mailing list