Fix toggle decode bug

release
FongMi 2 weeks ago
parent 8116a0c4e2
commit e65b575336
  1. 7
      .gitignore
  2. 1
      app/src/main/java/com/fongmi/android/tv/player/exo/ErrorMsgProvider.java
  3. 1
      app/src/main/java/com/fongmi/android/tv/ui/base/PlaybackActivity.java

7
.gitignore vendored

@ -3,9 +3,8 @@
.gradle
.github
.settings
*build
*.jks
*.properties
lib-*.aar
*build
/media*
/Release
/local.properties
/Release

@ -8,6 +8,7 @@ public class ErrorMsgProvider {
return switch (e.errorCode) {
case PlaybackException.ERROR_CODE_TIMEOUT -> "Timeout";
case PlaybackException.ERROR_CODE_UNSPECIFIED -> "Unspecified";
case PlaybackException.ERROR_CODE_FAILED_RUNTIME_CHECK -> "Failed Runtime Check";
case PlaybackException.ERROR_CODE_IO_UNSPECIFIED -> "IO Unspecified";
case PlaybackException.ERROR_CODE_IO_BAD_HTTP_STATUS -> "Bad HTTP Status";
case PlaybackException.ERROR_CODE_IO_INVALID_HTTP_CONTENT_TYPE -> "Invalid HTTP Content Type";

@ -254,6 +254,7 @@ public abstract class PlaybackActivity extends BaseActivity implements MediaCont
@Override
public void onPlayerRebuild(Player player) {
if (isOwner()) detachSurface();
if (isOwner()) getExoView().setRender(Setting.getRender());
}
};

Loading…
Cancel
Save