Comments (15)
I have the same issue when use image subtitle
from ksplayer.
@Kimentanm 有这个视频的url吗?
from ksplayer.
@Kimentanm 有这个视频的url吗?
今天比较晚了,明天找个test url发你
from ksplayer.
@Kimentanm 有这个视频的url吗?
我的这是个private url,所以只能通过邮箱发你测试
但是没有找到你的邮箱,如果可以的话,请通过邮件联系我一下:[email protected]
from ksplayer.
from ksplayer.
@Kimentanm 用vlc或iina会有黑色背景吗?
from ksplayer.
黑色背景貌似是都有,应该是视频自带的,但是字母的长宽比不太正常,而且偏大,下面是iina的截图
from ksplayer.
from ksplayer.
这个截图是tvos的吗?还是iOS的
from ksplayer.
@kingslay iOS的
from ksplayer.
@Kimentanm 你可以把.scaledToFit() 给去掉
if let image = model.part?.image {
Spacer()
GeometryReader { geometry in
let fitRect = image.fitRect(geometry.size)
imageView(image)
.offset(CGSize(width: fitRect.origin.x, height: fitRect.origin.y))
.frame(width: fitRect.size.width, height: fitRect.size.height)
}
// .scaledToFit()
.padding()
}
from ksplayer.
我没用SwiftUI呢
from ksplayer.
那你是怎么用这个图片字幕的呢?是不是对图片的宽高设置的有问题。我刚看了这个图片字幕的图片很大。图片宽度是1920,高度848
from ksplayer.
@kingslay 没有显示定义字幕的高度,默认就是用的是VideoPlayerView中的subtitleBackView
我设置了一下subtitleBackView的contentMode,貌似可以了,目前这个bbc的频道播放的节目没有字幕,等会有字幕了我再试试
from ksplayer.
@kingslay 测试过了,增加subtitleBackView.contentMode = .scaleAspectFit后,图片字幕的比例正常了
from ksplayer.
Related Issues (20)
- Stream doesn't start HOT 2
- Compilation warning in AudioEnginePlayer.swift
- Unable to add via Swift Package manager HOT 3
- 双语字幕重叠 HOT 3
- Error sanbox when build application
- Package resolution failed HOT 2
- Fix Apple TV App HOT 1
- Video cache support HOT 5
- Crash when view livestream HOT 1
- 能否自定义一个KSPictureInPictureController? HOT 3
- 使用swift Package Manager更新KSPlayer,添加依赖失败
- 请问咱这个播放器支持3d播放吗? 左右眼 HOT 6
- Transferring to Bluetooth doesn't work until stop-start HOT 1
- pod install for visionos 不兼容 HOT 1
- Playing this URL fails most of the time HOT 12
- Switching from WiFi to Cellular fails HOT 2
- Fix Apple TV App HOT 1
- Does it support video/mp2t format? HOT 1
- side by side vr video on VisionOS? HOT 1
- 是否支持播放自定义解密视频 HOT 1
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.