Commit | Line | Data |
---|---|---|
1 | import time | |
2 | from struct import * | |
3 | from Shairplay import * | |
4 | ||
5 | hwaddr = pack('BBBBBB', 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB) | |
6 | ||
7 | shairplay = LoadShairplay(".") | |
8 | ||
9 | raop = RaopService(shairplay, RaopCallbacks()) | |
10 | port = raop.start(5000, hwaddr) | |
11 | ||
12 | dnssd = DnssdService(shairplay) | |
13 | dnssd.register_raop("RAOP test", port) | |
14 | ||
15 | time.sleep(50) | |
16 | ||
17 | dnssd.unregister_raop() | |
18 | raop.stop() | |
19 | del raop | |
20 |