mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-19 04:56:00 -04:00
support default device-type Signed-off-by: seaside_wu <wuhaibin5@huawei.com> Change-Id: I4fed26a7dcb9e43d77c2349a113ba11ea4095420
This commit is contained in:
@@ -389,7 +389,11 @@ function parseDeviceTypeCondition(condition: string, mediaStatus: object, failRe
|
||||
failReason.type = MEDIAERROR.SYNTAX;
|
||||
return false;
|
||||
}
|
||||
return deviceType[1] === mediaStatus['device-type'];
|
||||
if (deviceType[1] === 'default') {
|
||||
return mediaStatus['device-type'] === 'phone';
|
||||
} else {
|
||||
return deviceType[1] === mediaStatus['device-type'];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user