fa
Feedback

فریب کلاهبرداران را نخورید! تل‌متریو این کانال‌ها را شناسایی و برچسب‌گذاری می‌کند 👉 برای مشاهده برچسب، اشتراک تهیه کنید 👈

برو فلاتر | Flutter Pro

برو فلاتر | Flutter Pro

رفتن به کانال در Telegram

Your ultimate destination for acquiring knowledge and skills in advanced Flutter app development ___<<>>___ المصدر الأمثل لاكتساب المعرفة والمهارات في تطوير تطبيقات Flutter المتقدمة.

نمایش بیشتر
کشور مشخص نشده استفناوری و برنامه‌ها86 679
465
مشترکین
اطلاعاتی وجود ندارد24 ساعت
اطلاعاتی وجود ندارد7 روز
اطلاعاتی وجود ندارد30 روز
آرشیو پست ها
Promo_شرح مكتبة youtupe_explode_dart.WAV4.05 MB

Flutter update 3.13 See all the new features

The youtupe_explode_dart library is a programming library that helps developers to break down YouTube videos and access the information related to it, such as the title, description, comments, statistics, timestamps, thumbnails, audio, video, translations, resolutions, and more. This library is used in YouTube applications, news websites, educational and entertainment platforms, commercial and marketing websites, and others that are interested in videos. To install the library, you must add the following line to the pubspec.yaml file:
dependencies:
youtupe_explode_dart: ^0.2.0
Then, you must run the following command to install the library:
flutter pub get
The most important illustrative examples of using the library are: 1. Get video information:
import 'package:youtupe_explode_dart/youtupe_explode_dart.dart';

void main() async {
var videoId = 'dQw4w9WgXcQ';
var client = new YoutupeExplodeDart();
var video = await client.getVideo(videoId);
print(video.title);
print(video.description);
print(video.duration);
print(video.thumbnails.highResUrl);
}
2. Download video:
import 'dart:io';

import 'package:youtupe_explode_dart/youtupe_explode_dart.dart';

void main() async {
var videoId = 'dQw4w9WgXcQ';
var client = new YoutupeExplodeDart();
var video = await client.getVideo(videoId);
var stream = await client.getVideoStream(video);
var file = new File('${video.title}.mp4');
await file.writeAsBytes(await stream.first);
print('Video saved to: ${file.path}');
}
3. Get comments:
import 'package:youtupe_explode_dart/youtupe_explode_dart.dart';

void main() async {
var videoId = 'dQw4w9WgXcQ';
var client = new YoutupeExplodeDart();
var video = await client.getVideo(videoId);
var comments = await client.getComments(video);
comments.forEach((comment) {
print(comment.text);
print(comment.likeCount);
print(comment.author);
print(comment.authorChannelUrl);
});
}
4. Get playlists:
import 'package:youtupe_explode_dart/youtupe_explode_dart.dart';

void main() async {
var playlistId = 'PL6gx4Cwl9DGDQ5DrbIl20Zu9hx1IjeVhO';
var client = new YoutupeExplodeDart();
var playlist = await client.getPlaylist(playlistId);
print(playlist.title);
print(playlist.description);
print(playlist.author);
print(playlist.videoCount);
playlist.videos.forEach((video) {
print(video.title);
print(video.duration);
});
}
5. Get live streams:
import 'package:youtupe_explode_dart/youtupe_explode_dart.dart';

void main() async {
var channelId = 'UCSJ4gkVC6NrvII8umztf0Ow';
var client = new YoutupeExplodeDart();
var stream = await client.getLiveStream(channelId);
print(stream.title);
print(stream.viewers);
print(stream.thumbnailUrl);
}
These are some illustrative examples of using the youtupe_explode_dart library in Flutter. This library can be used to develop YouTube applications, news websites, educational and entertainment platforms, commercial and marketing websites, and others that are interested in videos.

