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

Using not supported preferred code skips publishing track silently #463

Open
konsalex opened this issue Aug 18, 2024 · 4 comments
Open

Using not supported preferred code skips publishing track silently #463

konsalex opened this issue Aug 18, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@konsalex
Copy link

Describe the bug
A clear and concise description of what the bug is.

Creating a custom video track with a preferred codec, like VP9 in this case, does not break but silently skips publishing the track.

Other participants in the room cannot see any track, thus my assumption that its not published. If the preferred codec is "allowed" the track is published correctly, for example with h264.

SDK Version
Please provide the SDK version.
2.0.13

iOS/macOS Version
The OS version which the issue occurs.
MacOS: 14.3.1

Xcode Version
The Xcode version which the issue occurs.
(Please provide the Swift version if you know it)
Xcode: 15.3
Swift: 5.10

Steps to Reproduce

Use the following code:

// Use any display or window
try await room.localParticipant.publish(videoTrack: screenTrack,
                                                        options: VideoPublishOptions(
                                                            preferredCodec: .vp9
                                                        )

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

Either give appropriate logs and fallback to a supported codec, or throw an error to let the developer know that something is off.

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

Logs
Please provide logs if you can.
If needed I can provide more info

@konsalex konsalex added the bug Something isn't working label Aug 18, 2024
@bcherry
Copy link
Contributor

bcherry commented Aug 20, 2024

@konsalex do you have any information about your server / cloud environment? Are you using LiveKit Cloud or self-hosted OSS?

@konsalex
Copy link
Author

@bcherry local CLI for dev

Copy link
Contributor

bcherry commented Aug 21, 2024

can you confirm you have the VP9 codec enabled? see the "self-hosted" tab here https://docs.livekit.io/recipes/video-codecs/#Configuring-codec-support-server-side

@konsalex
Copy link
Author

@bcherry Did not before explicitly but now have this as:
livekit-server --dev --config /renkey/livekit-local-server/config.yml

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

3 participants