Giter Club home page Giter Club logo

Comments (9)

hanssonfredrik avatar hanssonfredrik commented on May 25, 2024 2

@Tyrrrz , that did it! Works on both Android and iOS. Thanks! :)

from youtubeexplode.

Speed258 avatar Speed258 commented on May 25, 2024 1

That's weird

At first I thought issue is with HttpClient, but if that would be true none http request would worked, but
image
this part of the code works on all platforms, so theory with HttpClient was quickly denied

from youtubeexplode.

Tyrrrz avatar Tyrrrz commented on May 25, 2024

Do any of the older versions work?

from youtubeexplode.

Speed258 avatar Speed258 commented on May 25, 2024

Do any of the older versions work?

Tested from 6.3.4 to 6.3.7 none worked on Android, windows everything fine

from youtubeexplode.

Tyrrrz avatar Tyrrrz commented on May 25, 2024

That's weird

from youtubeexplode.

hanssonfredrik avatar hanssonfredrik commented on May 25, 2024

Having the same issues with .NET MAUI on Android
Using version 6.3.11 of YoutubeExplode.

Getting the following errors on GetManifest:

Exception of type 'Android.OS.NetworkOnMainThreadException' was thrown.

Have tried adding ConfigureAwait(false) as someone suggested without luck:

var streamManifest = await youtube.Videos.Streams.GetManifestAsync(videoUrl).ConfigureAwait(false);

Works fine on iOS.

from youtubeexplode.

Tyrrrz avatar Tyrrrz commented on May 25, 2024

Does await Task.Run(async () => await youtube.Videos.Streams.GetManifestAsync(videoUrl)) do anything to alleviate the issue?

from youtubeexplode.

Tyrrrz avatar Tyrrrz commented on May 25, 2024

@Speed258 did you get the same error as above?

from youtubeexplode.

Nickk888SAMP avatar Nickk888SAMP commented on May 25, 2024

I can confirm! That did fix the issue! Thanks @Tyrrrz !

from youtubeexplode.

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.