realtime stream support
Problem to solve
I want to play real time video stream from TCP.
Intended users
HoloLens developer?
Proposal
I found that there is a MediaInput class, but can't play real time video stream. only play few seconds,such as can't update the stream?
while(true)
{
... other unpack code...
// write video data to stream.
_stream.Write(segment.Array, 0, segment.Count);
}
List<string> options = new()
{
":demux=h265",
":item-category=4"
};
// play video from stream
_mediaPlayer.Media = new Media(new StreamMediaInput(_stream), options.ToArray());
Documentation
more stream api explane or examples is great.
Edited by Xbathy