If the user is not logged in then generate a random guest user display name. Generate user display name for the meeting from the WordPress user account. ![]() Event when user video conference joinedĪpi.addListener('videoConferenceJoined', function(event)) Step 3: Customize the jitsi meeting with more options from iFrame API We can change that display name into a friendly one using the following command. We can see in the above example the room name is Sample Page ID 2. Jitsi meeting output in the Sample page Beautifying room name ParentNode: document.querySelector('#sleek-jitsi-meeting')Ĭonst api = new JitsiMeetExternalAPI(domain, options) Īt this point we can go test the shortcode by using it in any of the pages as shown in the following screenshot. post_title." - ID".$post->ID) Ĭonst domain = '' // Domain from where the meeting will be loaded To generate unique jitsi meeting room, we will use the current post/page ID along with the post/page title. We will generate unique jitsi meeting for each page or post where the shortcode is used. ![]() Step 2: Write code to display jitsi video rooms on pages based on page/post ID Īfter saving the above code, you can see the plugin showing in the wp-admin as shown in the following screenshot. ![]() Put the following code in the sleek-jitsi-iframe.php file as shown in the above screenshot. Use the following code to create the plugin and shortcode function. Full path of the plugin will be /wp-content/plugins/sleek-jitsi-iframe/sleek-jitsi-iframe.php
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |