पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.0.5

flutter_youtube_downloader

YouTube वीडियो URL को निकालने और डाउनलोड करने के लिए एक Flutter प्लगइन

AndroidiOS
30-दिन डाउनलोड
261
लाइक
71
Pub अंक
130

पैकेज इंस्टॉल करें

flutter pub add flutter_youtube_downloader

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर प्लगइन जो यूट्यूब वीडियो URL के निकास और डाउनलोड की अनुमति देता है, जो एंड्रॉयड और आईओएस प्लेटफॉर्म के लिए समर्थित है। यह विकासकर्ताओं को वीडियो जानकारी और ऑफलाइन एक्सेस के लिए डाउनलोड लिंक प्राप्त करने की अनुमति देता है। पैकेज फ्लटर ऐप में बिना किसी दिक्कत के एकीकृत होता है, यूट्यूब कंटेंट को हैंडल करने के लिए एक सीधा-सादा API प्रदान करता है। यह यूट्यूब से वीडियो प्राप्त करने की आवश्यकता वाले मीडिया ऐप्स के लिए उपयोगी है जो आधिकारिक यूट्यूब API पर निर्भर नहीं है। स्रोत कोड ट्रांसपेरेंसी और कस्टमाइज़ेशन के लिए GitHub पर सार्वजनिक रूप से उपलब्ध है।

उपयोग

  • ऑफलाइन वीडियो प्लेबैक
  • वीडियो सामग्री एकत्रीकरण
  • शैक्षिक ऐप मीडिया डाउनलोड
  • कस्टम वीडियो प्लेयर एंटीग्रेशन
  • व्यक्तिगत उपयोग के लिए सामग्री निकालना

मुख्य विशेषताएँ

  • YouTube वीडियो URL निकालें
  • Android और iOS का समर्थन करता है
  • वीडियो मेटाडेटा प्रदान करता है
  • ओपन-सोर्स और सार्वजनिक भंडार
  • Flutter के साथ सरल एकीकरण

इनके लिए उपयुक्त

  • मीडिया ऐप बनाने वाले डेवलपर्स
  • ऑफलाइन वीडियो एक्सेस की आवश्यकता वाले ऐप्स
  • शैक्षिक या सहायता प्लेटफॉर्म
  • YouTube सामग्री पुनर्प्राप्ति की आवश्यकता वाले प्रोजेक्ट

विचार योग्य बातें

  • YouTube के नियमों और शर्तों का पालन करना आवश्यक है
  • YouTube के एंटी-स्क्रैपिंग उपायों द्वारा प्रभावित हो सकता है
  • कोई आधिकारिक YouTube API उपयोग नहीं
  • YouTube अपडेट के साथ परिवर्तन का संभावना
  • वीडियो URL निकालने तक सीमित, पूर्ण वीडियो डाउनलोड नहीं

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

flutter_youtube_downloader

A flutter plugin for extracting and downloading youtube video url

Usage

[Example] (https://github.com/Destiny-Ed/flutter_youtube_downloader/blob/main/example/lib/main.dart)

To use this plugin : *add the dependency to your [pubspec.yaml] file

    dependencies:
        flutter:
            sdk : flutter
        flutter_youtube_downloader:

Add to your app manifest.xml file

  <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">  <!-- Add This line -->
    
    ...........
  
    <application
        ..............
        <!-- Add This line -->

        tools:replace="android:label" 
        android:requestLegacyExternalStorage="true"> <!-- Add This line if you are targeting android API 29+-->

        <activity>
            ...............
        </activity>
     
    </application>
</manifest>

Warning

Make sure you don't add ...(dots) after the video title name

[Example] Bad final result = await FlutterYoutubeDownloader.downloadVideo( youTube_link, "Video Title goes Here...", 18);

[Example] Good final result = await FlutterYoutubeDownloader.downloadVideo( youTube_link, "Video Title goes Here", 18);

How To Use

    import 'package:flutter/material.dart';
    import 'dart:async';

    import 'package:flutter/services.dart';
    import 'package:flutter_youtube_downloader/flutter_youtube_downloader.dart';

    void main() {
      runApp(MyApp());
    }

    class MyApp extends StatefulWidget {
      @override
      _MyAppState createState() => _MyAppState();
    }

    class _MyAppState extends State<MyApp> {
      String _extractedLink = 'Loading...';

      String youTube_link = "https://www.youtube.com/watch?v=nRhYQlg8fVw";

      @override
      void initState() {
        super.initState();
        extractYoutubeLink();
      }

      // Platform messages are asynchronous, so we initialize in an async method.
      Future<void> extractYoutubeLink() async {
        String link;
        // Platform messages may fail, so we use a try/catch PlatformException.
        try {
          link = await FlutterYoutubeDownloader.extractYoutubeLink(youTube_link, 18);
        } on PlatformException {
          link = 'Failed to Extract YouTube Video Link.';
        }

        // If the widget was removed from the tree while the asynchronous platform
        // message was in flight, we want to discard the reply rather than calling
        // setState to update our non-existent appearance.
        if (!mounted) return;

        setState(() {
          _extractedLink = link;
        });
      }

      Future<void> downloadVideo() async {
        final result = await FlutterYoutubeDownloader.downloadVideo(
            youTube_link, "Video Title goes Here", 18);
        print(result);
      }

      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          home: Scaffold(
            appBar: AppBar(
              title: const Text('Flutter Youtube Link Downloader example app'),
            ),
            body: Center(
              child: Text('Extracted Link : $_extractedLink\n'),
            ),
            floatingActionButton: FloatingActionButton(
              onPressed: downloadVideo,
              child: const Icon(Icons.download_rounded),
            ),
          ),
        );
      }
    }

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।