today's my day of research, it seems.

another task for this same client is to test whether or not a media file exists on a remote server. i've tried to use the "example" out of the perldoc for Net::RTSP (cargo-cult, i know, but it's a start), but there's a subroutine that's not exported referenced in the example:

use Net::RTSP; my $rtsp = new Net::RTSP; my $presentation = $rtsp->initialize($uri); my $stream_uri; $presentation->describe( SuccessCallback => sub { my $response = shift; my ($stream_uri, $transport_method) = + extract_sdp_info($response->content); my $session = $presentation->setup_session($stream_uri); $session->play; } ); $rtsp->run;
and that's the only code sample in the entire perldoc ... the extract_sdp_info() method/sub isn't in the exportables. (i get a "sub not found" warning trying to run that as-is. and i just get back a "1" from $presentation->describe(), even if i feed it a bogus media loction.

i did search the monestary, and RTSP/RTP streaming server in Perl! is about the most helpful node. i did grab the rtsp-ping script mentioned, but it's returning failures, though if i create the SMI files needed, i *can* stream the media in question.

i've not found anything seemingly relevant on the Helix Community site ...

i'm just looking for some analogue to LWP::head() to check for the existence of a media file on the server, but rtsp doesn't work like http.

UPDATE: looks like RTSP::Lite will do the job.


In reply to Net::RTSP and checking for remote files by geektron

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.