مكتبة youtupe_explode_dart هي مكتبة برمجية تساعد المطورين على تفكيك مقاطع الفيديو على اليوتيوب والوصول إلى المعلومات المتعلقة بها، مثل العنوان والوصف والتعليقات والإحصائيات والعلامات الزمنية والصور المصغرة والصوت والفيديو والترجمات والدقات والمزيد. تستخدم هذه المكتبة في تطبيقات اليوتيوب والمواقع الإخبارية والمنصات التعليمية والترفيهية والتجارية والتسويقية والأخرى التي تهتم بالفيديو. لتثبيت المكتبة، يجب إضافة السطر التالي إلى ملف pubspec.yaml:
dependencies:
youtupe_explode_dart: ^0.2.0
ثم يجب تشغيل الأمر التالي لتثبيت المكتبة:
flutter pub get
ومن أهم الأمثلة التوضيحية لاستخدام المكتبة: 1. الحصول على معلومات الفيديو:
import 'package:youtupe_explode_dart/youtupe_explode_dart.dart';

void main() async {
var videoId = 'dQw4w9WgXcQ';
var client = new YoutupeExplodeDart();
var video = await client.getVideo(videoId);
print(video.title);
print(video.description);
print(video.duration);
print(video.thumbnails.highResUrl);
}
2. تنزيل الفيديو:
import 'dart:io';

import 'package:youtupe_explode_dart/youtupe_explode_dart.dart';

void main() async {
var videoId = 'dQw4w9WgXcQ';
var client = new YoutupeExplodeDart();
var video = await client.getVideo(videoId);
var stream = await client.getVideoStream(video);
var file = new File('${video.title}.mp4');
await file.writeAsBytes(await stream.first);
print('Video saved to: ${file.path}');
}
3. الحصول على التعليقات:
import 'package:youtupe_explode_dart/youtupe_explode_dart.dart';

void main() async {
var videoId = 'dQw4w9WgXcQ';
var client = new YoutupeExplodeDart();
var video = await client.getVideo(videoId);
var comments = await client.getComments(video);
comments.forEach((comment) {
print(comment.text);
print(comment.likeCount);
print(comment.author);
print(comment.authorChannelUrl);
});
}
4. الحصول على القوائم التشغيل:
import 'package:youtupe_explode_dart/youtupe_explode_dart.dart';

void main() async {
var playlistId = 'PL6gx4Cwl9DGDQ5DrbIl20Zu9hx1IjeVhO';
var client = new YoutupeExplodeDart();
var playlist = await client.getPlaylist(playlistId);
print(playlist.title);
print(playlist.description);
print(playlist.author);
print(playlist.videoCount);
playlist.videos.forEach((video) {
print(video.title);
print(video.duration);
});
}
5. الحصول على البث المباشر:
import 'package:youtupe_explode_dart/youtupe_explode_dart.dart';

void main() async {
var channelId = 'UCSJ4gkVC6NrvII8umztf0Ow';
var client = new YoutupeExplodeDart();
var stream = await client.getLiveStream(channelId);
print(stream.title);
print(stream.viewers);
print(stream.thumbnailUrl);
}
هذه هي بعض الأمثلة التوضيحية لاستخدام مكتبة youtupe_explode_dart في فلاتر. يمكن استخدام هذه المكتبة لتطوير تطبيقات اليوتيوب والمواقع الإخبارية والمنصات التعليمية والترفيهية والتجارية والتسويقية والأخرى التي تهتم بالفيديو.

ضع لايك واشترك بالقناة اذا عجبتك حلقة 👍🔥⚡

ماهو رأيكم في حلقة 2 لدورة تعليم دارت؟
Anonymous voting

Follow Now !! Best Channel for learning flutter and Dart Language https://youtube.com/@NadimTech360

Today we're taking a look at 47 #vscode shortcuts to help speed up your  workflow.    These shortcuts are split up into the following categories:  - General  - Basic Editing  - Multi-cursor & selection  - Navigation  - Editor management  - File management  - Display  - Debug    Which commands do you use?   

