Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jakedowns opened this issue Jan 17, 2023 · 0 comments
Open

Comments

@jakedowns
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants