解决社区录音应用横屏状态下,录音后无法播放的bug
最近看到社区有小伙伴反映,社区录音应用横屏时,录音后无法播放的问题。现分享解决办法。
社区录音应用的来源:
https://gitee.com/openharmony/applications_app_samples/tree/OpenHarmony-5.0.2-Release/code/SystemFeature/Media/Recorder
Recorder/entry/src/main/ets/pages/Index.ets中注释this.isLand = mediaQueryResult.matches;
,让它横屏是强制保持竖屏状态就ok了。
编译好的录音ok的hap在文末下载