Skip to content

Commit a74ca36

Browse files
Merge pull request #2 from livekit-examples/sxian/print_livekit_version
print livekit version
2 parents d74f35b + 518bea9 commit a74ca36

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

basic_room/main.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,21 @@ bool parseArgs(int argc, char *argv[], std::string &url, std::string &token, boo
8484
return !(url.empty() || token.empty());
8585
}
8686

87+
void print_livekit_version() {
88+
std::cout
89+
<< "LiveKit version: "
90+
<< LIVEKIT_BUILD_VERSION_FULL
91+
<< " (" << LIVEKIT_BUILD_FLAVOR
92+
<< ", commit " << LIVEKIT_BUILD_COMMIT
93+
<< ", built " << LIVEKIT_BUILD_DATE
94+
<< ")"
95+
<< std::endl;
96+
}
97+
8798
} // namespace
8899

89100
int main(int argc, char *argv[]) {
101+
print_livekit_version();
90102
std::string url, token;
91103
bool self_test = false;
92104
if (!parseArgs(argc, argv, url, token, self_test)) {

0 commit comments

Comments
 (0)