# Linux Meeting SDK example

**URL:** <https://devforum.zoom.us/t/linux-meeting-sdk-example/96126>\
**Category:** Meeting SDK\
**Created:** [October 2, 2023, 9:17pm UTC](https://devforum.zoom.us/t/linux-meeting-sdk-example/96126 "2023-10-02T21:17:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![randy](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@randy](https://devforum.zoom.us/u/randy)\
**Post date:** [October 2, 2023, 9:17pm UTC](https://devforum.zoom.us/t/linux-meeting-sdk-example/96126/1 "2023-10-02T21:17:24Z")

</div>

@chunsiong.zoom you published great example code for the Windows meeting SDK. Do you have any examples of how to join a meeting using the Linux Meeting SDK?  
There aren’t any linux meeting SDK questions in this forum that I see. I would love to see the Linux platform get more attention here.

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 2, 2023, 11:44pm UTC](https://devforum.zoom.us/t/linux-meeting-sdk-example/96126/2 "2023-10-02T23:44:36Z")

</div>

@randy,

Thank you for posting in the Zoom Developer Forum. You can find a code snippet of how to join a meeting in the Linux Meeting SDK support documentation here :

> **[Meetings | MSDK | Linux](https://developers.zoom.us/docs/meeting-sdk/linux/get-started/meetings/)**
>
> The Zoom Developer Platform is an open platform that allows third-party developers to build applications and integrations upon Zoom’s video-first unified communications platform.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/7/c76bf2cfd623ee96b5c446f4039027a1d5434e03.png)

---

<div class="post-metadata">

**Author:** ![randy](https://avatars.discourse-cdn.com/v4/letter/r/2acd7d/32.png) [@randy](https://devforum.zoom.us/u/randy)\
**Post date:** [October 3, 2023, 9:55am UTC](https://devforum.zoom.us/t/linux-meeting-sdk-example/96126/3 "2023-10-03T09:55:27Z")

</div>

Thank you, I’ve tried this. Unfortunately I always get error 8 (unauthenticated) back, even though I called SDKAuth and received the success return. There must be a step missing. In the windows version of the code the AuthEventListener calls the joinMeeting while the main loop runs a message processing loop. Should the Linux version do similar? What message processing should be in the linux code?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [October 3, 2023, 11:27am UTC](https://devforum.zoom.us/t/linux-meeting-sdk-example/96126/4 "2023-10-03T11:27:29Z")

</div>

@randy ,

I’m running this as a message loop, while waiting for SDK Auth callback. Hope it helps

```auto
GMainLoop* loop;
.
.
.

gboolean timeout_callback(gpointer data)
{
	return TRUE;
}

//this catches a break signal, such as Ctrl + C
void my_handler(int s)
{
	printf("\nCaught signal %d\n", s);
	LeaveMeeting();
	printf("Leaving session.\n");
	//CleanSDK();
	//InitMeetingSDK();
	//AuthMeetingSDK();

	std::exit(0);
}

void initAppSettings()
{
	struct sigaction sigIntHandler;
	sigIntHandler.sa_handler = my_handler;
	sigemptyset(&sigIntHandler.sa_mask);
	sigIntHandler.sa_flags = 0;
	sigaction(SIGINT, &sigIntHandler, NULL);
}

int main(int argc, char* argv[])
{

	
	InitMeetingSDK();
	AuthMeetingSDK();
	initAppSettings();

	loop = g_main_loop_new(NULL, FALSE);
	// add source to default context
	g_timeout_add(100, timeout_callback, loop);
	g_main_loop_run(loop);
	return 0;
}

```

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [October 19, 2023, 12:51am UTC](https://devforum.zoom.us/t/linux-meeting-sdk-example/96126/5 "2023-10-19T00:51:30Z")

</div>

@randy ,

Do take a look at the published sample code here

> **[GitHub - zoom/meetingsdk-linux-raw-recording-sample](https://github.com/zoom/meetingsdk-linux-raw-recording-sample)**
>
> Contribute to zoom/meetingsdk-linux-raw-recording-sample development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Pablo.Moreno](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@Pablo.Moreno](https://devforum.zoom.us/u/Pablo.Moreno)\
**Post date:** [November 8, 2023, 5:08pm UTC](https://devforum.zoom.us/t/linux-meeting-sdk-example/96126/6 "2023-11-08T17:08:12Z")

</div>

@chunsiong.zoom @donte.zoom As the Windows version, is this Linux SDK capable of showing a gallery view so a raw recording is not required?

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [November 9, 2023, 12:41am UTC](https://devforum.zoom.us/t/linux-meeting-sdk-example/96126/7 "2023-11-09T00:41:49Z")

</div>

@Pablo.Moreno , the Meeting SDK for Linux does not come with UI, you will need to implement your own Gallery View UI control if you which to do so.

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [November 9, 2023, 12:41am UTC](https://devforum.zoom.us/t/linux-meeting-sdk-example/96126/8 "2023-11-09T00:41:55Z")

</div>

Closed on November 9, 2023, 12:41am UTC


