Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Android playback and sending progress for both #3

Merged
merged 5 commits into from
Jul 13, 2024

Conversation

jnelle
Copy link
Member

@jnelle jnelle commented Jul 13, 2024

No description provided.

jnelle added 5 commits June 30, 2024 20:33
- Add support for tracking video playback progress
- Implement new function to update clip progress to the server
- Adjust Android video player setup with lifecycle-aware enhancements
- Add Picture-in-Picture mode adjustments
- Optimize UI responsiveness during video scrubbing and playback controls
- Streamline platform-specific video player initialization steps
- Enhance error handling and logging in video update requests

Signed-off-by: jnelle <[email protected]>
- Add playback service with media playback support for the Android app
- Refactor media player architecture to use `MediaPlayerController`
- Remove several compositions and states in media player code simplifying functions
- Replace deprecated media player management with new `MediaController` and session management
- Provide subtitle support in the media player
- Simplify the coding by removing unused models and state classes in player package

Signed-off-by: jnelle <[email protected]>
- Remove `ClipFileResponse.kt` entirely and replace it with `WatchResponse.kt`
- Replace all references to `ClipFileResponse` with `WatchResponse` across various files in the API and service layers
- Update method names from `getClipFiles` to `getClipDetails` in repositories and services
- Modify `CommonViewModel` to handle `WatchResponse` instead of managing individual clip files

Signed-off-by: jnelle <[email protected]>
- Import new dependencies in `MediaPlayerController.kt` for iOS platform interaction.
- Introduce playback management and observation enhancements in MediaPlayerController, including periodic time checks and end-of-time notifications.
- Remove options map related to `cookie` and replace it with `null` in media asset configuration.
- Integrate playback duration calculations into media preparation method.
- Add new function `startObserving` to handle video playback progress and completion actions.
- Add coroutine dispatch context `Dispatchers.IO` in `Platform.ios.kt`.
- Remove cookie parameter and usage from `VideoPlayer` function and related initialization in iOS platform.
- Enhance media player controller initialization by starting video progress observation immediately after media preparation.

Signed-off-by: jnelle <[email protected]>
- Update Android Gradle Plugin version to `8.6.0-beta01`
- Upgrade `androidx-espresso-core`, `androidx-test-junit`, `androidx-lifecycle`, `kotlinXCoroutinesVersion`, `kotlinXDatetimeVersion`, and `kermit` libraries to newer versions
- Introduce beta versions for `compose` and `coil` libraries
- Add a new library dependency `androidx-media`
- Remove the `image-loader` library dependency
- Include version updates and dependency additions to the library configuration section

Signed-off-by: jnelle <[email protected]>
@jnelle jnelle merged commit f6177e3 into master Jul 13, 2024
1 check failed
@jnelle jnelle deleted the android-playback branch July 17, 2024 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant