Skip to content

Commit

Permalink
update universal av's implementation
Browse files Browse the repository at this point in the history
createFactory override now contains TransferListener
  • Loading branch information
watchinharrison committed May 20, 2020
1 parent 06c09e6 commit 2e37c36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -4,6 +4,7 @@

import com.facebook.react.bridge.ReactContext;
import com.google.android.exoplayer2.upstream.DataSource;
import com.google.android.exoplayer2.upstream.TransferListener;

import java.util.Map;

Expand All @@ -12,7 +13,7 @@

public class SharedCookiesDataSourceFactoryProvider extends expo.modules.av.player.datasource.SharedCookiesDataSourceFactoryProvider {
@Override
public DataSource.Factory createFactory(Context context, ModuleRegistry moduleRegistry, String userAgent, Map<String, Object> requestHeaders) {
public DataSource.Factory createFactory(Context context, ModuleRegistry moduleRegistry, String userAgent, Map<String, Object> requestHeaders, TransferListener listener) {
ReactContext reactContext = null;
if (context instanceof ReactContext) {
reactContext = (ReactContext) context;
Expand Down
2 changes: 1 addition & 1 deletion packages/expo-av/CHANGELOG.md
Expand Up @@ -9,4 +9,4 @@
### 🐛 Bug fixes

- Fixed `Plaback.loadAsync()` return type. ([#7559](https://github.com/expo/expo/pull/7559) by [@awinograd](https://github.com/awinograd))
- Fixed the adaptive streaming for exoplayer on android. ([#8363]https://github.com/expo/expo/pull/8363) by [@watchinharrison](https://github.com/watchinharrison))
- Fixed the adaptive streaming for exoplayer on android. ([#8363](https://github.com/expo/expo/pull/8363) by [@watchinharrison](https://github.com/watchinharrison))

0 comments on commit 2e37c36

Please sign in to comment.