اتمنى الدعم والاشتراك في القناة لنشر فائدة للجميع ونستمع لرأيكم شكرا لكم من قلب ♥

https://youtu.be/xWQvUoFQbL4 شاهدوا الان الحلقة ثانية من دورة تعلم أساسيات الدارت اتمنى الدعم 🔥🔥⚡⚡❤

https://youtu.be/xWQvUoFQbL4 شاهدوا الان الحلقة ثانية من دورة تعلم أساسيات الدارت اتمنى الدعم 🔥🔥⚡⚡❤

Firebase Cloud Messaging vs Pusher Client: الاختلافات: - Firebase Cloud Messaging هي خدمة مجانية، بينما Pusher Client هي خدمة تجارية. - Firebase Cloud Messaging تدعم Android و iOS والويب، بينما Pusher Client تدعم التطبيقات المحمولة والويب. - Firebase Cloud Messaging تقدم ميزات مثل التحليلات وتحديد الأولويات للرسائل ودعم الإشعارات الغنية، بينما Pusher Client تقدم ميزات مثل تاريخ الرسائل والوجود والقنوات. - Firebase Cloud Messaging مخصصة للرسائل المباشرة، بينما يمكن استخدام Pusher Client في الوقت الحقيقي للتعاون والتفاعل. المميزات: - Firebase Cloud Messaging تدعم الرسائل المباشرة الغنية والإشعارات الغنية وتحديد الأولويات للرسائل. - Pusher Client تدعم الرسائل في الوقت الحقيقي والتعاون والتفاعل. - Firebase Cloud Messaging تدعم أيضًا عمليات الإرسال الجماعي والرسائل الفردية. - Pusher Client تتميز بواجهة مستخدم سهلة الاستخدام وسهولة التكامل مع التطبيقات الحالية.

مثال بسيط يمكن استخدامه كنقطة انطلاق لتطوير تطبيقات Pusher Server Notification في Flutter. في هذا المثال، سنستخدم Pusher Server Notification لتحديث قيمة عداد في الوقت الحقيقي عند النقر على زر. فلنبدأ: 1. تثبيت مكتبة Pusher Client في Flutter:
dependencies:
pusher_client: ^1.0.0-nullsafety.0
2. إنشاء خادم Pusher والحصول على مفاتيح API الخاصة بك. 3. استيراد المكتبة:
import 'package:flutter/material.dart';
import 'package:pusher_client/pusher_client.dart';
4. إنشاء واجهة المستخدم:
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
}

class _MyAppState extends State {
int _counter = 0;

@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Pusher Server Notification Example',
home: Scaffold(
appBar: AppBar(
title: Text('Pusher Server Notification Example'),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'$_counter',
style: Theme.of(context).textTheme.headline4,
),
SizedBox(height: 20),
ElevatedButton(
child: Text('Increment Counter'),
onPressed: () {
setState(() {
_counter++;
});
},
),
],
),
),
),
);
}
}
5. إنشاء اتصال Pusher والاشتراك في القناة:
PusherClient pusher;

Future _initializePusher() async {
PusherOptions options = PusherOptions(
host: 'YOUR_HOST',
port: YOUR_PORT,
encrypted: true,
auth: PusherAuth('YOUR_AUTH_ENDPOINT'),
cluster: 'YOUR_CLUSTER',
);

pusher = PusherClient(
'YOUR_APP_KEY',
options,
);

await pusher.connect();

Channel channel = await pusher.subscribe('counter');

channel.bind('increment', (PusherEvent event) {
setState(() {
_counter++;
});
});
}
6. استدعاء دالة _initializePusher() في دالة initState() لإنشاء الاتصال Pusher:
@override
void initState() {
super.initState();
_initializePusher();
}
7. إرسال الرسالة إلى القناة عند النقر على الزر:
ElevatedButton(
child: Text('Increment Counter'),
onPressed: () {
setState(() {
_counter++;
});

Channel channel = pusher.subscribe('counter');
channel.trigger('increment', {'value': _counter});
},
),
8. الانتهاء! يمكنك الآن تشغيل التطبيق والنقر على الزر لزيادة قيمة العداد. يجب أن تتغير قيمة العداد في الوقت الحقيقي على جميع الأجهزة التي تستخدم التطبيق. هذا هو مثال بسيط لاستخدام Pusher Server Notification في Flutter. يمكن تطوير هذا المثال لتحقيق العديد من الوظائف الأخرى، مثل الدردشة الفورية والتنبيهات.

