flutter_twitch_player 0.1.4
flutter_twitch_player: ^0.1.4 copied to clipboard
Flutter package for playing twitch streams. This package uses InAppWebview under the hood to play & display the video.
Flutter Twitch Player #
A flutter plugin that plays twitch live streams using InAppWebview under the hood.
Getting started #
Update gradle in android/build.gradle
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
}
Update minSDK to 17 in android/app/build.gradle
defaultConfig {
minSdkVersion 17
}
Update distributionUrl in android/gradle/gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip
Usage #
TwitchPlayerIFrame(channel: "channel name", controller: TwitchController())
TODO #
- play
- pause
- mute
- unmute
- fullscreen
Additional information #
Only tested on android.