ponnamkarthik / FlutterYoutube

Flutter Plugin to play youtube Videos
Apache License 2.0
126 stars 56 forks source link

Error with 1.3.5 #51

Closed boylenssen closed 4 years ago

boylenssen commented 4 years ago

When building with the latest version, I get the following error:

Compiler message: ../../.pub-cache/hosted/pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:61:22: Error: Method not found: 'parseColorToHex'. 'appBarColor': parseColorToHex(appBarColor), ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:62:26: Error: Method not found: 'parseColorToHex'. 'backgroundColor': parseColorToHex(backgroundColor), ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:88:22: Error: Method not found: 'parseColorToHex'. 'appBarColor': parseColorToHex(appBarColor), ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:89:26: Error: Method not found: 'parseColorToHex'. 'backgroundColor': parseColorToHex(backgroundColor),

ghost commented 4 years ago

Am also getting same issue........plz fix asap

When building with the latest version, I get the following error:

Compiler message: ../../.pub-cache/hosted/pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:61:22: Error: Method not found: 'parseColorToHex'. 'appBarColor': parseColorToHex(appBarColor), ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:62:26: Error: Method not found: 'parseColorToHex'. 'backgroundColor': parseColorToHex(backgroundColor), ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:88:22: Error: Method not found: 'parseColorToHex'. 'appBarColor': parseColorToHex(appBarColor), ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:89:26: Error: Method not found: 'parseColorToHex'. 'backgroundColor': parseColorToHex(backgroundColor),

boylenssen commented 4 years ago

You can work around it going back to version 1.1.6: flutter_youtube: 1.1.6

Op vr 18 okt. 2019 om 13:29 schreef raipradeep notifications@github.com:

Am also getting same issue........plz fix asap

When building with the latest version, I get the following error:

Compiler message: ../../.pub-cache/hosted/ pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:61:22: Error: Method not found: 'parseColorToHex'. 'appBarColor': parseColorToHex(appBarColor), ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/ pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:62:26: Error: Method not found: 'parseColorToHex'. 'backgroundColor': parseColorToHex(backgroundColor), ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/ pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:88:22: Error: Method not found: 'parseColorToHex'. 'appBarColor': parseColorToHex(appBarColor), ^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/ pub.dartlang.org/flutter_youtube-1.3.5/lib/flutter_youtube.dart:89:26: Error: Method not found: 'parseColorToHex'. 'backgroundColor': parseColorToHex(backgroundColor),

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/PonnamKarthik/FlutterYoutube/issues/51?email_source=notifications&email_token=ABGR6NQHDCWO2PGNJN6MUK3QPGMZHA5CNFSM4JCDDF7KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBUAFCI#issuecomment-543687305, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGR6NSTXVCYOLMJOVXFETTQPGMZHANCNFSM4JCDDF7A .

ponnamkarthik commented 4 years ago

fixed v2.0.0

ghost commented 4 years ago

Video not playing : Getting error in version v2.0.0

E/YouTubeAndroidPlayerAPI( 4448): Embed config is not supported in RemoteEmbeddedPlayer.

ponnamkarthik commented 4 years ago

@raipradeep can you share the video link you are trying to embed

because some videos won't allow embedding

ghost commented 4 years ago

Just I have checked, Video is playing fine on real device, but on emulator getting this error.

E/YouTubeAndroidPlayerAPI( 4448): Embed config is not supported in RemoteEmbeddedPlayer.

Video link : https://www.youtube.com/embed/6dYVVSOLlR0