Skip to content

5.2.1 Changes#38

Open
AdityaPrakash04 wants to merge 88 commits intocopy_5.2.1from
upgrade_5.2.1
Open

5.2.1 Changes#38
AdityaPrakash04 wants to merge 88 commits intocopy_5.2.1from
upgrade_5.2.1

Conversation

@AdityaPrakash04
Copy link
Copy Markdown

No description provided.

Comment thread Video.js
};
forceReload = () => {
if (Platform.OS === 'ios') {
// TODO iOS
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

force-reload in iOS handling not needed here?

Comment thread Video.js

if (!uri) {
if (!uri) {
console.warn('Trying to load empty source.');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we do error handling in an UI when uri is invalid?

@@ -39,14 +46,19 @@ public final class ExoPlayerView extends FrameLayout {
private SimpleExoPlayer player;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure that we want to move ahead with the deprecated version of Exoplayer - v2, instead of using the Exoplayer from android.media3? Last version supported will be v2.19.0.

}
}
} catch (Exception e) {
e.printStackTrace();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace all e.printStackTrace() usages with Log.d, since it shows up on prod

&& currentPos != null
&& playBackState == Player.STATE_READY
&& playWhenReady) {
Format videoFormat = player.getVideoFormat();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does player.getVideoFormat() not needed to be called from player's thread?

int bitrate = videoFormat != null ? videoFormat.bitrate : 0;

long pos = currentPos;
long bufferedDuration = player.getBufferedPercentage() * duration / 100;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thread?


private DataSource.Factory mediaDataSourceFactory;
private SimpleExoPlayer player;
private volatile SimpleExoPlayer player;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is volatile used here?

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.