Pakete, Repositories und App-Kategorien suchen

Paketdetailsv2.0.0

youtube

Ein Paket zum Abrufen von YouTube-Videoinformationen und Miniaturbildern in mehreren Qualitäten.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
136
Likes
60
Pub-Punkte
140

Paket installieren

flutter pub add youtube

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Das youtube-Paket bietet eine einfache Möglichkeit, YouTube-Videoinformationen und Thumbnails in verschiedenen Qualitätsstufen abzurufen. Es unterstützt mehrere Plattformen wie Android, iOS, Web, macOS, Windows und Linux. Entwickler können Metadaten wie Titel, Beschreibung, Dauer und Aufrufzahlen sowie hochwertige Thumbnail-URLs abrufen. Das Paket ist ideal, um YouTube-Inhalte in Apps zu integrieren, ohne komplexe API-Einrichtungen vornehmen zu müssen. Es nutzt unter der Haube die YouTube Data API und ist daher effizient für die Anzeige von Videovorschauen oder die Entwicklung von Medienentdeckungsfunktionen.

Anwendungsfälle

  • YouTube-Videovorschauen einbetten
  • Medienentdeckungsanwendungen erstellen
  • Video-Metadaten anzeigen
  • Video-Wiedergabelisten-Viewer erstellen
  • Abholen von Miniaturbildern nach Qualität

Hauptmerkmale

  • Videodetails abrufen
  • Mehrere Thumbnail-Qualitätsoptionen
  • Plattformübergreifende Unterstützung
  • Einfache API-Schnittstelle
  • Keine API-Schlüsselkonfiguration erforderlich

Geeignet für

  • Apps, die YouTube-Daten benötigen
  • medienreiche Anwendungen
  • Inhaltsvorschau-Funktionen
  • Flutter-Entwickler, die eine schnelle Integration suchen

Hinweise

  • Internetverbindung erforderlich
  • Beschränkt auf öffentliche Videodaten
  • Abhängig von der Verfügbarkeit der YouTube-API
  • Kann bei hohem Volumen eine Rate-Limit-Handhabung erfordern

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

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.

Kategorien

Abhängigkeiten

Abhängigkeiten 1 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.