dart_jellyfin 0.0.2
dart_jellyfin: ^0.0.2 copied to clipboard
Dart client for Jellyfin. Supports authentication, library browsing, playlists, streaming, search and more. Targets macOS, Windows, Linux, iOS and Android.
example/dart_jellyfin_example.dart
// Copyright © 2026 & onwards, Alessandro Di Ronza <ales.drnz@gmail.com>.
// All rights reserved.
// Use of this source code is governed by BSD 3-Clause license that can be found in the LICENSE file.
import 'package:dart_jellyfin/dart_jellyfin.dart';
Future<void> main() async {
final jellyfin = JellyfinClient(
credentials: const JellyfinCredentials(
client: 'MyApp',
device: 'CLI',
deviceId: 'example-device',
version: '1.0.0',
),
);
jellyfin.connect('https://jellyfin.example.com');
final auth = await jellyfin.user.authenticateByName(
username: 'user',
password: 'password',
);
print('Logged in as ${auth.user.name}');
final views = await jellyfin.userViews.list();
for (final v in views.items) {
print('${v.name} (${v.collectionType})');
}
}