File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Flutter/android/src/main/java/com/tencent/vod/flutter Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -833,8 +833,16 @@ public void setStringOption(@NonNull FtxMessages.StringOptionPlayerMsg playerMsg
833833 if (null != mVodPlayer ) {
834834 List <Object > values = playerMsg .getValue ();
835835 if (null != values && !values .isEmpty ()) {
836+ String key = playerMsg .getKey ();
836837 Object value = values .get (0 );
837- mVodPlayer .setStringOption (playerMsg .getKey (), value );
838+ // HEVC 降级播放参数进行特殊判断,保证 flutter 层接口一致
839+ if (TextUtils .equals ("VOD_KEY_BACKUP_URL" , key )) {
840+ mVodPlayer .setStringOption (TXVodConstants .VOD_KEY_BACKUP_URL , value );
841+ } else if (TextUtils .equals ("VOD_KEY_VIDEO_CODEC_TYPE" , key )) {
842+ mVodPlayer .setStringOption (TXVodConstants .VOD_KEY_MIMETYPE , value );
843+ } else {
844+ mVodPlayer .setStringOption (key , value );
845+ }
838846 }
839847 }
840848 }
You can’t perform that action at this time.
0 commit comments