Giter Site home page Giter Site logo

Cannot access the video stream about libvideo HOT 7 CLOSED

omansak avatar omansak commented on August 20, 2024
Cannot access the video stream

from libvideo.

Comments (7)

aseber avatar aseber commented on August 20, 2024

I'm trying to do the exact same thing in my program and I've come to the same problem. If there is anyone who better understands the API that could help us, it would be greatly appreciated!

from libvideo.

nefarius avatar nefarius commented on August 20, 2024

This was bothering me too, it's a pretty severe bug, I fixed it in my fork (My NuGet). Access the Stream like this:

using (var service = Client.For(YouTube.Default))
{
	using (var video = service.GetVideo(url.AbsoluteUri))
	{
		using (var outFile = File.OpenWrite(tmpSource))
		{
			// Stream size
			var streamLength = (long) video.StreamLength();
			var stream = video.Stream();

			stream.CopyTo(outFile);
		}
	}
}

from libvideo.

DavidBarishev avatar DavidBarishev commented on August 20, 2024

I have actually moved to YouTube explode by trazz library , it's really great and works perfectly.

from libvideo.

nefarius avatar nefarius commented on August 20, 2024

@DavidBarishev link?

from libvideo.

DavidBarishev avatar DavidBarishev commented on August 20, 2024

https://github.com/Tyrrrz/YoutubeExplode

from libvideo.

nefarius avatar nefarius commented on August 20, 2024

Thank you.

from libvideo.

aseber avatar aseber commented on August 20, 2024

Thank you for the link to the other library. I'll use that for the time being as well!

from libvideo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.