No Sound in Playback #1398
-
First thanks a lot for the repo 🫡 My problem is I don't have audio playback when playing a video via SRT using MTHKView. I get the following error in the console when starting playing :
Here is how I initiate the AVAudioSession in app delegate.
I tried to let audioSettings to default, as well as initiating the audio setting with my video source spec :
Thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
Thanks. |
Beta Was this translation helpful? Give feedback.
-
Also I do have sound using player pro app : https://apps.apple.com/fr/app/haivision-play-pro/id1482925169 |
Beta Was this translation helpful? Give feedback.
-
To help debug : in IOAudioUnit.swift I printed the sampled buffer received :
|
Beta Was this translation helpful? Give feedback.
-
Hey thanks for checking the issue, but unfortunately I still have no sound
(tried on simulator and device with the video I gave you).
What can I do to help the debug process ?
<img width="786" alt="Screenshot 2024-04-06 at 11 25 07" src="https://github.com/shogo4405/HaishinKit.swift/assets/31652880/ed159336-e11d-44de-8079-633b9445fa2a">
Le sam. 6 avr. 2024 à 11:06, shogo4405 ***@***.***> a écrit :
… I fixed it. Please take a look.
#1401 <#1401>
—
Reply to this email directly, view it on GitHub
<#1398 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHRPYEDTKTHWCTNPEYDPAVTY363K5AVCNFSM6AAAAABFNIDVZCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TAMRYGQ4DM>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Ok so i still have no sound when the video plays.
But when I move the app in the background, wait 5 secs, come back to the
app, the video stops and the sound starts. it's like I can't have both at
the same time
Le sam. 6 avr. 2024 à 15:13, shogo4405 ***@***.***> a écrit :
… Due to the difficulty of maintenance, we have removed ScreenCapture APIs
and alternatives. Please migrate accordingly.
https://github.com/shogo4405/HaishinKit.swift/tree/main/Examples
// If you set the "mode" parameter, stereo capture is not possible, so it is left unspecified.
// try session.setCategory(.playAndRecord, options: [.defaultToSpeaker, .allowBluetooth])
try session.setCategory(.playback)
try session.setActive(true)
—
Reply to this email directly, view it on GitHub
<#1398 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHRPYEF6WTUXPFMBVH6AEA3Y37YJDAVCNFSM6AAAAABFNIDVZCVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TAMRZGUYDQ>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Close as fixed #1401 |
Beta Was this translation helpful? Give feedback.
I have confirmed that it works with https://github.com/shogo4405/HaishinKit.swift/tree/main/Examples.
Is it exhibiting similar symptoms with this code as well?
If it is not working, please report following this template:
https://github.com/shogo4405/HaishinKit.swift/issues/new?assignees=&labels=&projects=&template=bug_report.yml