airplay 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -7,8 +7,15 @@
7
7
  A client (and someday a server) of the superfancy http content stream technique
8
8
  that Apple uses in its products.
9
9
 
10
+ Now supports any Airplay-compatible device, like [Airserver](http://www.airserverapp.com/)
11
+
10
12
  You can try this in an AppleTV for instance.
11
13
 
14
+ ## IMPORTANT!
15
+
16
+ Since iOS 5 there are some changes in the API so to keep playing something (like
17
+ a video) you must keep the client alive!
18
+
12
19
  ## Basic Usage
13
20
 
14
21
  ```ruby
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "airplay"
3
- s.version = "0.2.5"
3
+ s.version = "0.2.6"
4
4
  s.summary = "Airplay client"
5
5
  s.description = "Send image/video to an airplay enabled device"
6
6
  s.authors = ["elcuervo"]
@@ -28,23 +28,26 @@ class Airplay::Client
28
28
  end
29
29
 
30
30
  def send_image(image, transition = :none)
31
- Airplay::Protocol::Image.new(handler).send(image, transition)
31
+ @image_proxy ||= Airplay::Protocol::Image.new(handler)
32
+ @image_proxy.send(image, transition)
32
33
  end
33
34
 
34
35
  def send_video(video, position = 0)
35
- Airplay::Protocol::Media.new(handler).send(video, position)
36
+ @media_proxy ||= Airplay::Protocol::Media.new(handler)
37
+ @media_proxy.send(video, position)
36
38
  end
37
39
 
38
40
  def send_audio(audio, position = 0)
39
- Airplay::Protocol::Media.new(handler).send(audio, position)
41
+ @media_proxy ||= Airplay::Protocol::Media.new(handler)
42
+ @media_proxy.send(audio, position)
40
43
  end
41
44
 
42
45
  def scrub(position = false)
43
- scrubber = Airplay::Protocol::Scrub.new(handler)
46
+ @scrub_proxy ||= Airplay::Protocol::Scrub.new(handler)
44
47
  if position
45
- scrubber.to position
48
+ @scrub_proxy.to position
46
49
  else
47
- scrubber.check
50
+ @scrub_proxy.check
48
51
  end
49
52
  end
50
53
 
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://192.168.1.101:7000/scrub
5
+ uri: http://mocktv.local:7000/scrub
6
6
  body: !!null
7
7
  headers:
8
8
  user-agent:
@@ -19,18 +19,18 @@
19
19
  message: Unauthorized
20
20
  headers:
21
21
  date:
22
- - Thu, 13 Oct 2011 01:40:53 GMT
22
+ - Thu, 13 Oct 2011 12:22:53 GMT
23
23
  content-length:
24
24
  - '0'
25
25
  www-authenticate:
26
- - Digest realm="AirPlay", nonce="MTMxODQ3MDA1MyCLYqeU6GyjP/SIKrzz9Xdl"
26
+ - Digest realm="AirPlay", nonce="MTMxODUwODU3MyAnPHQuK0fHAbH43SnwM2zd"
27
27
  body: !!null
28
28
  http_version: '1.1'
29
29
  ignored: false
30
30
  - !ruby/struct:VCR::HTTPInteraction
31
31
  request: !ruby/struct:VCR::Request
32
32
  method: :get
33
- uri: http://192.168.1.101:7000/scrub
33
+ uri: http://mocktv.local:7000/scrub
34
34
  body: !!null
35
35
  headers:
36
36
  user-agent:
@@ -44,17 +44,17 @@
44
44
  - 30
45
45
  - 30
46
46
  host:
47
- - 192.168.1.101:7000
47
+ - mocktv.local:7000
48
48
  authorization:
49
- - Digest username="Airplay", realm="AirPlay", uri="/scrub", nonce="MTMxODQ3MDA1MyCLYqeU6GyjP/SIKrzz9Xdl",
50
- nc=00000000, cnonce="7b5d7a15a148d48d3b262ba3cffce384", response="175d37f9dbf57f5f5935f0673e5e550f"
49
+ - Digest username="Airplay", realm="AirPlay", uri="/scrub", nonce="MTMxODUwODU3MyAnPHQuK0fHAbH43SnwM2zd",
50
+ nc=00000000, cnonce="c2fc089b2e65ab801efe19f6c0748545", response="f90f23f345d03fb5e4ec4bd3e054731a"
51
51
  response: !ruby/struct:VCR::Response
52
52
  status: !ruby/struct:VCR::ResponseStatus
53
53
  code: 200
54
54
  message: OK
55
55
  headers:
56
56
  date:
57
- - Thu, 13 Oct 2011 01:40:53 GMT
57
+ - Thu, 13 Oct 2011 12:22:58 GMT
58
58
  content-type:
59
59
  - text/parameters
60
60
  content-length:
@@ -69,7 +69,7 @@
69
69
  - !ruby/struct:VCR::HTTPInteraction
70
70
  request: !ruby/struct:VCR::Request
71
71
  method: :get
72
- uri: http://192.168.1.101:7000/scrub
72
+ uri: http://mocktv.local:7000/scrub
73
73
  body: !!null
74
74
  headers:
75
75
  user-agent:
@@ -86,18 +86,18 @@
86
86
  message: Unauthorized
87
87
  headers:
88
88
  date:
89
- - Thu, 13 Oct 2011 01:40:53 GMT
89
+ - Thu, 13 Oct 2011 12:23:03 GMT
90
90
  content-length:
91
91
  - '0'
92
92
  www-authenticate:
93
- - Digest realm="AirPlay", nonce="MTMxODQ3MDA1MyCLYqeU6GyjP/SIKrzz9Xdl"
93
+ - Digest realm="AirPlay", nonce="MTMxODUwODU4MyAx+UiV/7xCkP81VM4Y1S/G"
94
94
  body: !!null
95
95
  http_version: '1.1'
96
96
  ignored: false
97
97
  - !ruby/struct:VCR::HTTPInteraction
98
98
  request: !ruby/struct:VCR::Request
99
99
  method: :get
100
- uri: http://192.168.1.101:7000/scrub
100
+ uri: http://mocktv.local:7000/scrub
101
101
  body: !!null
102
102
  headers:
103
103
  user-agent:
@@ -111,17 +111,17 @@
111
111
  - 30
112
112
  - 30
113
113
  host:
114
- - 192.168.1.101:7000
114
+ - mocktv.local:7000
115
115
  authorization:
116
- - Digest username="Airplay", realm="AirPlay", uri="/scrub", nonce="MTMxODQ3MDA1MyCLYqeU6GyjP/SIKrzz9Xdl",
117
- nc=00000000, cnonce="f86894f4489b02319259ca7b59a09214", response="175d37f9dbf57f5f5935f0673e5e550f"
116
+ - Digest username="Airplay", realm="AirPlay", uri="/scrub", nonce="MTMxODUwODU4MyAx+UiV/7xCkP81VM4Y1S/G",
117
+ nc=00000000, cnonce="03d64d4bfe4b68f371eef278bea6efd1", response="de139d04d199649e1d4e9e9d96ec3f80"
118
118
  response: !ruby/struct:VCR::Response
119
119
  status: !ruby/struct:VCR::ResponseStatus
120
120
  code: 200
121
121
  message: OK
122
122
  headers:
123
123
  date:
124
- - Thu, 13 Oct 2011 01:40:53 GMT
124
+ - Thu, 13 Oct 2011 12:23:08 GMT
125
125
  content-type:
126
126
  - text/parameters
127
127
  content-length:
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://192.168.1.101:7000/play
5
+ uri: http://mocktv.local:7000/play
6
6
  body: ! 'Content-Location: http://www.yo-yo.org/mp4/yu.mp4
7
7
 
8
8
  Start-Position: 0
@@ -21,7 +21,7 @@
21
21
  message: OK
22
22
  headers:
23
23
  date:
24
- - Thu, 13 Oct 2011 01:39:12 GMT
24
+ - Thu, 13 Oct 2011 12:31:19 GMT
25
25
  content-length:
26
26
  - '0'
27
27
  body: !!null
@@ -30,7 +30,7 @@
30
30
  - !ruby/struct:VCR::HTTPInteraction
31
31
  request: !ruby/struct:VCR::Request
32
32
  method: :post
33
- uri: http://192.168.1.101:7000/rate?value=0
33
+ uri: http://mocktv.local:7000/rate?value=0
34
34
  body: !!null
35
35
  headers:
36
36
  user-agent:
@@ -45,7 +45,7 @@
45
45
  message: OK
46
46
  headers:
47
47
  date:
48
- - Thu, 13 Oct 2011 01:39:12 GMT
48
+ - Thu, 13 Oct 2011 12:31:24 GMT
49
49
  content-length:
50
50
  - '0'
51
51
  body: !!null
@@ -54,7 +54,7 @@
54
54
  - !ruby/struct:VCR::HTTPInteraction
55
55
  request: !ruby/struct:VCR::Request
56
56
  method: :post
57
- uri: http://192.168.1.101:7000/rate?value=1
57
+ uri: http://mocktv.local:7000/rate?value=1
58
58
  body: !!null
59
59
  headers:
60
60
  user-agent:
@@ -69,7 +69,7 @@
69
69
  message: OK
70
70
  headers:
71
71
  date:
72
- - Thu, 13 Oct 2011 01:39:12 GMT
72
+ - Thu, 13 Oct 2011 12:31:29 GMT
73
73
  content-length:
74
74
  - '0'
75
75
  body: !!null
@@ -78,7 +78,7 @@
78
78
  - !ruby/struct:VCR::HTTPInteraction
79
79
  request: !ruby/struct:VCR::Request
80
80
  method: :get
81
- uri: http://192.168.1.101:7000/scrub
81
+ uri: http://mocktv.local:7000/scrub
82
82
  body: !!null
83
83
  headers:
84
84
  user-agent:
@@ -95,14 +95,14 @@
95
95
  message: OK
96
96
  headers:
97
97
  date:
98
- - Thu, 13 Oct 2011 01:39:12 GMT
98
+ - Thu, 13 Oct 2011 12:31:34 GMT
99
99
  content-type:
100
100
  - text/parameters
101
101
  content-length:
102
- - '38'
103
- body: ! 'duration: 0.000000
102
+ - '40'
103
+ body: ! 'duration: 189.321671
104
104
 
105
- position: 0.000000
105
+ position: 8.553059
106
106
 
107
107
  '
108
108
  http_version: '1.1'
@@ -110,7 +110,7 @@
110
110
  - !ruby/struct:VCR::HTTPInteraction
111
111
  request: !ruby/struct:VCR::Request
112
112
  method: :get
113
- uri: http://192.168.1.101:7000/scrub
113
+ uri: http://mocktv.local:7000/scrub
114
114
  body: !!null
115
115
  headers:
116
116
  user-agent:
@@ -127,14 +127,14 @@
127
127
  message: OK
128
128
  headers:
129
129
  date:
130
- - Thu, 13 Oct 2011 01:39:12 GMT
130
+ - Thu, 13 Oct 2011 12:31:39 GMT
131
131
  content-type:
132
132
  - text/parameters
133
133
  content-length:
134
- - '38'
135
- body: ! 'duration: 0.000000
134
+ - '41'
135
+ body: ! 'duration: 189.321671
136
136
 
137
- position: 0.000000
137
+ position: 13.649197
138
138
 
139
139
  '
140
140
  http_version: '1.1'
@@ -142,7 +142,7 @@
142
142
  - !ruby/struct:VCR::HTTPInteraction
143
143
  request: !ruby/struct:VCR::Request
144
144
  method: :get
145
- uri: http://192.168.1.101:7000/scrub
145
+ uri: http://mocktv.local:7000/scrub
146
146
  body: !!null
147
147
  headers:
148
148
  user-agent:
@@ -159,14 +159,14 @@
159
159
  message: OK
160
160
  headers:
161
161
  date:
162
- - Thu, 13 Oct 2011 01:39:12 GMT
162
+ - Thu, 13 Oct 2011 12:31:44 GMT
163
163
  content-type:
164
164
  - text/parameters
165
165
  content-length:
166
- - '38'
167
- body: ! 'duration: 0.000000
166
+ - '41'
167
+ body: ! 'duration: 189.321671
168
168
 
169
- position: 0.000000
169
+ position: 18.645428
170
170
 
171
171
  '
172
172
  http_version: '1.1'
@@ -174,7 +174,7 @@
174
174
  - !ruby/struct:VCR::HTTPInteraction
175
175
  request: !ruby/struct:VCR::Request
176
176
  method: :post
177
- uri: http://192.168.1.101:7000/scrub?position=0
177
+ uri: http://mocktv.local:7000/scrub?position=18
178
178
  body: !!null
179
179
  headers:
180
180
  user-agent:
@@ -189,7 +189,7 @@
189
189
  message: OK
190
190
  headers:
191
191
  date:
192
- - Thu, 13 Oct 2011 01:39:12 GMT
192
+ - Thu, 13 Oct 2011 12:31:49 GMT
193
193
  content-length:
194
194
  - '0'
195
195
  body: !!null
@@ -198,7 +198,7 @@
198
198
  - !ruby/struct:VCR::HTTPInteraction
199
199
  request: !ruby/struct:VCR::Request
200
200
  method: :post
201
- uri: http://192.168.1.101:7000/stop
201
+ uri: http://mocktv.local:7000/stop
202
202
  body: !!null
203
203
  headers:
204
204
  user-agent:
@@ -213,7 +213,7 @@
213
213
  message: OK
214
214
  headers:
215
215
  date:
216
- - Thu, 13 Oct 2011 01:39:12 GMT
216
+ - Thu, 13 Oct 2011 12:31:54 GMT
217
217
  content-length:
218
218
  - '0'
219
219
  body: !!null
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://192.168.1.101:7000/scrub
5
+ uri: http://mocktv.local:7000/scrub
6
6
  body: !!null
7
7
  headers:
8
8
  user-agent:
@@ -19,7 +19,7 @@
19
19
  message: OK
20
20
  headers:
21
21
  date:
22
- - Thu, 13 Oct 2011 01:39:13 GMT
22
+ - Thu, 13 Oct 2011 12:33:12 GMT
23
23
  content-type:
24
24
  - text/parameters
25
25
  content-length:
@@ -34,7 +34,7 @@
34
34
  - !ruby/struct:VCR::HTTPInteraction
35
35
  request: !ruby/struct:VCR::Request
36
36
  method: :get
37
- uri: http://192.168.1.101:7000/scrub
37
+ uri: http://mocktv.local:7000/scrub
38
38
  body: !!null
39
39
  headers:
40
40
  user-agent:
@@ -51,7 +51,7 @@
51
51
  message: OK
52
52
  headers:
53
53
  date:
54
- - Thu, 13 Oct 2011 01:39:13 GMT
54
+ - Thu, 13 Oct 2011 12:33:17 GMT
55
55
  content-type:
56
56
  - text/parameters
57
57
  content-length:
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://192.168.1.101:7000/play
5
+ uri: http://mocktv.local:7000/play
6
6
  body: ! 'Content-Location: http://www.yo-yo.org/mp4/yu.mp4
7
7
 
8
8
  Start-Position: 0
@@ -21,7 +21,7 @@
21
21
  message: OK
22
22
  headers:
23
23
  date:
24
- - Thu, 13 Oct 2011 01:39:13 GMT
24
+ - Thu, 13 Oct 2011 12:33:43 GMT
25
25
  content-length:
26
26
  - '0'
27
27
  body: !!null
@@ -30,7 +30,7 @@
30
30
  - !ruby/struct:VCR::HTTPInteraction
31
31
  request: !ruby/struct:VCR::Request
32
32
  method: :get
33
- uri: http://192.168.1.101:7000/scrub
33
+ uri: http://mocktv.local:7000/scrub
34
34
  body: !!null
35
35
  headers:
36
36
  user-agent:
@@ -47,14 +47,14 @@
47
47
  message: OK
48
48
  headers:
49
49
  date:
50
- - Thu, 13 Oct 2011 01:39:13 GMT
50
+ - Thu, 13 Oct 2011 12:33:48 GMT
51
51
  content-type:
52
52
  - text/parameters
53
53
  content-length:
54
- - '38'
55
- body: ! 'duration: 0.000000
54
+ - '40'
55
+ body: ! 'duration: 189.321671
56
56
 
57
- position: 0.000000
57
+ position: 3.518487
58
58
 
59
59
  '
60
60
  http_version: '1.1'
@@ -62,7 +62,7 @@
62
62
  - !ruby/struct:VCR::HTTPInteraction
63
63
  request: !ruby/struct:VCR::Request
64
64
  method: :post
65
- uri: http://192.168.1.101:7000/scrub?position=0
65
+ uri: http://mocktv.local:7000/scrub?position=94
66
66
  body: !!null
67
67
  headers:
68
68
  user-agent:
@@ -77,7 +77,7 @@
77
77
  message: OK
78
78
  headers:
79
79
  date:
80
- - Thu, 13 Oct 2011 01:39:13 GMT
80
+ - Thu, 13 Oct 2011 12:33:53 GMT
81
81
  content-length:
82
82
  - '0'
83
83
  body: !!null
@@ -86,7 +86,7 @@
86
86
  - !ruby/struct:VCR::HTTPInteraction
87
87
  request: !ruby/struct:VCR::Request
88
88
  method: :get
89
- uri: http://192.168.1.101:7000/scrub
89
+ uri: http://mocktv.local:7000/scrub
90
90
  body: !!null
91
91
  headers:
92
92
  user-agent:
@@ -103,14 +103,14 @@
103
103
  message: OK
104
104
  headers:
105
105
  date:
106
- - Thu, 13 Oct 2011 01:39:13 GMT
106
+ - Thu, 13 Oct 2011 12:33:58 GMT
107
107
  content-type:
108
108
  - text/parameters
109
109
  content-length:
110
- - '38'
111
- body: ! 'duration: 0.000000
110
+ - '41'
111
+ body: ! 'duration: 189.321671
112
112
 
113
- position: 0.000000
113
+ position: 98.691772
114
114
 
115
115
  '
116
116
  http_version: '1.1'
@@ -118,7 +118,7 @@
118
118
  - !ruby/struct:VCR::HTTPInteraction
119
119
  request: !ruby/struct:VCR::Request
120
120
  method: :post
121
- uri: http://192.168.1.101:7000/scrub?position=0
121
+ uri: http://mocktv.local:7000/scrub?position=94
122
122
  body: !!null
123
123
  headers:
124
124
  user-agent:
@@ -133,7 +133,7 @@
133
133
  message: OK
134
134
  headers:
135
135
  date:
136
- - Thu, 13 Oct 2011 01:39:13 GMT
136
+ - Thu, 13 Oct 2011 12:34:04 GMT
137
137
  content-length:
138
138
  - '0'
139
139
  body: !!null
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://192.168.1.101:7000/play
5
+ uri: http://mocktv.local:7000/play
6
6
  body: ! 'Content-Location: http://www.robtowns.com/music/blind_willie.mp3
7
7
 
8
8
  Start-Position: 0
@@ -21,7 +21,7 @@
21
21
  message: OK
22
22
  headers:
23
23
  date:
24
- - Thu, 13 Oct 2011 01:39:12 GMT
24
+ - Thu, 13 Oct 2011 12:31:59 GMT
25
25
  content-length:
26
26
  - '0'
27
27
  body: !!null
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :put
5
- uri: http://192.168.1.101:7000/photo
5
+ uri: http://mocktv.local:7000/photo
6
6
  body: !binary |-
7
7
  R0lGODdhIANYAuMAAMzMzJaWlr6+vrGxsaOjo5ycnLe3t8XFxaqqqgAAAAAA
8
8
  AAAAAAAAAAAAAAAAAAAAACwAAAAAIANYAgAE/hDISau9OOvNu/9gKI5kaZ5o
@@ -100,7 +100,7 @@
100
100
  message: OK
101
101
  headers:
102
102
  date:
103
- - Thu, 13 Oct 2011 01:39:10 GMT
103
+ - Thu, 13 Oct 2011 12:28:59 GMT
104
104
  content-length:
105
105
  - '0'
106
106
  body: !!null
@@ -109,7 +109,7 @@
109
109
  - !ruby/struct:VCR::HTTPInteraction
110
110
  request: !ruby/struct:VCR::Request
111
111
  method: :put
112
- uri: http://192.168.1.101:7000/photo
112
+ uri: http://mocktv.local:7000/photo
113
113
  body: !binary |-
114
114
  R0lGODdhIANYAuMAAMzMzJaWlr6+vrGxsaOjo5ycnLe3t8XFxaqqqgAAAAAA
115
115
  AAAAAAAAAAAAAAAAAAAAACwAAAAAIANYAgAE/hDISau9OOvNu/9gKI5kaZ5o
@@ -207,7 +207,7 @@
207
207
  message: OK
208
208
  headers:
209
209
  date:
210
- - Thu, 13 Oct 2011 01:39:10 GMT
210
+ - Thu, 13 Oct 2011 12:29:04 GMT
211
211
  content-length:
212
212
  - '0'
213
213
  body: !!null
@@ -227,13 +227,11 @@
227
227
  server:
228
228
  - nginx/0.8.36
229
229
  date:
230
- - Thu, 13 Oct 2011 01:39:10 GMT
230
+ - Thu, 13 Oct 2011 12:29:04 GMT
231
231
  content-type:
232
232
  - image/jpeg
233
233
  connection:
234
234
  - keep-alive
235
- vary:
236
- - Accept-Encoding,User-Agent
237
235
  last-modified:
238
236
  - Thu, 19 May 2011 23:43:00 GMT
239
237
  etag:
@@ -243,7 +241,9 @@
243
241
  cache-control:
244
242
  - public, must-revalidate, proxy-revalidate
245
243
  expires:
246
- - Thu, 11 Oct 2012 09:59:38 GMT
244
+ - Fri, 12 Oct 2012 12:21:36 GMT
245
+ vary:
246
+ - User-Agent
247
247
  pragma:
248
248
  - public
249
249
  x-powered-by:
@@ -436,7 +436,7 @@
436
436
  - !ruby/struct:VCR::HTTPInteraction
437
437
  request: !ruby/struct:VCR::Request
438
438
  method: :put
439
- uri: http://192.168.1.101:7000/photo
439
+ uri: http://mocktv.local:7000/photo
440
440
  body: !binary |-
441
441
  /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL
442
442
  DBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/
@@ -631,7 +631,7 @@
631
631
  message: OK
632
632
  headers:
633
633
  date:
634
- - Thu, 13 Oct 2011 01:39:11 GMT
634
+ - Thu, 13 Oct 2011 12:29:11 GMT
635
635
  content-length:
636
636
  - '0'
637
637
  body: !!null
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :put
5
- uri: http://192.168.1.101:7000/photo
5
+ uri: http://mocktv.local:7000/photo
6
6
  body: !binary |-
7
7
  R0lGODdhAAXQAuMAAMzMzJaWlsXFxb6+vre3t6Ojo7GxsZycnKqqqgAAAAAA
8
8
  AAAAAAAAAAAAAAAAAAAAACwAAAAAAAXQAgAE/hDISau9OOvNu/9gKI5kaZ5o
@@ -136,7 +136,7 @@
136
136
  message: OK
137
137
  headers:
138
138
  date:
139
- - Thu, 13 Oct 2011 01:39:11 GMT
139
+ - Thu, 13 Oct 2011 12:29:16 GMT
140
140
  content-length:
141
141
  - '0'
142
142
  body: !!null
@@ -145,7 +145,7 @@
145
145
  - !ruby/struct:VCR::HTTPInteraction
146
146
  request: !ruby/struct:VCR::Request
147
147
  method: :put
148
- uri: http://192.168.1.101:7000/photo
148
+ uri: http://mocktv.local:7000/photo
149
149
  body: !binary |-
150
150
  R0lGODdhAAXQAuMAAMzMzJaWlsXFxb6+vre3t6Ojo7GxsZycnKqqqgAAAAAA
151
151
  AAAAAAAAAAAAAAAAAAAAACwAAAAAAAXQAgAE/hDISau9OOvNu/9gKI5kaZ5o
@@ -279,7 +279,7 @@
279
279
  message: OK
280
280
  headers:
281
281
  date:
282
- - Thu, 13 Oct 2011 01:39:11 GMT
282
+ - Thu, 13 Oct 2011 12:29:21 GMT
283
283
  content-length:
284
284
  - '0'
285
285
  body: !!null
@@ -288,7 +288,7 @@
288
288
  - !ruby/struct:VCR::HTTPInteraction
289
289
  request: !ruby/struct:VCR::Request
290
290
  method: :put
291
- uri: http://192.168.1.101:7000/photo
291
+ uri: http://mocktv.local:7000/photo
292
292
  body: !binary |-
293
293
  R0lGODdhAAXQAuMAAMzMzJaWlsXFxb6+vre3t6Ojo7GxsZycnKqqqgAAAAAA
294
294
  AAAAAAAAAAAAAAAAAAAAACwAAAAAAAXQAgAE/hDISau9OOvNu/9gKI5kaZ5o
@@ -422,7 +422,7 @@
422
422
  message: OK
423
423
  headers:
424
424
  date:
425
- - Thu, 13 Oct 2011 01:39:11 GMT
425
+ - Thu, 13 Oct 2011 12:29:26 GMT
426
426
  content-length:
427
427
  - '0'
428
428
  body: !!null
@@ -431,7 +431,7 @@
431
431
  - !ruby/struct:VCR::HTTPInteraction
432
432
  request: !ruby/struct:VCR::Request
433
433
  method: :put
434
- uri: http://192.168.1.101:7000/photo
434
+ uri: http://mocktv.local:7000/photo
435
435
  body: !binary |-
436
436
  R0lGODdhAAXQAuMAAMzMzJaWlsXFxb6+vre3t6Ojo7GxsZycnKqqqgAAAAAA
437
437
  AAAAAAAAAAAAAAAAAAAAACwAAAAAAAXQAgAE/hDISau9OOvNu/9gKI5kaZ5o
@@ -565,7 +565,7 @@
565
565
  message: OK
566
566
  headers:
567
567
  date:
568
- - Thu, 13 Oct 2011 01:39:11 GMT
568
+ - Thu, 13 Oct 2011 12:29:31 GMT
569
569
  content-length:
570
570
  - '0'
571
571
  body: !!null
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://192.168.1.101:7000/play
5
+ uri: http://mocktv.local:7000/play
6
6
  body: ! 'Content-Location: http://www.yo-yo.org/mp4/yu.mp4
7
7
 
8
8
  Start-Position: 0
@@ -21,7 +21,7 @@
21
21
  message: OK
22
22
  headers:
23
23
  date:
24
- - Thu, 13 Oct 2011 01:39:12 GMT
24
+ - Thu, 13 Oct 2011 12:30:19 GMT
25
25
  content-length:
26
26
  - '0'
27
27
  body: !!null
@@ -8,7 +8,7 @@ module MockedBrowser
8
8
  attr_reader :servers
9
9
 
10
10
  def self.browse
11
- @servers = [Airplay::Server::Node.new("Mock TV", ".local", "192.168.1.101", 7000)]
11
+ @servers = [Airplay::Server::Node.new("Mock TV", ".local", "mocktv.local", 7000)]
12
12
  end
13
13
 
14
14
  def self.find_by_name(name)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airplay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dnssd
16
- requirement: &70151451240760 !ruby/object:Gem::Requirement
16
+ requirement: &70366161447460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70151451240760
24
+ version_requirements: *70366161447460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: net-http-persistent
27
- requirement: &70151451239920 !ruby/object:Gem::Requirement
27
+ requirement: &70366161445920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70151451239920
35
+ version_requirements: *70366161445920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: net-http-digest_auth
38
- requirement: &70151451239420 !ruby/object:Gem::Requirement
38
+ requirement: &70366161444860 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70151451239420
46
+ version_requirements: *70366161444860
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cutest
49
- requirement: &70151451238800 !ruby/object:Gem::Requirement
49
+ requirement: &70366161443740 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70151451238800
57
+ version_requirements: *70366161443740
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: capybara
60
- requirement: &70151451238080 !ruby/object:Gem::Requirement
60
+ requirement: &70366161442500 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70151451238080
68
+ version_requirements: *70366161442500
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: fakeweb
71
- requirement: &70151451237360 !ruby/object:Gem::Requirement
71
+ requirement: &70366161432100 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70151451237360
79
+ version_requirements: *70366161432100
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: vcr
82
- requirement: &70151451236640 !ruby/object:Gem::Requirement
82
+ requirement: &70366161431140 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70151451236640
90
+ version_requirements: *70366161431140
91
91
  description: Send image/video to an airplay enabled device
92
92
  email:
93
93
  - yo@brunoaguirre.com