Comments (8)
只在流开始的时候生效。两个流都没有禁音的话。那会同时输出两个流的声音。我没有在tvos上试,但是在mac上是可以同时播放两个流的。
from ksplayer.
我最新的代码已经会根据具体的音频格式进行切换了。
if !(sourceNode?.inputFormat(forBus: 0).isChannelEqual(currentRender.audioFormat) ?? false) {
runInMainqueue { [weak self] in
guard let self else {
return
}
self.ceateSourceNode(audioFormat: currentRender.audioFormat)
}
return
}
from ksplayer.
I will let you know if it works. Recently my users have reported that the audio has a problem again and that 5.1 doesn't play in the rear speakers again. It used to work until 3 weeks ago.
from ksplayer.
@kingslay Please reopen. This doesn't work.
Multi-view mode the sound doesn’t work correctly when you have mixed 2.0 and 5.1 streams.
Please try yourself playing 2 streams simultaneously, and mute/unmute one and then the other, you'll see that the sounds doesn't update correctly. i.e. only the last one works correctly, whereas the other one no.
from ksplayer.
我在macOS试了,不会有这个问题。你是在tvos上试的吗?你的设备的音响是双声道的,还是5.1声道的。
from ksplayer.
from ksplayer.
我没有 5.1的设备。所以我只能尝试修复下。你看下行不行
from ksplayer.
@kingslay I don't have 5.1 equipment too, but the question is:
- When is this code executed? Only at the start of the stream or every time the user mute / unmute a stream?
- What happens if the user unmute 2 streams at the same time? Does it take into account the last unmuted stream output channels or the previous one?
from ksplayer.
Related Issues (20)
- 关于滤镜的问题 HOT 17
- 播放多音轨视频出错 HOT 6
- 播放8K视频出现系统杀进程问题 HOT 13
- 关于边下边播,缓存本地。 HOT 3
- 是否可以增加缓冲时长的功能? HOT 5
- 你好 我是个菜鸟 请问一下 想要添加字幕的话 应该如何用呢 HOT 5
- Video player does not take into account dynamic metadata on HOT 13
- Player opens then instantly closes
- A Considerate Appeal for Fair Pricing of Ksplayer's Commercial License HOT 2
- Using GPL license
- How can I write a UDP connection in Swiftui HOT 21
- 能否在外部控制显示、关闭字幕; HOT 1
- Disable audio HOT 1
- Network Error State Not Triggered During Live Stream HOT 10
- RTSP video is not shown when using slow connection HOT 2
- EIA-608 and CTA-708 Captions HOT 4
- Picture in Picture (PiP) on tvOS HOT 6
- Demo project not working on visionOS 1.1 / iOS 17.4 simulators - libharfbuzz.framework HOT 2
- iOS13 dyld: Library not loaded: /usr/lib/libexpat.1.dylib HOT 2
- Whisper CPP HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ksplayer.