Committed by
GitHub
Add H265 as a supported codec (#742)
* Add H265 as a supported codec * Fix for e2ee options * changeset & spotless * Update libwebrtc to 137.7151.03
正在显示
6 个修改的文件
包含
33 行增加
和
3 行删除
.changeset/chilled-zoos-report.md
0 → 100644
.changeset/wild-paws-play.md
0 → 100644
| @@ -89,7 +89,9 @@ enum class VideoCodec(val codecName: String) { | @@ -89,7 +89,9 @@ enum class VideoCodec(val codecName: String) { | ||
| 89 | VP8("vp8"), | 89 | VP8("vp8"), |
| 90 | H264("h264"), | 90 | H264("h264"), |
| 91 | VP9("vp9"), | 91 | VP9("vp9"), |
| 92 | - AV1("av1"); | 92 | + AV1("av1"), |
| 93 | + H265("h265"), | ||
| 94 | + ; | ||
| 93 | 95 | ||
| 94 | companion object { | 96 | companion object { |
| 95 | fun fromCodecName(codecName: String): VideoCodec { | 97 | fun fromCodecName(codecName: String): VideoCodec { |
| 1 | /* | 1 | /* |
| 2 | - * Copyright 2023-2024 LiveKit, Inc. | 2 | + * Copyright 2023-2025 LiveKit, Inc. |
| 3 | * | 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. | 5 | * you may not use this file except in compliance with the License. |
| @@ -24,6 +24,7 @@ class SampleApplication : Application() { | @@ -24,6 +24,7 @@ class SampleApplication : Application() { | ||
| 24 | 24 | ||
| 25 | override fun onCreate() { | 25 | override fun onCreate() { |
| 26 | super.onCreate() | 26 | super.onCreate() |
| 27 | + LiveKit.init(this) | ||
| 27 | LiveKit.loggingLevel = LoggingLevel.VERBOSE | 28 | LiveKit.loggingLevel = LoggingLevel.VERBOSE |
| 28 | // LiveKit.enableWebRTCLogging = true | 29 | // LiveKit.enableWebRTCLogging = true |
| 29 | } | 30 | } |
| 1 | +/* | ||
| 2 | + * Copyright 2025 LiveKit, Inc. | ||
| 3 | + * | ||
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| 5 | + * you may not use this file except in compliance with the License. | ||
| 6 | + * You may obtain a copy of the License at | ||
| 7 | + * | ||
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 | ||
| 9 | + * | ||
| 10 | + * Unless required by applicable law or agreed to in writing, software | ||
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, | ||
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| 13 | + * See the License for the specific language governing permissions and | ||
| 14 | + * limitations under the License. | ||
| 15 | + */ | ||
| 16 | + | ||
| 1 | package io.livekit.android.sample | 17 | package io.livekit.android.sample |
| 2 | 18 | ||
| 3 | import android.app.Application | 19 | import android.app.Application |
| @@ -8,6 +24,7 @@ class SampleApplication : Application() { | @@ -8,6 +24,7 @@ class SampleApplication : Application() { | ||
| 8 | 24 | ||
| 9 | override fun onCreate() { | 25 | override fun onCreate() { |
| 10 | super.onCreate() | 26 | super.onCreate() |
| 27 | + LiveKit.init(this) | ||
| 11 | LiveKit.loggingLevel = LoggingLevel.VERBOSE | 28 | LiveKit.loggingLevel = LoggingLevel.VERBOSE |
| 12 | } | 29 | } |
| 13 | } | 30 | } |
-
请 注册 或 登录 后发表评论