libvideo icon indicating copy to clipboard operation
libvideo copied to clipboard

Unity 2022.2.1f1 + Android | Download works, but Stream doesn't seem to

Open jakedowns opened this issue 2 years ago • 0 comments

Hello, thanks for the great library,

i'm trying to integrate this into a Unity 2022 project.

So far, i'm able to decode the video and get the uri, but then I have to download the video before i can can pass it to libvlc for playback.

I've tried using

Stream stream = _mCurrentYoutubeVideo.Stream();
Debug.LogWarning($"stream {stream} {stream.Length}");
mediaPlayer.Media = new Media(new StreamMediaInput(stream));
mediaPlayer.Play();

but libvlc doesn't seem to do anything with it.

maybe this is more of a question for libvlc or libvlcsharp authors :G is there anything i can do to prove that the IO Stream that i'm passing to vlc is good? i noticed it throws a warning about not supporting seeking when i try to get the position or length of the stream

image

jakedowns avatar Jan 17 '23 00:01 jakedowns