blob: 1fac75bef5e310e568eccff7f92db7add04191bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
<!DOCTYPE html>
<html>
<head>
<title>N00bing through Rust</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<textarea id="source">
class: middle, center
# N00bing through Rust
### My journey through
---
class: middle, left
# Yuval Adam
- Full stack developer
- Freelance consultant
- 10+ years Pythonista
- [https://yuv.al](https://yuv.al)
- [@yuvadm](https://twitter.com/yuvadm)
---
class: middle, left
# Slinging media files over UPnP
- Reverse engineering a cheap HDMI/UPnP dongle
- [https://github.com/yuvadm/rockcast](https://github.com/yuvadm/rockcast)
---
class: middle, left
# UPnP Casting
- UPnP casting
- Send a UPnP discovery packet over **UDP** broadcast
- Dongle on LAN responds with some fugly **XML**
- Serve the media file over **HTTP**
- Send an XML request to the dongle pointing to the file
- Send play/pause actions as neccesary
- You can implement this with several dozen lines of Python
It's on [https://github.com/yuvadm/slingr](https://github.com/yuvadm/slingr)
---
class: middle, left
background-image: url(https://cdn-images-1.medium.com/max/2000/1*TLk1BwXIZA5kaMhEbTXY0g.jpeg)
background-size: cover
# .white[Rust is **not** a high-level language]
---
class: middle, left
# Title 6
---
class: middle, left
# Title 7
---
class: middle, left
# Title 8
---
class: middle, left
# Title 9
</textarea>
<script src="https://remarkjs.com/downloads/remark-latest.min.js" type="text/javascript">
</script>
<script type="text/javascript">
var slideshow = remark.create();
</script>
</body>
</html>
|