Pusher server notification هو خدمة تمكن تطبيقات الويب والموبايل من إرسال واستقبال الإشعارات في الوقت الحقيقي. يتم استخدام Pusher server notification في تطبيقات مثل الدردشة الفورية وتحديثات الوقت الحقيقي للعبة وأنظمة المراسلة والتنبيهات. في Flutter، يمكن استخدام مكتبة pusher_client للاتصال بخادم Pusher واستقبال الإشعارات. يمكن استخدام Pusher server notification في Flutter لتنفيذ العديد من الوظائف، مثل: 1. تحديث البيانات في الوقت الحقيقي يمكن استخدام Pusher server notification لتحديث البيانات بمجرد ورود تحديث جديد. على سبيل المثال، يمكن استخدام هذه الخدمة في تطبيقات التواصل الاجتماعي لتحديث الأسماء والصور الشخصية في الوقت الحقيقي. 2. الدردشة الفورية يمكن استخدام Pusher server notification لإرسال واستقبال الرسائل في الوقت الحقيقي. يمكن استخدام هذه الخدمة في تطبيقات المراسلة والدردشة الفورية. 3. التنبيهات يمكن استخدام Pusher server notification لإرسال التنبيهات في الوقت الحقيقي. على سبيل المثال، يمكن استخدام هذه الخدمة في تطبيقات الأخبار لإخطار المستخدمين بأحدث الأخبار. الآن، دعونا نلقي نظرة على كيفية استخدام مكتبة pusher_client في Flutter. سنستخدم pusher_client في هذا المثال لإرسال واستقبال الرسائل في الوقت الحقيقي. أولاً، يجب إنشاء خادم Pusher والحصول على مفاتيح API الخاصة بك. يمكن العثور على المفاتيح في لوحة التحكم الخاصة بموقع Pusher. ثم، يجب تثبيت مكتبة pusher_client في Flutter. يمكن القيام بذلك باستخدام الأمر التالي: dependencies: pusher_client: ^1.0.0-nullsafety.0 ثم، يمكن استخدام pusher_client في Flutter على النحو التالي: 1. استيراد المكتبة: import 'package:pusher_client/pusher_client.dart'; 2. إنشاء اتصال Pusher: PusherOptions options = PusherOptions( host: 'YOUR_HOST', port: YOUR_PORT, encrypted: true, auth: PusherAuth('YOUR_AUTH_ENDPOINT'), cluster: 'YOUR_CLUSTER', ); PusherClient pusher = PusherClient( 'YOUR_APP_KEY', options, ); 3. الاشتراك في القناة: Channel channel = await pusher.subscribe('YOUR_CHANNEL_NAME'); 4. إرسال الرسالة إلى القناة: channel.trigger('YOUR_EVENT_NAME', {'YOUR_MESSAGE_KEY': 'YOUR_MESSAGE_VALUE'}); 5. استقبال الرسالة من القناة: channel.bind('YOUR_EVENT_NAME', (PusherEvent event) { print(event.data); }); تمثل الخطوات أعلاه مثالًا بسيطًا لاستخدام pusher_client في Flutter. يمكن استخدام Pusher server notification لتحقيق العديد من الوظائف الأخرى، مثل تحديث البيانات في الوقت الحقيقي وإرسال التنبيهات.

We want interaction, we want everyone to interact and participate ✨️✨️❤️‍🔥