Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

视频通话,摄像头焦距问题 #585

Open
farsunset-com opened this issue Jan 15, 2025 · 1 comment
Open

视频通话,摄像头焦距问题 #585

farsunset-com opened this issue Jan 15, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@farsunset-com
Copy link

farsunset-com commented Jan 15, 2025

Describe the bug

   implementation 'io.livekit:livekit-android:2.11.0'
   implementation 'io.livekit:livekit-android-camerax:2.11.0'


  public static final LocalVideoTrackOptions CAMERA_VIDEO_OPTIONS  = new LocalVideoTrackOptions(false,
            "camera",
            CameraPosition.FRONT,
            new VideoCaptureParameter(VideoPreset169.H1080.getCapture().getHeight(),VideoPreset169.H1080.getCapture().getWidth(),VideoPreset169.H1080.getCapture().getMaxFps()));

    public static final VideoTrackPublishDefaults VIDEO_PUBLISH_DEFAULTS  = new VideoTrackPublishDefaults(VideoPreset169.H1080.getEncoding(),true, VideoCodec.AV1.getCodecName(),null,new BackupVideoCodec(), RtpParameters.DegradationPreference.BALANCED);

public static final RoomOptions ROOM_OPTIONS  = new RoomOptions(true,true,null,
        new LocalAudioTrackOptions(),
        CAMERA_VIDEO_OPTIONS,
        new AudioTrackPublishDefaults(20_000,true,true),
        VIDEO_PUBLISH_DEFAULTS,
        SCREENCAST_VIDEO_OPTIONS,
        SCREENCAST_PUBLISH_DEFAULTS
);

image

远端看到的视频 显示焦距不正常。被拉到了很近
To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device Info:

  • Device: [e.g. Google Pixel 4]
  • OS: [e.g. Android 12]
  • LiveKit SDK version: [e.g. 1.11.0]

Additional context
Add any other context about the problem here.

@farsunset-com farsunset-com added the bug Something isn't working label Jan 15, 2025
@farsunset-com
Copy link
Author

@davidzhao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant