mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-27 10:40:41 +00:00
!3941 【openharmony】【AVSession】【Sample】10的项目中用了11的接口
Merge pull request !3941 from Fall_Y/master
This commit is contained in:
commit
c962e318f5
@ -20,8 +20,8 @@
|
||||
{
|
||||
"name": "default",
|
||||
"signingConfig": "default",
|
||||
"compileSdkVersion": 10,
|
||||
"compatibleSdkVersion": 10,
|
||||
"compileSdkVersion": 11,
|
||||
"compatibleSdkVersion": 11,
|
||||
"runtimeOS": "OpenHarmony"
|
||||
}
|
||||
],
|
||||
|
@ -72,7 +72,7 @@ export default class AudioUtils {
|
||||
if (this.callbackMap.get('prepared')) {
|
||||
this.callbackMap.get('prepared');
|
||||
Log.info('AVPlayer state prepare start.');
|
||||
this.callbackMap.set('prepared', null);
|
||||
this.callbackMap.set('prepared', ()=>{});
|
||||
}
|
||||
break;
|
||||
case 'playing':
|
||||
|
@ -55,6 +55,7 @@ struct Index {
|
||||
@State hasNetwork: boolean = false;
|
||||
@State isProgressSliding: boolean = false;
|
||||
@State audioType: 'url' | 'rawfile' | 'scan' | 'video' = 'url';
|
||||
@State avCastPickerColor:Color = Color.White;
|
||||
private audioUtils: AudioUtils = new AudioUtils();
|
||||
private avPlayer: media.AVPlayer | undefined = undefined;
|
||||
private audioVolumeGroupManager: audio.AudioVolumeGroupManager | undefined = undefined;
|
||||
@ -769,7 +770,7 @@ struct Index {
|
||||
.fillColor(Color.White)
|
||||
.backgroundColor(Color.Black)
|
||||
} else {
|
||||
AVCastPicker({ normalColor:Color.White, activeColor:Color.White })
|
||||
AVCastPicker({ normalColor: this.avCastPickerColor, activeColor: this.avCastPickerColor })
|
||||
.size({ height: '100%', width: '100%' })
|
||||
.backgroundColor(Color.Black)
|
||||
.align(Alignment.Center);
|
||||
|
Loading…
Reference in New Issue
Block a user