[Lazarus] Play video from memory

"Leonardo M. Ramé" l.rame at griensu.com
Thu Mar 5 21:44:53 CET 2015


Yes, you can!.

1) Load your Video to a TStream (TMemoryStream for example).
2) Use TProcess to execute "mplayer -", the "-" is the parameter.
3) Send your stream to the standard input of the process.


El 05/03/15 a las 16:45, aradeonas escibió:
> Thank you Leonardo,
>
> I saw it before but it doesn't seem there is a way to pass memory to it
> or I couldn't find out how.
> Do you know?
>
> Regards,
> Ara
>
> On Thu, Mar 5, 2015, at 11:40 AM, Leonardo M. Ramé wrote:
>> It looks like MPlayer can do this:
>> http://www.mplayerhq.hu/DOCS/HTML/en/streaming.html
>>
>> El 04/03/15 a las 13:29, aradeonas escibió:
>>> Hi,
>>>
>>> Any one know a library or way to buffer video file into memory and then
>>> pass it to player?
>>> Any simple player do the job but it should support a way to open file
>>> from memory.
>>>
>>> Regards,
>>> Ara
>>>
>>
>> --
>> _______________________________________________
>> Lazarus mailing list
>> Lazarus at lists.lazarus.freepascal.org
>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus





More information about the Lazarus mailing list