tivy 1.0.1
SDKflutter
Platformandroidioswindowslinuxmacosweb
Flutter package for getting playable video quality urls for vimeo and youtube with video player.
Tivy
Utility package for getting video quality urls for vimeo and youtube.
Installation 💻
❗ In order to start using Tivy you must have the Flutter SDK installed on your machine.
Add tivy to your pubspec.yaml:
dependencies:
tivy:
Install it:
flutter packages get
Usage
-
Import package
import 'package:tivy/tivy.dart'; -
For vimeo video
final videoQualityUrls = await Tivy.getVideoQualityUrls( 'your_private_vimeo_video_id', accessToken: 'your_access_token', ); -
For YouTube video url.
final youTubeVideoUrl = await Tivy.getYouTubeVideoQualityUrls( 'your_youtube_video_url', ); // Available muxed video links with audio and video // Note that muxed streams are limited in quality. final muxedUrls = youTubeVideoUrl.muxedUrls; // Available streams video links. final streamsUrls = youTubeVideoUrl.streamUrls;