Sha256: 3e8fdf491b30cb2e08d43037e0ad9e1bec15ab2317ea6f5b815f96dac63cf09d
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
require 'spec_helper' require 'sdp/description' describe "Create descriptions" do let(:session) do session = SDP::Description.new session.protocol_version = 0 session.username = "jdoe" session.id = 2890844526 session.version = 2890842807 session.network_type = :IN session.address_type = :IP4 session.unicast_address = "10.47.16.5" session.name = "SDP Seminar" session.information = "A Seminar on the session description protocol" session.uri = "http://www.example.com/seminars/sdp.pdf" session.email_address = "j.doe@example.com (Jane Doe)" session.connection_network_type = "IN" session.connection_address_type = "IP4" session.connection_address = "224.2.17.12/127" session.start_time = 2873397496 session.stop_time = 2873404696 session.attributes << { :attribute => "recvonly" } session.media_sections << { :media => "audio", :port => 49170, :protocol => "RTP/AVP", :format => 0 } session.media_sections << { :media => "video", :port => 51372, :protocol => "RTP/AVP", :format => 99, :attributes => [{ :attribute => "rtpmap", :value => "99 h263-1998/90000" }] } session end it "can build programmatically" do example_file = File.read(File.dirname(__FILE__) + "/../support/sdp_file.txt") session.to_s.should == example_file end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sdp-0.2.9 | spec/integration/builds_descriptions_spec.rb |