Comments (4)
We use the way you mentioned at first, but we encountered many crash problems as many android phones doesn't support the specify preview size.
So we make a strategy: Use the SMALL, MEDIUM, LARGE from the getSupportedPreviewSizes
. It can ensure choose the right preview size.
There are so many kinds of Android phones. We have to use the strategy above.
from pldroidmediastreaming.
I understand your point, but I did a google search and found that 360X640 is more common than the resolution used in SMALL (452 width)
The more appropriate would be to decouple PreviewSize from Output size.
Please reconsider replacing the current resolution in SMALL preview to something smaller, otherwise there is very little difference between the SMALL and MEDIUM
Ref: http://stackoverflow.com/questions/6272384/most-popular-screen-sizes-resolutions-on-android-phones
from pldroidmediastreaming.
The values of SMALL, MEDIUM, LARGE depend on the specific Android phone. We can't set an unsupported preview size to camera, because it's too dangerous as crash maybe occurred on some phones.
We found, even the CTS required in some cases, many many Android phones didn't follow correctly.
The more appropriate would be to decouple PreviewSize from Output size.
-> under consideration
from pldroidmediastreaming.
Got it!
Thanks for considering decoupling of Preview and Output sizes.
On Thu, Aug 27, 2015 at 9:41 PM, jpxiong [email protected] wrote:
The values of SMALL, MEDIUM, LARGE depend on the specific Android phone.
We can't set an unsupported preview size to camera, because it's too
dangerous as crash maybe occurred on some phones.We found, even the CTS required in some cases, many many Android phones
didn't follow correctly.The more appropriate would be to decouple PreviewSize from Output size.
-> under consideration—
Reply to this email directly or view it on GitHub
#21 (comment)
.
Regards,
Das, DET Labs
from pldroidmediastreaming.
Related Issues (20)
- 录屏推流需要使用CameraPreviewFrameView吗?
- 视频进度条 HOT 1
- Access denied finding property "camera.aux.packagelist"
- 推流端预览左右两边有黑色 HOT 1
- 如何推流前预览? HOT 1
- 开始推流后 返回状态码 streamingState = UNAUTHORIZED_STREAMING_URL extra = -3 HOT 1
- 快速开始是不是已经不能快速开始了? HOT 1
- targetSdkVersion 29录屏会闪退 HOT 1
- 编译报错,与我的项目中使用的库有冲突? HOT 2
- 通过captureFrame截帧,图像变形。
- 引用happy-dns,还报NoSuchMethodError错误 HOT 4
- No static method defaultResolver() HOT 3
- Issue with the support of 64 bit libraries.
- Unauthorized Package while starting the Streaming
- Pili Streaming not working with Pili Android Version 2.4.0
- activity添加两个fragment,使用懒加载,第二个fragment,无法调起相机 HOT 1
- 最新Demo运行不起来 HOT 3
- 急急急,请问为啥下载的apk demo是牛直播,github上下载的代码跑起来又不像同一个app
- 播放器拉流问题
- 如何直接推一段音频?
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 pldroidmediastreaming.