Skip to content

Commit

Permalink
package name change
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak Parajuli committed Dec 13, 2024
1 parent 77bbf1b commit e3b0840
Show file tree
Hide file tree
Showing 77 changed files with 220 additions and 234 deletions.
18 changes: 10 additions & 8 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,21 @@ $ flutter pub get
3. Import it

```dart
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
```

4. (Required) iOS configuration
4. (Required) iOS configuration
You need to change these settings in order to run Better Player on iOS:
* Set deployment info of your project to **min. iOS 11.0 version**.
* Set Swift 5 version.

5. (Required) Android configuration.
- Set deployment info of your project to **min. iOS 11.0 version**.
- Set Swift 5 version.

5. (Required) Android configuration.
You need to change these settings in order to run Better Player on Android:
* Set compileSdkVersion to *31*.
* Set kotlin version to *1.5.31*.
* Enable multidex.

- Set compileSdkVersion to _31_.
- Set kotlin version to _1.5.31_.
- Enable multidex.

6. (Optional) Additional iOS configuration

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/auto_fullscreen_orientation_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/basic_player_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:example/utils.dart';
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/cache_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/clearkey_page.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:io';

import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:flutter/material.dart';

import 'package:example/constants.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/controller_controls_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/controls_always_visible_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/controls_configuration_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:example/pages/custom_controls/custom_controls_widget.dart';
import 'package:flutter/material.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:flutter/material.dart';

