Description of the Feature
Conference (TUIRoomKit) supports the Text Watermark feature, allowing users to add custom text watermarks to conference to protect content copyright or convey specific information. Through the Text Watermark feature, users can display personal information, company names, or conference topics on the conference screen, enhancing content security and professionalism. This article will provide a detailed introduction to this feature and explain how to use it in the TUIRoomKit component.
Feature Integration
Enable Watermark
In TUIRoomKit, the Watermark feature is disabled by default. If you want to enable the Text Watermark feature, you can do so with the following code.
ConferenceSession.sharedInstance().enableWaterMark();
ConferenceSession.sharedInstance.enableWaterMark()
Note:
Once enabled, the default watermark text will be Your userId (Your userName)
.
Set Watermark Text
In TUIRoomKit, you can customize the watermark text to meet your specific business needs. You can set your watermark text using the following code.
ConferenceSession.sharedInstance().setWaterMarkText("yourWaterMarkText");
ConferenceSession.sharedInstance.setWaterMarkText(waterMarkText: "yourWaterMarkText")
Feature customization
If the current UI does not meet your needs, you can modify the source code to achieve a satisfactory UI effect. To make it easier for you to customize the UI, an introduction to the text watermark-related files is provided here.
WaterMark
├── TextWaterMarkView.java
└── WaterMarkLineStyle.java
You can modify the source code in the iOS/TUIRoomKit/Source/View/Page/Widget/WaterMark directory to achieve a satisfactory UI effect. To make it easier for you to customize the UI, an introduction to the text watermark-related files is provided here.
WaterMark
├── WaterMarkLayer.swift
└── WaterMarkLineStyle.swift
Was this page helpful?