ionic-team / ionic-team/cordova-plugin-ionic-webview
HTML Audio, Video tag doesn't working properly with the local or cloud audio file on iOS
- Dominant language
- Objective-C
- Stars
- 493
- Forks
- 410
- PR merge metrics
- No merged PRs in 30d
Description
Hello Team,
We were using ionic webview plugin to support the WKWebView in our app. But seems like it causing the issue of audio and video html tag doesn't working properly.
**Issue:**
The volume of the audio/video is very quiet, can barely hear it (with the system volume is maximum).
**Component Code:**
function playAudio(audioUrl) {
$scope = $rootScope.$new();
var audio_name = audioUrl.split("/");
audio_name = audio_name[audio_name.length - 1]
var audioCtrlTemplate =
'' +
'' +
//'
'+ audio_name +'
' +'Cancel' +
'' +
'' +
'' +
'' +
'' +
'' +
'';
var modal = $ionicModal.fromTemplate(audioCtrlTemplate, {
scope: $scope,
animation: 'popIn',
backdropClickToClose: false
});
$scope.closeModal = function() {
modal.hide();
};
var modalIsRemoved = false;
$scope.$on('modal.hidden', function() {
if (modalIsRemoved)
return;
modalIsRemoved = true;
modal.remove();
});
$scope.$on('modal.shown', function() {
document.getElementById('audio-'+audio_name).play();
});
modal.show();
}
**Error Log>**
2021-10-04 15:11:37.411878+0530 Lifetiles Pro[425:10893] [ProcessSuspension] 0x109cd08a0 - ProcessAssertion: Failed to acquire RBS MediaPlayback assertion 'WebKit Media Playback' for process with PID 425, error: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=, NSLocalizedFailureReason=Required client entitlement is missing}
**P.S>** It was working before as expected.
Contributor guide
Assessment
This issue has not been assessed yet.