<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I understand and I would if I could. However, because we are
    embedding the player in our software we need to reuse the players as
    much as possible to avoid issues with resource allocation (we are
    embedding VLC in a Java application). Unfortunately I can only set
    the client port when the medial player is created not when the media
    file is played. Once the client port is set and the media player
    created then it cannot be used with SDP sources. That being said, I
    think I understand what is happening.<br>
    <br>
    In the live555.cpp source in the SessionsSetup( demux_t *p_demux )
    function, the code sends a setup command if we are using RTSP:<br>
    <br>
    <tt>            /* Issue the SETUP */</tt><tt><br>
    </tt><tt>            if( p_sys->rtsp )</tt><tt><br>
    </tt><tt>            {</tt><tt><br>
    </tt><tt>                p_sys->rtsp->sendSetupCommand( *sub,
      default_live555_callback, False,</tt><tt><br>
    </tt><tt>                                               toBool(
      b_rtsp_tcp ),</tt><tt><br>
    </tt><tt>                                               toBool(
      p_sys->b_force_mcast && !b_rtsp_tcp ) );</tt><tt><br>
    </tt><tt>                if( !wait_Live555_response( p_demux ) )</tt><tt><br>
    </tt><br>
    However, the client port is set before this code and after the SDP
    is parsed:<br>
    <br>
    <tt>        if( i_client_port != -1 )</tt><tt><br>
    </tt><tt>        {</tt><tt><br>
    </tt><tt>            sub->setClientPortNum( i_client_port );</tt><tt><br>
    </tt><tt>            i_client_port += 2;</tt><tt><br>
    </tt><tt>        }</tt><tt><br>
    </tt><br>
    It seems to me that the setting of the client port should only be
    done if we intend to send a RTSP SETUP command (inside the
    conditional). Otherwise we should accept what was parsed from the
    SDP. Does this sound correct? If so, I will go ahead and test a
    patch to do just this.<br>
    <br>
    Thoughts? David<br>
    <br>
    <br>
    <div class="moz-signature">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">----------------------------------------------------------------------------</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><b><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red;"
            lang="EN-GB">David R Robison</span></b></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><i><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060;"
            lang="EN-GB">Principal Systems Engineer</span></i></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;"
          lang="EN-GB">O. +1 757 546 3401</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
          style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;
          \" lang="EN-GB">M. +1 757 286 0022</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;t"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";"
          lang="EN-GB"><a href="mailto:david.robison@q-free.com">david.robison@q-free.com</a></span></p>
      <p
        style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;><a
        href="http://www.q-free.com/openroads"><span
        lang=EN-GB style="
        font-size:10.0pt;font-family:"arial","sans-serif";'=""><a class="moz-txt-link-abbreviated" href="http://www.q-free.com/openroads">www.q-free.com/openroads</a></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red">----------------------------------------------------------------------------</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:red;"
          lang="EN-GB">Q-Free Open Roads</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060;"
          lang="EN-GB">103 Watson Road</span></p>
      <p
style="margin-top:0pt;margin-right:0pt;margin-bottom:.0001pt;margin-left:0pt;"><span
style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#002060;"
          lang="EN-GB">Chesapeake VA 23320</span></p>
      <img moz-do-not-send="false"
        src="cid:part2.02030308.07020002@q-free.com">
    </div>
    <div class="moz-cite-prefix">On 6/30/2015 9:14 AM, Ross Finlayson
      wrote:<br>
    </div>
    <blockquote
      cite="mid:5404E0DB-CA89-4A20-8105-51E01944F8EB@live555.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div>
        <blockquote type="cite" class="">
          <div class="">
            <div bgcolor="#FFFFFF" text="#000000" class=""> I have made
              repeated tests and have verified that if I set a client
              port on the command line then I cannot play a SDP file
              that is defining multicast streaming from the camera.</div>
          </div>
        </blockquote>
        <div><br class="">
        </div>
        Patient: “Doctor, it hurts when I do this.”</div>
      <div>Doctor: “Then, don’t do it!”</div>
      <div><br class="">
      </div>
      <div>If you’re asking to play a multicast stream, then you’re
        asking to join a stream that has a given IP multicast address
        *and port number* (both of which are specified in the SDP
        description).  It makes no sense to try to change your port
        number to be something else.  So, don’t do that!</div>
      <br class="">
      <br class="">
      <div apple-content-edited="true" class="">
        <span class="Apple-style-span" style="border-collapse: separate;
          color: rgb(0, 0, 0); font-family: Helvetica; font-style:
          normal; font-variant: normal; font-weight: normal;
          letter-spacing: normal; line-height: normal; orphans: 2;
          text-align: -webkit-auto; text-indent: 0px; text-transform:
          none; white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-border-horizontal-spacing: 0px;
          -webkit-border-vertical-spacing: 0px;
          -webkit-text-decorations-in-effect: none;
          -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
          0px; "><span class="Apple-style-span" style="border-collapse:
            separate; color: rgb(0, 0, 0); font-family: Helvetica;
            font-style: normal; font-variant: normal; font-weight:
            normal; letter-spacing: normal; line-height: normal;
            orphans: 2; text-align: -webkit-auto; text-indent: 0px;
            text-transform: none; white-space: normal; widows: 2;
            word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
            -webkit-border-vertical-spacing: 0px;
            -webkit-text-decorations-in-effect: none;
            -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
            0px; ">Ross Finlayson<br class="">
            Live Networks, Inc.<br class="">
            <a moz-do-not-send="true" href="http://www.live555.com/"
              class="">http://www.live555.com/</a></span></span>
      </div>
      <br class="">
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
<a class="moz-txt-link-freetext" href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>