mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-14 01:37:07 -07:00
Init repo
This commit is contained in:
commit
764b6034e3
566 changed files with 212335 additions and 0 deletions
64
lib/wrappers/media_control_base.dart
Normal file
64
lib/wrappers/media_control_base.dart
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
import 'package:audio_service/audio_service.dart';
|
||||
import 'package:media_kit/media_kit.dart';
|
||||
|
||||
get audioServiceConfig => AudioServiceConfig(
|
||||
androidNotificationChannelId: 'nl.jknaapen.fladder.channel.playback',
|
||||
androidNotificationChannelName: 'Video playback',
|
||||
androidNotificationOngoing: true,
|
||||
androidStopForegroundOnPause: true,
|
||||
// androidNotificationIcon: "mipmap/ic_notification_icon",
|
||||
rewindInterval: Duration(seconds: 10),
|
||||
fastForwardInterval: Duration(seconds: 15),
|
||||
androidNotificationChannelDescription: "Playback",
|
||||
androidShowNotificationBadge: true,
|
||||
);
|
||||
|
||||
abstract class MediaControlBase {
|
||||
Future<void> init() {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Player setup() {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<void> seek(Duration position) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<void> play() {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<void> fastForward() {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<void> rewind() {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<void> setSpeed(double speed) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<void> pause() {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<void> stop() {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
void playOrPause() {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<void> setSubtitleTrack(SubtitleTrack subtitleTrack) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<void> setAudioTrack(AudioTrack subtitleTrack) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue