Tivy

style: very good analysis Powered by Mason License: MIT

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,
    );
    

Libraries

tivy
Utility package for getting video quality urls for vimeo and youtube.