tivy 0.1.1
tivy: ^0.1.1 copied to clipboard
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'; -
Use with vimeo video url
final videoQualityUrls = await tivy.getVideoQualityUrls( 'your_vimeo_video_url', ); -
Use with vimeo video id
final videoQualityUrls = await tivy.getVideoQualityUrls( 'your_vimeo_video_id', ); -
For vimeo private video
final videoQualityUrls = await tivy.getPrivateVimeoVideoQualityUrls( 'your_private_vimeo_video_id', { 'key': 'value', }, ); -
For YouTube video url.
final videoQualityUrls = await tivy.getYouTubeVideoQualityUrls( 'your_youtube_video_url', ); -
For YouTube live streaming video url.
final videoQualityUrls = await tivy.getYouTubeVideoQualityUrls( 'your_youtube_video_url', live: true, );
