Skip to content

Add Ktor HTTP data source module#3071

Open
k88936 wants to merge 1 commit intoandroidx:mainfrom
k88936:feat/ktor-datasource
Open

Add Ktor HTTP data source module#3071
k88936 wants to merge 1 commit intoandroidx:mainfrom
k88936:feat/ktor-datasource

Conversation

@k88936
Copy link

@k88936 k88936 commented Feb 14, 2026

Summary

Introduce a new lib-datasource-ktor module similar to libraries/datasource_okhttp, providing KtorDataSource as an alternative HTTP data source implementation using Ktor client to solve issue #1646 .

What changed

  • impl: androidx.media3.datasource.DataSource using ktor
  • test: a unit test for DataSourceContractTest. and a unit test for it own.
  • api.txt in the repo root
  • some gradle config for include this module

Why

I recent met the same problem for maintaining both a okhttp client and a ktor client, similar to #1646 (comment)

Introduce a new lib-datasource-ktor module similar to `libraries/datasource_okhttp`.
 Providing KtorDataSource as an alternative HTTP data source implementation using Ktor client.
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.

2 participants