Sha256: 84453de826924732fd07c38456a0afdd61c0d52b62e96814e2762ad81d7e4d86
Contents?: true
Size: 935 Bytes
Versions: 32
Compression:
Stored size: 935 Bytes
Contents
Given /^an RTSP server at "([^"]*)" and port (\d+)$/ do |ip_address, port| @rtp_port = port.to_i @client = RTSP::Client.new(ip_address) do |connection, capturer| capturer.rtp_port = @rtp_port end end Given /^an RTSP server at "([^"]*)" and port (\d+) and URL "([^"]*)"$/ do |ip_address, port, path| uri = "rtsp://#{ip_address}:#{port}#{path}" @rtp_port = port @client = RTSP::Client.new(uri) do |connection, capturer| capturer.rtp_port = @rtp_port end end When /^I play a stream from that server$/ do @play_result = lambda { @client.play } end Then /^I should not receive any errors$/ do @play_result.should_not raise_error end Then /^I should receive data on the same port$/ do @client.capturer.rtp_file.should_not be_empty end Given /^I know what the describe response looks like$/ do @response_text = @fake_server.describe end When /^I ask the server to describe$/ do puts @client.describe end
Version data entries
32 entries across 32 versions & 2 rubygems