bitmovin_player 0.1.0 bitmovin_player: ^0.1.0 copied to clipboard
Official Flutter bindings for Bitmovin's mobile Player SDKs.
import 'package:bitmovin_player_example/pages/analytics.dart';
import 'package:bitmovin_player_example/pages/audio_only.dart';
import 'package:bitmovin_player_example/pages/basic_playback.dart';
import 'package:bitmovin_player_example/pages/custom_html_ui.dart';
import 'package:bitmovin_player_example/pages/drm_playback.dart';
import 'package:bitmovin_player_example/pages/event_subscription.dart';
import 'package:bitmovin_player_example/pages/fullscreen_handling.dart';
import 'package:bitmovin_player_example/pages/home.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
initialRoute: '/',
routes: {
Home.routeName: (_) => const Home(),
PlayerAnalytics.routeName: (_) => const PlayerAnalytics(),
BasicPlayback.routeName: (_) => const BasicPlayback(),
DrmPlayback.routeName: (_) => const DrmPlayback(),
AudioOnly.routeName: (_) => const AudioOnly(),
EventSubscription.routeName: (_) => const EventSubscription(),
CustomHtmlUi.routeName: (_) => const CustomHtmlUi(),
FullscreenHandling.routeName: (_) => const FullscreenHandling(),
},
home: const Scaffold(
body: Home(),
),
);
}
}