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

पैकेज विवरणv2.0.0

youtube

एक पैकेज जो यूट्यूब वीडियो की जानकारी और बहुत सारी गुणवत्ता में थंबनेल प्राप्त करने के लिए है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
136
लाइक
60
Pub अंक
140

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

flutter pub add youtube

पैकेज अवलोकन

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

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

उपयोग

  • YouTube वीडियो प्रीव्यू को एम्बेड करना
  • मीडिया खोज ऐप्स बनाना
  • वीडियो मेटाडेटा प्रदर्शित कर रहे हैं
  • वीडियो प्लेलिस्ट दर्शक बनाना
  • गुणवत्ता के अनुसार थंबनेल प्राप्त करें

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

  • वीडियो विवरण प्राप्त करें
  • बहुत छोटे थंबनेल गुणवत्ता विकल्प
  • प्लेटफॉर्म-समर्थन
  • सरल API इंटरफेस
  • API कुंजी सेटअप की आवश्यकता नहीं है

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

  • YouTube डेटा की आवश्यकता वाले ऐप्स
  • मीडिया-समृद्ध एप्लिकेशन
  • सामग्री पूर्वावलोकन विशेषताएं
  • फ्लटर विकासकर्ता जल्दी से एकीकरण की तलाश में

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

  • इंटरनेट कनेक्शन की आवश्यकता है
  • सार्वजनिक वीडियो डेटा तक सीमित
  • YouTube के API उपलब्धता पर निर्भर करता है
  • उच्च आवृत्ति के उपयोग में दर सीमा प्रबंधन की आवश्यकता हो सकती है

मूल README

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

This Flutter package provides functionalities to retrieve and manage YouTube video information, including details about the video and the uploader, as well as various thumbnail resolutions.

GitHub Sponsor

Configuration

Before fetching video details, you need to configure the package with the video ID:

await Youtube.config(videoId: 'your_video_id');

Accessing Video Information

You can access the video and channel details using the provided getters:

var channelDetails = Youtube.channelDetails;
var videoDetails = Youtube.videoDetails;
var thumbnails = Youtube.thumbnails;
ChannelDetails

Holds details about the YouTube channel.

  • Properties
    • String name: The name of the uploader.
    • String id: The ID of the channel.
    • String username: The username of the uploader.
  • Example
var channelDetails = Youtube.channelDetails;
print('Channel Name: ${channelDetails.name}');
print('Channel ID: ${channelDetails.id}');
print('Channel Username: ${channelDetails.username}');
VideoDetails

Holds details about the YouTube video.

  • Properties
    • String title: The title of the video.
    • int duration: The duration of the video in seconds.
    • int viewCount: The view count of the video.
    • String defaultThumbnail: The URL of the default thumbnail.
  • Example
var videoDetails = Youtube.videoDetails;
print('Video Title: ${videoDetails.title}');
print('Video Duration: ${videoDetails.duration} seconds');
print('Video View Count: ${videoDetails.viewCount}');
print('Default Thumbnail: ${videoDetails.defaultThumbnail}');
Thumbnails

Holds URLs for different resolutions of the video's thumbnails.

  • Properties
    • String fullhd: URL for the Full HD thumbnail.
    • String hd: URL for the HD thumbnail.
    • String sd: URL for the SD thumbnail.
    • String hq: URL for the HQ thumbnail.
    • String lq: URL for the LQ thumbnail.
  • Example
var thumbnails = Youtube.thumbnails;
print('Full HD Thumbnail: ${thumbnails.fullhd}');
print('HD Thumbnail: ${thumbnails.hd}');
print('SD Thumbnail: ${thumbnails.sd}');
print('HQ Thumbnail: ${thumbnails.hq}');
print('LQ Thumbnail: ${thumbnails.lq}');
Video Infortimation
  • String url - URL of the video for allquality with direct streaming and downloading
  • int fps - Frames per second
  • String resolution - Resolution of the video
  • String audio - Audio of the video
  • int filesize - Filesize of the video
  • String quality - Quality of the video
  • String videoExtension - Video extension
  • int height - Height of the video
  • int width - Width of the video

Example

👉 For a complete example, refer to the Youtube package documentation.

Report bugs or issues

You are welcome to open a ticket on github if any 🐞 problems arise. New ideas are always welcome.

Note: This package uses third-party api to fetch data.

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

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

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

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