1234567891011121314151617181920212223242526272829303132 |
- //
- // VideoManager+ringtone.m
- // SikeyComm
- //
- // Created by 刘振兴 on 2024/5/7.
- // Copyright © 2024 BaH Cy. All rights reserved.
- //
- #import "VideoManager+ringtone.h"
- #import "AudioSound.h"
- @implementation VideoManager (ringtone)
- - (void)playVideoWaitingRingtone {
- dispatch_async(dispatch_get_main_queue(), ^{
- [[AudioSound shardInstance] playSound:@"video_start" ofType:@"mp3" isLoops:-1];
- });
- }
- - (void)playVideoFinishRingtone {
- dispatch_async(dispatch_get_main_queue(), ^{
- [[AudioSound shardInstance] playSound:@"video_end" ofType:@"mp3" isLoops:0];
- });
- }
- - (void)stopVideoRingtone {
- dispatch_async(dispatch_get_main_queue(), ^{
- [[AudioSound shardInstance] stopSound];
- });
- }
- @end
|