class CustomControlsWidget extends StatefulWidget {
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/dash_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/drm_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/event_listener_page.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/fade_placeholder_page.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/hls_audio_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/hls_subtitles_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/hls_tracks_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/memory_player_page.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:io';

import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:example/utils.dart';
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/normal_player_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/notification_player_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/overridden_aspect_ratio_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/overriden_duration_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/picture_in_picture_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/placeholder_until_play_page.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/playlist_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:example/utils.dart';
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/resolutions_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:collection/collection.dart' show IterableExtension;

class ReusableVideoListController {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';

import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/model/video_list_data.dart';
import 'package:example/pages/reusable_video_list/reusable_video_list_controller.dart';
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/rotation_and_fit_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:flutter/material.dart';

Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/subtitles_page.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/constants.dart';
import 'package:example/utils.dart';
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion example/lib/pages/video_list/video_list_widget.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:example/model/video_list_data.dart';
import 'package:flutter/material.dart';

Expand Down
6 changes: 3 additions & 3 deletions lib/src/asms/better_player_asms_data_holder.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:better_player/src/asms/better_player_asms_audio_track.dart';
import 'package:better_player/src/asms/better_player_asms_subtitle.dart';
import 'package:better_player/src/asms/better_player_asms_track.dart';
import 'package:better_player_enhanced/src/asms/better_player_asms_audio_track.dart';
import 'package:better_player_enhanced/src/asms/better_player_asms_subtitle.dart';
import 'package:better_player_enhanced/src/asms/better_player_asms_track.dart';

class BetterPlayerAsmsDataHolder {
List<BetterPlayerAsmsTrack>? tracks;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/asms/better_player_asms_subtitle.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/src/asms/better_player_asms_subtitle_segment.dart';
import 'package:better_player_enhanced/src/asms/better_player_asms_subtitle_segment.dart';

///Representation of HLS / DASH subtitle element.
class BetterPlayerAsmsSubtitle {
Expand Down
6 changes: 3 additions & 3 deletions lib/src/asms/better_player_asms_utils.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:convert';
import 'dart:io';
import 'package:better_player/src/core/better_player_utils.dart';
import 'package:better_player/src/dash/better_player_dash_utils.dart';
import 'package:better_player/src/hls/better_player_hls_utils.dart';
import 'package:better_player_enhanced/src/core/better_player_utils.dart';
import 'package:better_player_enhanced/src/dash/better_player_dash_utils.dart';
import 'package:better_player_enhanced/src/hls/better_player_hls_utils.dart';

import 'better_player_asms_data_holder.dart';

Expand Down
2 changes: 1 addition & 1 deletion lib/src/configuration/better_player_configuration.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/better_player.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

Expand Down
12 changes: 6 additions & 6 deletions lib/src/configuration/better_player_data_source.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import 'package:better_player/src/configuration/better_player_buffering_configuration.dart';
import 'package:better_player/src/configuration/better_player_data_source_type.dart';
import 'package:better_player/src/configuration/better_player_drm_configuration.dart';
import 'package:better_player/src/configuration/better_player_notification_configuration.dart';
import 'package:better_player/src/configuration/better_player_video_format.dart';
import 'package:better_player/src/subtitles/better_player_subtitles_source.dart';
import 'package:better_player_enhanced/src/configuration/better_player_buffering_configuration.dart';
import 'package:better_player_enhanced/src/configuration/better_player_data_source_type.dart';
import 'package:better_player_enhanced/src/configuration/better_player_drm_configuration.dart';
import 'package:better_player_enhanced/src/configuration/better_player_notification_configuration.dart';
import 'package:better_player_enhanced/src/configuration/better_player_video_format.dart';
import 'package:better_player_enhanced/src/subtitles/better_player_subtitles_source.dart';
import 'package:flutter/widgets.dart';

import 'better_player_cache_configuration.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/configuration/better_player_drm_configuration.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/src/configuration/better_player_drm_type.dart';
import 'package:better_player_enhanced/src/configuration/better_player_drm_type.dart';

///Configuration of DRM used to protect data source
class BetterPlayerDrmConfiguration {
Expand Down
2 changes: 1 addition & 1 deletion lib/src/configuration/better_player_event.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:better_player/src/configuration/better_player_event_type.dart';
import 'package:better_player_enhanced/src/configuration/better_player_event_type.dart';

///Event that happens in player. It can be used to determine current player state
///on higher layer.
Expand Down
6 changes: 3 additions & 3 deletions lib/src/controls/better_player_controls_state.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:io';
import 'dart:math';
import 'package:better_player/better_player.dart';
import 'package:better_player/src/controls/better_player_clickable_widget.dart';
import 'package:better_player/src/core/better_player_utils.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:better_player_enhanced/src/controls/better_player_clickable_widget.dart';
import 'package:better_player_enhanced/src/core/better_player_utils.dart';
import 'package:collection/collection.dart' show IterableExtension;
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
Expand Down
16 changes: 8 additions & 8 deletions lib/src/controls/better_player_cupertino_controls.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import 'dart:async';
import 'package:better_player/src/configuration/better_player_controls_configuration.dart';
import 'package:better_player/src/controls/better_player_controls_state.dart';
import 'package:better_player/src/controls/better_player_cupertino_progress_bar.dart';
import 'package:better_player/src/controls/better_player_multiple_gesture_detector.dart';
import 'package:better_player/src/controls/better_player_progress_colors.dart';
import 'package:better_player/src/core/better_player_controller.dart';
import 'package:better_player/src/core/better_player_utils.dart';
import 'package:better_player/src/video_player/video_player.dart';
import 'package:better_player_enhanced/src/configuration/better_player_controls_configuration.dart';
import 'package:better_player_enhanced/src/controls/better_player_controls_state.dart';
import 'package:better_player_enhanced/src/controls/better_player_cupertino_progress_bar.dart';
import 'package:better_player_enhanced/src/controls/better_player_multiple_gesture_detector.dart';
import 'package:better_player_enhanced/src/controls/better_player_progress_colors.dart';
import 'package:better_player_enhanced/src/core/better_player_controller.dart';
import 'package:better_player_enhanced/src/core/better_player_utils.dart';
import 'package:better_player_enhanced/src/video_player/video_player.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

Expand Down
8 changes: 4 additions & 4 deletions lib/src/controls/better_player_cupertino_progress_bar.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:async';
import 'package:better_player/src/controls/better_player_progress_colors.dart';
import 'package:better_player/src/core/better_player_controller.dart';
import 'package:better_player/src/video_player/video_player.dart';
import 'package:better_player/src/video_player/video_player_platform_interface.dart';
import 'package:better_player_enhanced/src/controls/better_player_progress_colors.dart';
import 'package:better_player_enhanced/src/core/better_player_controller.dart';
import 'package:better_player_enhanced/src/video_player/video_player.dart';
import 'package:better_player_enhanced/src/video_player/video_player_platform_interface.dart';
import 'package:flutter/material.dart';

class BetterPlayerCupertinoVideoProgressBar extends StatefulWidget {
Expand Down
18 changes: 9 additions & 9 deletions lib/src/controls/better_player_material_controls.dart
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import 'dart:async';
import 'package:better_player/src/configuration/better_player_controls_configuration.dart';
import 'package:better_player/src/controls/better_player_clickable_widget.dart';
import 'package:better_player/src/controls/better_player_controls_state.dart';
import 'package:better_player/src/controls/better_player_material_progress_bar.dart';
import 'package:better_player/src/controls/better_player_multiple_gesture_detector.dart';
import 'package:better_player/src/controls/better_player_progress_colors.dart';
import 'package:better_player/src/core/better_player_controller.dart';
import 'package:better_player/src/core/better_player_utils.dart';
import 'package:better_player/src/video_player/video_player.dart';
import 'package:better_player_enhanced/src/configuration/better_player_controls_configuration.dart';
import 'package:better_player_enhanced/src/controls/better_player_clickable_widget.dart';
import 'package:better_player_enhanced/src/controls/better_player_controls_state.dart';
import 'package:better_player_enhanced/src/controls/better_player_material_progress_bar.dart';
import 'package:better_player_enhanced/src/controls/better_player_multiple_gesture_detector.dart';
import 'package:better_player_enhanced/src/controls/better_player_progress_colors.dart';
import 'package:better_player_enhanced/src/core/better_player_controller.dart';
import 'package:better_player_enhanced/src/core/better_player_utils.dart';
import 'package:better_player_enhanced/src/video_player/video_player.dart';

// Flutter imports:
import 'package:flutter/material.dart';
Expand Down
6 changes: 3 additions & 3 deletions lib/src/controls/better_player_material_progress_bar.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';
import 'package:better_player/better_player.dart';
import 'package:better_player/src/video_player/video_player.dart';
import 'package:better_player/src/video_player/video_player_platform_interface.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:better_player_enhanced/src/video_player/video_player.dart';
import 'package:better_player_enhanced/src/video_player/video_player_platform_interface.dart';
import 'package:flutter/material.dart';

class BetterPlayerMaterialVideoProgressBar extends StatefulWidget {
Expand Down
8 changes: 4 additions & 4 deletions lib/src/core/better_player.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'dart:async';
import 'package:better_player/better_player.dart';
import 'package:better_player/src/configuration/better_player_controller_event.dart';
import 'package:better_player/src/core/better_player_utils.dart';
import 'package:better_player/src/core/better_player_with_controls.dart';
import 'package:better_player_enhanced/better_player.dart';
import 'package:better_player_enhanced/src/configuration/better_player_controller_event.dart';
import 'package:better_player_enhanced/src/core/better_player_utils.dart';
import 'package:better_player_enhanced/src/core/better_player_with_controls.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:visibility_detector/visibility_detector.dart';
Expand Down
Loading

0 comments on commit e3b0840

Please sign in to comment.