<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Jan 26, 2017 at 11:52 PM, fredvs <span dir="ltr"><<a href="mailto:fiens@hotmail.com" target="_blank">fiens@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello Silvio:<br>
<br>
Yes, we are on the good way.<br></blockquote><div><br></div><div>Awesome. :-)</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Following your advice, here from https-url-opus the result of :<br>
<br>
var<br>
  BufferURL: tbytes;<br>
<br>
  setlength(BufferURL, PipeBufferSize);<br>
  CreatePipeHandles(InHandle, OutHandle, PipeBufferSize);<br>
  InPipe := TInputPipeStream.Create(InHand<wbr>le);<br>
  OutPipe := TOutputPipeStream.Create(OutHa<wbr>ndle);<br>
  httpget := TThreadHttpGetter.Create(url, OutPipe);<br>
  InPipe.Read(BufferURL[0],PipeB<wbr>ufferSize);<br>
<br>
  writeln(tencoding.utf8.getstri<wbr>ng(BufferURL));<br>
<br>
======><br>
<br>
Lavf57.57.100  encoder=Lavc57.65.100 libopus title=Be Thankful%artist=For<br>
What You GotWilliam De Vau$album=Blaxploitation Vol.3 The Payba<br>
date=1997TRACKNUMBER=11OggS</blockquote><div>[...]<br></div><div><br></div><div>Some streams requires you set its cursor to 0 before writing/reading buffer, so you need to check it:</div><div><br></div><div><div>  CreatePipeHandles(InHandle, OutHandle, PipeBufferSize);</div><div>  InPipe := TInputPipeStream.Create(<wbr>InHandle);</div><div>  OutPipe := TOutputPipeStream.Create(<wbr>OutHandle);</div><div>  httpget := TThreadHttpGetter.Create(url, OutPipe);</div><div>  OutPipe.Seek(0, soBeginning);</div><div>  InPipe.Seek(0, soBeginning);</div><div>  InPipe.Read(BufferURL[0],<wbr>PipeBufferSize);</div></div><div><br></div><div>Notice tencoding was just for testing. :-)<br></div><div><br></div></div>-- <br><div class="m_327407856095400017gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>