sap:// not working properly ?
#1
Hey Guys,

I've got a dvb-s signal coming through an IPTV broadcaster. It's SAP announcing the channels.

If I add sap:// uri type as a video source, I get the list of channels, but playing them seems to use the Origin's IP address rather than the server details as from the media information that the code gets from the parsed SDP.

Here's an example of the SDP

v=0
o=- 6704 1 IN IP4 192.168.2.6
s=BBC NEWS
t=0 0
a=exterityLocation:Exterity
a=exterityChannelNo:8
a=exterityServiceId:6704
a=exterityGroupsConfusedtandard
a=exterityVideoPid:5000
a=exterityAudioPid:5001
a=x-plgroupConfusedtandard
m=video 5000 udp 33
c=IN IP4 239.192.7.6/7

It appears to be trying to play the channel as 192.168.2.6 instead of the UDP address 239.192.7.6

Is this a bug ?

Looking at the code for the xbmc/FileSystem/SAPDirectory.cpp it appears to be creating a path string as follows
path.Format("sap://%s/%s/0x%x.sdp", header.origin.c_str(), desc.origin.c_str(), header.msgid);

I think this is being passed back up the chain from CSAPDirectory::GetDirectory where it sets
the CFileItem's path from the Sessions path
item->m_strPath = it->path;

It's my first time looking at the code so I'm not sure I've read that correctly.
Reply

Logout Mark Read Team Forum Stats Members Help
sap:// not working properly ?0