rtsp 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.rdoc +4 -0
- data/Gemfile.lock +1 -1
- data/lib/rtsp/version.rb +1 -1
- metadata +37 -38
- data/gemspec.yml +0 -31
- data/nsm_test.rb +0 -26
- data/sarix_test.rb +0 -23
- data/soma_test.rb +0 -39
data/ChangeLog.rdoc
CHANGED
data/Gemfile.lock
CHANGED
data/lib/rtsp/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtsp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,20 +11,9 @@ bindir: bin
|
|
11
11
|
cert_chain: []
|
12
12
|
date: 2011-04-14 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: sdp
|
16
|
-
requirement: &2156988080 !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 0.2.0
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: *2156988080
|
25
14
|
- !ruby/object:Gem::Dependency
|
26
15
|
name: bundler
|
27
|
-
requirement: &
|
16
|
+
requirement: &2156826340 !ruby/object:Gem::Requirement
|
28
17
|
none: false
|
29
18
|
requirements:
|
30
19
|
- - ~>
|
@@ -32,10 +21,10 @@ dependencies:
|
|
32
21
|
version: 1.0.0
|
33
22
|
type: :development
|
34
23
|
prerelease: false
|
35
|
-
version_requirements: *
|
24
|
+
version_requirements: *2156826340
|
36
25
|
- !ruby/object:Gem::Dependency
|
37
26
|
name: code_statistics
|
38
|
-
requirement: &
|
27
|
+
requirement: &2156825760 !ruby/object:Gem::Requirement
|
39
28
|
none: false
|
40
29
|
requirements:
|
41
30
|
- - ~>
|
@@ -43,10 +32,10 @@ dependencies:
|
|
43
32
|
version: 0.2.13
|
44
33
|
type: :development
|
45
34
|
prerelease: false
|
46
|
-
version_requirements: *
|
35
|
+
version_requirements: *2156825760
|
47
36
|
- !ruby/object:Gem::Dependency
|
48
37
|
name: metric_fu
|
49
|
-
requirement: &
|
38
|
+
requirement: &2156825000 !ruby/object:Gem::Requirement
|
50
39
|
none: false
|
51
40
|
requirements:
|
52
41
|
- - ! '>='
|
@@ -54,10 +43,10 @@ dependencies:
|
|
54
43
|
version: 2.0.0
|
55
44
|
type: :development
|
56
45
|
prerelease: false
|
57
|
-
version_requirements: *
|
46
|
+
version_requirements: *2156825000
|
58
47
|
- !ruby/object:Gem::Dependency
|
59
48
|
name: ore
|
60
|
-
requirement: &
|
49
|
+
requirement: &2156797700 !ruby/object:Gem::Requirement
|
61
50
|
none: false
|
62
51
|
requirements:
|
63
52
|
- - ~>
|
@@ -65,10 +54,10 @@ dependencies:
|
|
65
54
|
version: 0.7.2
|
66
55
|
type: :development
|
67
56
|
prerelease: false
|
68
|
-
version_requirements: *
|
57
|
+
version_requirements: *2156797700
|
69
58
|
- !ruby/object:Gem::Dependency
|
70
59
|
name: ore-core
|
71
|
-
requirement: &
|
60
|
+
requirement: &2156797060 !ruby/object:Gem::Requirement
|
72
61
|
none: false
|
73
62
|
requirements:
|
74
63
|
- - ~>
|
@@ -76,10 +65,10 @@ dependencies:
|
|
76
65
|
version: 0.1.5
|
77
66
|
type: :development
|
78
67
|
prerelease: false
|
79
|
-
version_requirements: *
|
68
|
+
version_requirements: *2156797060
|
80
69
|
- !ruby/object:Gem::Dependency
|
81
70
|
name: ore-tasks
|
82
|
-
requirement: &
|
71
|
+
requirement: &2156796360 !ruby/object:Gem::Requirement
|
83
72
|
none: false
|
84
73
|
requirements:
|
85
74
|
- - ~>
|
@@ -87,10 +76,10 @@ dependencies:
|
|
87
76
|
version: 0.5.0
|
88
77
|
type: :development
|
89
78
|
prerelease: false
|
90
|
-
version_requirements: *
|
79
|
+
version_requirements: *2156796360
|
91
80
|
- !ruby/object:Gem::Dependency
|
92
81
|
name: rake
|
93
|
-
requirement: &
|
82
|
+
requirement: &2156795580 !ruby/object:Gem::Requirement
|
94
83
|
none: false
|
95
84
|
requirements:
|
96
85
|
- - ~>
|
@@ -98,10 +87,10 @@ dependencies:
|
|
98
87
|
version: 0.8.7
|
99
88
|
type: :development
|
100
89
|
prerelease: false
|
101
|
-
version_requirements: *
|
90
|
+
version_requirements: *2156795580
|
102
91
|
- !ruby/object:Gem::Dependency
|
103
92
|
name: rspec
|
104
|
-
requirement: &
|
93
|
+
requirement: &2156794880 !ruby/object:Gem::Requirement
|
105
94
|
none: false
|
106
95
|
requirements:
|
107
96
|
- - ~>
|
@@ -109,10 +98,10 @@ dependencies:
|
|
109
98
|
version: 2.5.0
|
110
99
|
type: :development
|
111
100
|
prerelease: false
|
112
|
-
version_requirements: *
|
101
|
+
version_requirements: *2156794880
|
113
102
|
- !ruby/object:Gem::Dependency
|
114
103
|
name: simplecov
|
115
|
-
requirement: &
|
104
|
+
requirement: &2156794100 !ruby/object:Gem::Requirement
|
116
105
|
none: false
|
117
106
|
requirements:
|
118
107
|
- - ! '>='
|
@@ -120,10 +109,10 @@ dependencies:
|
|
120
109
|
version: 0.4.0
|
121
110
|
type: :development
|
122
111
|
prerelease: false
|
123
|
-
version_requirements: *
|
112
|
+
version_requirements: *2156794100
|
124
113
|
- !ruby/object:Gem::Dependency
|
125
114
|
name: yard
|
126
|
-
requirement: &
|
115
|
+
requirement: &2156793400 !ruby/object:Gem::Requirement
|
127
116
|
none: false
|
128
117
|
requirements:
|
129
118
|
- - ~>
|
@@ -131,7 +120,18 @@ dependencies:
|
|
131
120
|
version: 0.6.0
|
132
121
|
type: :development
|
133
122
|
prerelease: false
|
134
|
-
version_requirements: *
|
123
|
+
version_requirements: *2156793400
|
124
|
+
- !ruby/object:Gem::Dependency
|
125
|
+
name: sdp
|
126
|
+
requirement: &2156792700 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.2.2
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: *2156792700
|
135
135
|
description: ! 'This library intends to follow the RTSP RFC document (2326) to allow
|
136
136
|
for working with RTSP servers. At this point, it''s up to you to parse the data
|
137
137
|
from a play call, but we''ll get there. ...eventually.
|
@@ -141,12 +141,13 @@ description: ! 'This library intends to follow the RTSP RFC document (2326) to a
|
|
141
141
|
RTSP: http://www.ietf.org/rfc/rfc2326.txt'
|
142
142
|
email:
|
143
143
|
- steve.loveless@gmail.com, mkiby@gmail.com
|
144
|
-
executables:
|
144
|
+
executables:
|
145
|
+
- rtsp_client
|
145
146
|
extensions: []
|
146
147
|
extra_rdoc_files:
|
147
|
-
- README.rdoc
|
148
148
|
- ChangeLog.rdoc
|
149
149
|
- LICENSE.rdoc
|
150
|
+
- README.rdoc
|
150
151
|
files:
|
151
152
|
- .document
|
152
153
|
- .infinity_test
|
@@ -167,7 +168,6 @@ files:
|
|
167
168
|
- features/step_definitions/control_streams_as_client_steps.rb
|
168
169
|
- features/support/env.rb
|
169
170
|
- features/support/hooks.rb
|
170
|
-
- gemspec.yml
|
171
171
|
- lib/ext/logger.rb
|
172
172
|
- lib/rtsp.rb
|
173
173
|
- lib/rtsp/capturer.rb
|
@@ -179,10 +179,7 @@ files:
|
|
179
179
|
- lib/rtsp/response.rb
|
180
180
|
- lib/rtsp/transport_parser.rb
|
181
181
|
- lib/rtsp/version.rb
|
182
|
-
- nsm_test.rb
|
183
182
|
- rtsp.gemspec
|
184
|
-
- sarix_test.rb
|
185
|
-
- soma_test.rb
|
186
183
|
- spec/.rspec
|
187
184
|
- spec/rtsp/client_spec.rb
|
188
185
|
- spec/rtsp/helpers_spec.rb
|
@@ -221,9 +218,11 @@ signing_key:
|
|
221
218
|
specification_version: 3
|
222
219
|
summary: Library to allow RTSP streaming from RTSP-enabled devices.
|
223
220
|
test_files:
|
221
|
+
- spec/rtsp_spec.rb
|
224
222
|
- spec/rtsp/client_spec.rb
|
225
223
|
- spec/rtsp/helpers_spec.rb
|
226
224
|
- spec/rtsp/message_spec.rb
|
227
225
|
- spec/rtsp/response_spec.rb
|
228
226
|
- spec/rtsp/transport_parser_spec.rb
|
229
227
|
- spec/rtsp_spec.rb
|
228
|
+
has_rdoc:
|
data/gemspec.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
name: rtsp
|
2
|
-
summary: "Library to allow RTSP streaming from RTSP-enabled devices."
|
3
|
-
description: "This library intends to follow the RTSP RFC document (2326) to allow for working
|
4
|
-
with RTSP servers. At this point, it's up to you to parse the data from a play
|
5
|
-
call, but we'll get there. ...eventually.
|
6
|
-
|
7
|
-
For more information
|
8
|
-
|
9
|
-
RTSP: http://www.ietf.org/rfc/rfc2326.txt"
|
10
|
-
license: MIT
|
11
|
-
authors: Steve Loveless, Mike Kirby
|
12
|
-
email: steve.loveless@gmail.com, mkiby@gmail.com
|
13
|
-
homepage: http://rubygems.org/gems/rtsp
|
14
|
-
has_yard: true
|
15
|
-
bindir: 'bin'
|
16
|
-
executables: 'bin/rtsp_client'
|
17
|
-
|
18
|
-
dependencies:
|
19
|
-
sdp: ~> 0.2.0
|
20
|
-
|
21
|
-
development_dependencies:
|
22
|
-
bundler: ~> 1.0.0
|
23
|
-
code_statistics: ~> 0.2.13
|
24
|
-
metric_fu: '>= 2.0.0'
|
25
|
-
ore: ~> 0.7.2
|
26
|
-
ore-core: ~> 0.1.5
|
27
|
-
ore-tasks: ~> 0.5.0
|
28
|
-
rake: ~> 0.8.7
|
29
|
-
rspec: ~> 2.5.0
|
30
|
-
simplecov: '>= 0.4.0'
|
31
|
-
yard: ~> 0.6.0
|
data/nsm_test.rb
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
require './lib/rtsp/client'
|
2
|
-
|
3
|
-
#url = "rtsp://10.221.222.210/?deviceid=uuid:100330fe-5d3e-4a5e-98c7-0000a6504b8c-Camera-1"
|
4
|
-
url = "rtsp://10.221.222.12/?deviceid=uuid:0ed8f1e9-0ce2-987c-4649-db3ae7aa3a04"
|
5
|
-
|
6
|
-
cap_file = File.new("nsm_cap.rtsp", "wb")
|
7
|
-
r = RTSP::Client.new url
|
8
|
-
r.capturer.media_file = cap_file
|
9
|
-
|
10
|
-
r.options
|
11
|
-
r.describe
|
12
|
-
|
13
|
-
media_track = r.media_control_tracks.first
|
14
|
-
puts "media track: #{media_track}"
|
15
|
-
|
16
|
-
aggregate_track = r.aggregate_control_track
|
17
|
-
puts "aggregate track: #{aggregate_track}"
|
18
|
-
|
19
|
-
r.setup media_track
|
20
|
-
r.play aggregate_track
|
21
|
-
sleep 2
|
22
|
-
r.pause aggregate_track
|
23
|
-
sleep 2
|
24
|
-
r.play aggregate_track
|
25
|
-
sleep 2
|
26
|
-
r.teardown aggregate_track
|
data/sarix_test.rb
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
require './lib/rtsp/client'
|
2
|
-
|
3
|
-
cap_file = File.new("sarix_cap.rtsp", "wb")
|
4
|
-
url = "rtsp://10.221.222.129/stream1"
|
5
|
-
r = RTSP::Client.new url
|
6
|
-
r.capturer.media_file = cap_file
|
7
|
-
|
8
|
-
r.options
|
9
|
-
r.describe
|
10
|
-
|
11
|
-
media_track = r.media_control_tracks.first
|
12
|
-
puts "media track: #{media_track}"
|
13
|
-
|
14
|
-
aggregate_track = r.aggregate_control_track
|
15
|
-
puts "aggregate track: #{aggregate_track}"
|
16
|
-
|
17
|
-
r.setup media_track
|
18
|
-
r.play aggregate_track
|
19
|
-
|
20
|
-
sleep 5
|
21
|
-
|
22
|
-
r.teardown media_track
|
23
|
-
|
data/soma_test.rb
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
require './lib/rtsp/client'
|
2
|
-
|
3
|
-
RTSP::Client.log = false
|
4
|
-
|
5
|
-
cap_file = File.new("soma_cap.rtsp", "wb")
|
6
|
-
url = "rtsp://64.202.98.91/sa.sdp"
|
7
|
-
client = RTSP::Client.new(url)
|
8
|
-
client.capturer.media_file = cap_file
|
9
|
-
# client = RTSP::Client.new(url) do |client, capturer|
|
10
|
-
# description = SDP.parse(open("http://test/description.sdp"))
|
11
|
-
# client.timeout = 30
|
12
|
-
# client.socket = TCPSocket.new
|
13
|
-
# client.interleave = true
|
14
|
-
# capturer.file = Tempfile.new "test"
|
15
|
-
# capturer.capture_port = 8555
|
16
|
-
# capturer.protocol = :tcp
|
17
|
-
# end
|
18
|
-
|
19
|
-
client.options
|
20
|
-
client.describe
|
21
|
-
|
22
|
-
media_track = client.media_control_tracks.first
|
23
|
-
puts "media track: #{media_track}"
|
24
|
-
|
25
|
-
aggregate_track = client.aggregate_control_track
|
26
|
-
puts "aggregate track: #{aggregate_track}"
|
27
|
-
|
28
|
-
client.setup media_track
|
29
|
-
#client.setup media_track, :transport => "RTP/AVP;unicast;client_port=9000-9001"
|
30
|
-
#client.setup media_track, :transport => "RTP/AVP/TCP;unicast;interleaved=0-1"
|
31
|
-
#client[media_track].setup
|
32
|
-
#client.media_control_tracks.play
|
33
|
-
client.play aggregate_track
|
34
|
-
sleep 5
|
35
|
-
#client[aggregate_track].play
|
36
|
-
client.teardown aggregate_track
|
37
|
-
|
38
|
-
|
39
|
-
|