# sap.cfg - Configuration file of the mini SAP server

# Global miniSAPserver options
[global]

# TTL (Time To Live) of the SAP announces. You should put 255
sap_ttl=255

# Version of IP Protocol to use: 4 for IPv4, 6 for IPv6
sap_ipversion=4

# Number of seconds between announces. 5 is default. Internet announces better use 30.
sap_delay=5

# This is the "scope" of the IPv6 announce (if it exists)
# it is between 1 and F. For link-local multicast, use 2
ipv6_scope=8



# Then you should have one "[program]" section per program announced

# Note that only announces for MPEG2 TS streams are supported.
# Though announces of other types of streams may work for some clients,
# they will not be compliant to the announce spec. and are not at all
# guaranteed to work.

# IPv4 example
[program]
# Name of the program (as it will show up in the VLC playlist)
name=TV1

# Name of the streaming entity (organisation)
user=videolan

# DNS or IP of the machine on which you run the stream
machine=streamer.domain.org

# Website of the streaming entity (organisation)
site=http://www.domain.org

# Multicast IP address of the program
address=239.255.12.42

# UDP Port
port=1234

# TTL for this program (15 is the default value)
program_ttl=32

# IP protocol stack in use. 4 or 6 (4 is the default value)
program_ipversion=4

# The name of the playlistgroup your announce will be part of in the VLC playlist
playlist_group=organisationTV 



# IPv6 example
[program]
name=TV2
user=videolan
machine=streamer.domain.org
site=http://www.domain.org
program_ttl=12
program_ipversion=6
address=ff08::1
port=1234

# HTTP example
[program]
name=TV3
user=videolan
machine=streamer.domain.org
site=http://www.videolan.org
type=http
port=80
address=streamer.videolan.org
path=/mystream.mpeg # Path to the stream (here, it would be http://streamer.videolan.org:80/mystream.mpeg)

