qyplayer 0.1.2

SDKflutter
Platformandroidioswindowslinuxmacos

a versatile video player. Supports m3u8, flv, mp4, and more. Simple, yet powerful, with a clean interface for seamless video playback in your Flutter projects.

qyplayer

Install

add qyplayer as a dependency in your pubspec.yaml file.

iOS

If you need to access videos using http (rather than https) URLs, you will need to add the appropriate NSAppTransportSecurity permissions to your app's Info.plist file, located in /ios/Runner/Info.plist. See Apple's documentation to determine the right combination of entries for your use case and supported iOS versions.

Android

If you are using network-based videos, ensure that the following permission is present in your Android Manifest file, located in /android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET"/>

macOS

If you are using network-based videos, you will need to add the com.apple.security.network.client entitlement

Sample

import 'package:qyplayer/qyplayer.dart';

QYPlayer(
    width: MediaQuery.of(context).size.width,
    height: MediaQuery.of(context).size.height,
    src: 'http://live.m2.tv/hls3/stream.m3u8',
);