diff --git a/entry/src/main/ets/pages/VideoPlay.ets b/entry/src/main/ets/pages/VideoPlay.ets index c587f60d4390538c6e71ad2f58b61681881ee57c..5afe21138172d4ca639686ecb1e920212a7a9287 100644 --- a/entry/src/main/ets/pages/VideoPlay.ets +++ b/entry/src/main/ets/pages/VideoPlay.ets @@ -13,10 +13,11 @@ * limitations under the License. */ -import { PiPWindow } from '@kit.ArkUI'; +import { PiPWindow, promptAction } from '@kit.ArkUI'; import { Constants } from '../constants/Constants'; import { AVPlayer } from './AVPlayer'; import Logger from '../utils/Logger'; +import { deviceInfo } from '@kit.BasicServicesKit'; const TAG = Constants.NAV_DESTINATION_NAME; @@ -416,6 +417,16 @@ export struct PlayVideo { this.startPip(); this.hintMsgVisibility = true; } + if (deviceInfo.productSeries === 'HYM' || deviceInfo.productSeries === 'HAD') { + try { + promptAction.showToast(({ + message: '', + duration: 2000 + })) + } catch (error) { + Logger.error(`showToast args error code is ${error.code}, message is ${error.message}}`); + } + } }) } } diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 272977c561fbec97d0b0270cae813a97f34e9e2b..a52d21f525a0872074ff6e0269b9240e05664412 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -99,6 +99,10 @@ { "name": "current_error_hint", "value": "Without" + }, + { + "name": "notsupport", + "value": "PC Does Not Support Picture-in-picture" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/en_US/element/string.json b/entry/src/main/resources/en_US/element/string.json index 272977c561fbec97d0b0270cae813a97f34e9e2b..a52d21f525a0872074ff6e0269b9240e05664412 100644 --- a/entry/src/main/resources/en_US/element/string.json +++ b/entry/src/main/resources/en_US/element/string.json @@ -99,6 +99,10 @@ { "name": "current_error_hint", "value": "Without" + }, + { + "name": "notsupport", + "value": "PC Does Not Support Picture-in-picture" } ] } \ No newline at end of file diff --git a/entry/src/main/resources/zh_CN/element/string.json b/entry/src/main/resources/zh_CN/element/string.json index a06655a089fa5e4a46347466478ca8349dda3c31..1790767f3837415a15fb9709b3713c069a97b390 100644 --- a/entry/src/main/resources/zh_CN/element/string.json +++ b/entry/src/main/resources/zh_CN/element/string.json @@ -99,6 +99,10 @@ { "name": "current_error_hint", "value": "无" + }, + { + "name": "notsupport", + "value": "PC暂时不支持画中画" } ] } \ No newline at end of file