Skip to content

Commit

Permalink
add support for auto judge H264 or h265
Browse files Browse the repository at this point in the history
  • Loading branch information
liangzhuohua committed Jun 19, 2024
1 parent 8ac9de4 commit 8feb2fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wifi/WFBReceiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ void WFBReceiver::handleRtp(uint8_t *payload, uint16_t packet_size) {
QmlNativeAPI::Instance().playerCodec = "H264";
} else if (isH265(header->getPayloadData())) {
QmlNativeAPI::Instance().playerCodec = "H265";
}else{
QmlNativeAPI::Instance().playerCodec = "H264";
}
}

Expand Down

0 comments on commit 8feb2fe

Please sign in to comment.