• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster Pro
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza GoCoder SDK /
avatar image
Question by Deep Bhavsar · Dec 27, 2018 at 06:17 AM · androidwowza gocoder sdkgocoder sdk

WOWZMediaConfig.FILL_VIEW is not working, it stretch preview instead of cropping

Hello Wowza team,

I want to show camera preview fill screen so I am using WOWZMediaConfig.FILL_VIEW. It should be cropped preview for fill the screen instead of it stretch video.

I have checked your sdk demo as well as playstore application. Both are stretching the camera preview.

I am checking with Huawei P20 Pro. Android 8.0.1 and Samsung SM-G950FD

I am checking with your demo from this link: https://github.com/WowzaMediaSystems/gocoder-sdk-samples-android WowzaMediaSystems/gocoder-sdk-samples-android https://github.com

I am using wowza GoCoder SDK v1.6.0

It is stretch screenshot of sdk demo from git: https://drive.google.com/open?id=1KH05aVLXjQU3vpC4dHDcnNXAeft5h6bh

This is original image from default camera: https://drive.google.com/open?id=1inPPQ-G_yMJFIUBsVFc1zZN-3j-e4lvI

Please check and help me for sort out this things as I am stuck with it

Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Adam Kolozsvari · Nov 14 at 10:33 AM

Hi @Deep Bhavsar,

I was struggling with the same problem for hours and found out that the problem is not related to the phone but to the screen ratio. The camera view's dimension ratio must be 9:16 to work correctly(regardless the videosize). The easiest way is to use constraint layout with fixed dimensionRatio. "If it's stupid but it works, it isn't stupid." :D

Comment
Fabio De Lorenzo

People who like this

1 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

react native (android) run time error 1 Answer

Android app crashing 2 Answers

support 64 bit Wowza GoCoder SDK for Android 2 Answers

Hi everyone,I have to add some module getting the same error 0 Answers

gocoder-sdk-camera2-shaders error: cannot find symbol class WZBroadcastConfig 2 Answers

Hot Topics
  • Streaming Protocols
  • Wowza SDKs
  • AWS Hosting
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Partners
  • Partners Overview
  • Find a Reseller
  • Channel Partner Program
  • OEM Program
  • Wowza Reseller Portal
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Contact Us
Stay Connected
Sign Up for Our Blog
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster Pro
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges