A Flutter plugin to handle ios & Android platform specific implementations for playing audio and video media files. It is intended to be a 'plugin-n-play' solution. E.g just call a function playVideo
and that's what it should do.
Add the following dependencies
dependencies {
...
def media3_version = "1.1.0"
implementation "androidx.media3:media3-exoplayer:$media3_version"
implementation "androidx.media3:media3-ui:$media3_version"
implementation "androidx.media3:media3-exoplayer-hls:$media3_version"
implementation "androidx.multidex:multidex:2.0.1"
}
Set up sdk versions as seen below
android {
...
compileSdk 33
defaultConfig {
...
minSdk 23
targetSdk 33
...
}
...
}
In
AndroidManifest.xml
# in the application tag
<application>
android:supportsRtl="true"
android:allowClearUserData="true"
android:usesCleartextTraffic="true"
</application>