Polyv Help Center

Help Center

Channel Settings

Updated: 2026-08-28 16:01:47

This document mainly describes the API documentation related to channel settings provided by 频道模块(channel). For details, see below:

1. Watch Page Settings

1.1 Get Watch Page Settings

Used to retrieve the viewing page settings information configured in the admin backend.

Api Method: getWatchSetting(): ChannelWatchSetting

Return Value Description: Channel watch page settings, ChannelWatchSetting type. Detailed type description is as follows:

Property Name Description Type
watchEnabled Watch page toggle boolean
mobileWatchEnabled Mobile watch page toggle boolean
splashEnabled Guide page toggle boolean

Example:

const setting = watchCore.channel.getWatchSetting();
if (!setting.watchEnabled) { alert('当前观看页暂未开放'); }
if (isMobile && !setting.mobileWatchEnabled) { alert('暂不支持移动端观看'); }

2. Page Ads

2.1 Retrieve Channel Page Ad Settings

Used to retrieve the page ad settings information from the admin backend.

Starting from v1.2.0, the default configuration can be obtained via PlvChannelModule.generateDefaultPageAdvertSetting().

Api Method: getPageAdvertSetting(): ChannelAdvertSetting

Return Value Description: Channel page ad settings, ChannelAdvertSetting type. Detailed type description is as follows:

Property Name Description Type
pageAdvertEnabled Page ad toggle boolean
closeAdvertEnabled Allow closing page ads boolean
pageAdvertList Page ad list PageAdvertItem[]

Example:

const setting = watchCore.channel.getPageAdvertSetting();
console.log('页面广告开关:', setting.pageAdvertEnabled);
console.log('允许关闭页面广告:', setting.closeAdvertEnabled);

2.2 Get Channel Page Ad List

Used to retrieve the list of page advertisements configured in the admin backend.

Api Method: getPageAdvertList(): PageAdvertItem[]

Return Value Description: Ad list, PageAdvertItem[] type

Example:

const advertList = watchCore.channel.getPageAdvertList();
advertList.forEach((item, index) => {
  console.log('广告内容', index, item.content);
  console.log('广告类型', index, item.advertType); // PageAdvertType
  console.log('跳转地址', index, item.href);
});

Interface: PageAdvertItem page ad information

Property Name Description Type
content Ad Content string
advertType Ad Type PageAdvertType
href Redirect URL string
jumpWay Redirect Method LinkJumpWay
link Redirect Link string
mobileLink Mobile Redirect Link string
mobileAppLink Mobile App Redirect Link string
mobileAppLinkJumpWay Mobile App Redirect Method LinkJumpWay
pcLink PC Redirect Link string
pcLinkJumpWay PC Redirect Method LinkJumpWay
wxMiniprogramAppId WeChat Mini Program App ID string
wxMiniprogramLink WeChat Mini Program Page Path and Parameters string
wxMiniprogramOriginalId WeChat Mini Program Original ID string
iosLink iOS Redirect Link string
androidLink Android Redirect Link string
harmonyLink Harmony Redirect Link string
hrefType Redirect Type string

Enum: PageAdvertType Page Ad Type

Constant Enum Member Description
'text' PageAdvertType.Text Text ad
'image' PageAdvertType.Image Image ad

III. Icon Ads

3.1 Get Channel Icon Ad Settings

Api Method: getImgAdvertSetting(): ChannelIconAdvertSetting

Supported since version v2.0.0

Return Value Description: Channel icon ad settings, type ChannelIconAdvertSetting, detailed type description is as follows.

Property Description Type
imgAdvertEnabled Icon ad toggle boolean
closeImgAdvertEnabled Whether the icon ad is closable boolean
imgAdvertList Icon ad list IconAdvertItem[]

Example:

const iconSetting = watchCore.channel.getImgAdvertSetting();
console.log('图标广告开关:', iconSetting.iconAdvertEnabled);
console.log('关闭按钮是否显示:', iconSetting.closeIconAdvertEnabled);

3.2 Get Channel Icon Ad List

Api Method: getIconAdvertList(): IconAdvertItem[]

Supported since version v2.0.0

Return Value Description: IconAdvertItem[] type

Used to retrieve the footer information of the admin backend.

Api Method: getPageFooterSetting(): ChannelPageFooterSetting

Return Value Description: Footer settings, ChannelPageFooterSetting type, detailed type description as follows

Property Description Type
footerEnabled Footer toggle boolean
footerText Footer text string
footerLink Full footer link string
footerTextLinkProtocol Footer link domain, e.g., https:// string
footerTextLinkUrl Footer link address, e.g., www.polyv.net string
copyrightInfoList List of copyright information HTML fragments string[]

Example:

const footerSetting = watchCore.channel.getPageFooterSetting();
console.log('页脚开关:', footerSetting.footerEnabled);
console.log('页脚文案:', footerSetting.footerText);
console.log('页脚链接:', footerSetting.footerLink);

V. Official Account Follow

5.1 Get Channel Follow Settings

Used to retrieve the follow settings information of the admin backend.

Api Method: getFollowSetting(): ChannelFollowSetting

Return Value Description: Channel follow settings, ChannelFollowSetting type. Detailed type descriptions are as follows:

Property Name Description Type
followEnabled Follow Switch boolean
followAutoShow Active Popup boolean
followEntrance Entry Text string
followImage QR Code Image undefined | string
followTips Mobile Popup Prompt Text undefined | string
pcFollowTips PC Popup Prompt Text undefined | string

Example:

const setting = watchCore.channel.getFollowSetting();
console.log('关注开关:', setting.followEnabled);
console.log('入口文案:', setting.followEntrance);
console.log('二维码图片:', setting.followImage);

VI. Multilingual

6.1 Get Channel Multilingual Settings

Used to retrieve the multilingual configuration information from the backend.

Api Method: getLangSetting(): ChannelLangSetting

Return Value Description: Channel multilingual settings, ChannelLangSetting type. Detailed type description is as follows:

Property Name Description Type
preferRecommendSetting Prefer recommended configuration boolean
englishSettingEnabled Bilingual interface toggle boolean
aiTranslationEnabled AI multilingual translation toggle boolean
langSwitchEnabled Multilingual toggle boolean
isShowSevenLanguage Whether to display seven-country multilingual options boolean
japLangEnabled Whether to replace English selection text with Japanese text boolean
isFollowBrowserLang Whether to follow the browser language boolean
defaultLangType Default language type for the viewing page LanguageType

Example:

const setting = watchCore.channel.getLangSetting();
console.log('多语言开关:', setting.langSwitchEnabled);
console.log('双语界面开关:', setting.englishSettingEnabled);
console.log('是否跟随浏览器语言:', setting.isFollowBrowserLang);
console.log('默认的语言类型:', setting.defaultLangType);

7. Page Layout

7.1 Get Channel Layout Settings

Used to retrieve page layout related settings for the admin backend.

Api Method: getLayoutSetting(): ChannelLayoutSetting

Return Value Description: Channel layout settings, type ChannelLayoutSetting, detailed type description is as follows

Property Description Type
mainScreenLayoutMode Three-panel main screen layout mode MainScreenLayoutMode
mobileSplashLayout Mobile onboarding page layout MobileSplashLayout
mobileWatchLayout Mobile viewing page layout MobileWatchLayout

Example:

const setting = watchCore.channel.getLayoutSetting();
console.log('三分屏主屏布局模式:', setting.mainScreenLayoutMode);
console.log('移动端引导页布局:', setting.mobileSplashLayout);
console.log('移动端观看页页布局:', setting.mobileWatchLayout);

8. Skin Themes

8.1 Retrieve the Theme Style Configuration for the Watch Page

When themeStyleType is ChannelWatchThemeStyleType.Theme, you can pass in a theme to obtain the related style configuration.

v1 Spring Festival Skin URL 'https://s2.videocc.net/watch-theme/spring/v1/config.json' v2 Spring Festival Skin URL 'https://s2.videocc.net/watch-theme/spring/v2/config.json' v2 Black Mirror Skin URL 'https://s2.videocc.net/watch-theme/black-golden/v2/config.json'

Api Method: getWatchThemeStyleConfig(theme: string, opts?: Object): Promise<T>

Supported from version v2.14.0 onwards.

Parameter Description:

  • theme: string type, required

  • opts: Object type, optional, default {}, detailed type description as follows

Parameter Name Description Type Required Default Value
url - string No -

Return Value Description: Promise<T> type

8.2 Get Channel Skin Theme Settings

Used to retrieve the skin theme settings of the admin backend.

Starting from v1.2.0, the default configuration can be obtained via PlvChannelModule.generateDefaultThemeSetting().

Api Method: getThemeSetting(): ChannelThemeSetting

Return Value Description: Channel skin theme setting, ChannelThemeSetting type. Detailed type description is as follows:

Property Name Description Type
pageSkin Watch page skin ChannelWatchPageSkin
watchTheme Watch page theme null | string
styleType Style type ChannelWatchThemeStyleType
browserFavIcon Browser tab icon string
channelCoverImg Channel icon image URL string
splashImg Landing page cover image string
splashImgBackgroundId Landing page cover image background ID undefined | number
mobileSplashLargeImg Mobile landing page large image string
pcWatchBackgroundImage PC watch page background image undefined | string
mobileChatBackgroundType Mobile chat room background image type BackgroundType
mobileChatBackgroundImage Mobile chat room background image undefined | string
mobileChatBackgroundImageAmbiguity Chat room background image blur, 0 ~ 100 undefined | number
portraitBackgroundType Portrait background image type BackgroundType
portraitBackgroundImage Portrait background image undefined | string
portraitBackgroundImageAmbiguity Portrait background image transparency, 0 ~ 100 undefined | number
playerBackgroundType Player background image type BackgroundType
playerBackgroundImage Player background image undefined | string
playerBackgroundImageAmbiguity Player background image transparency, 0 ~ 100 undefined | number
descInfoCardEnabled Live stream introduction info card toggle, enabled by default boolean

Example:

const setting = watchCore.channel.getThemeSetting();
console.log('皮肤风格:', setting.pageSkin);
console.log('直播间图标:', setting.channelCoverImg);

8.3 Get Product Library Icon Configuration

Api Method: getProductIconConfig(): undefined | ProductIconConfig

Supported since version v2.14.0

Return Value Description: undefined | ProductIconConfig type

IX. Stream Multi-Track Configuration / Dual Stream Configuration

9.1 Get Channel Stream Multi-Track Configuration

Multi-track configuration differs from multi-line configuration. In multi-line configuration, the source obtained is actually the same, whereas multi-track configuration retrieves different streaming sources.

Api Method: getChannelStreamTrackConfig(): ChannelStreamTrackConfig

Supported since version v1.8.0

Return Value Description: Channel stream multi-track configuration (dual stream), type ChannelStreamTrackConfig, detailed type description is as follows:

Property Name Description Type
type Multi-track configuration class ChannelStreamTrackType
trackList Multi-track list ChannelStreamTrackItem[]

10. User Groups

10.1 Get Channel User Group Configuration

Api Method: getChannelViewerGroupConfig(): ChannelViewerGroupConfig

Supported since version v2.16.0

Return Value Description: Channel user group configuration, ChannelViewerGroupConfig type. Detailed type description is as follows:

Property Name Description Type
chatViewerGroupEnabled Chat user grouping feature toggle boolean
channelViewerGroupEnabled Channel user grouping feature toggle boolean
onlyGroupWatchEnabled Restrict viewing to only grouped users toggle boolean
notInGroupCanWatchEnabled Whether viewing is allowed when not in the channel user group list boolean

11. Other Switches

11.1 Get Channel Mini Window Settings

Api Method: getPIPSetting(): ChannelPIPSetting

Return Value Description: Channel mini-window settings, type ChannelPIPSetting, detailed type description is as follows:

Property Name Description Type
miniprogramNativePictureInPictureEnabled Mini Program native small window playback boolean
miniprogramWebviewPictureInPictureEnabled Mini Program Webview small window playback boolean
miniprogramWebviewPIPIntermediatePagePath Mini Program intermediate page path string

11.2 Get Channel Top Guide Bar Configuration

Api Method: getTopGuideSetting(): ChannelTopGuideSetting

Supported since version v2.0.0

Return Value Description: Top navigation bar configuration, type ChannelTopGuideSetting, detailed type description as follows:

Property Name Description Type
topGuideBarEnabled Guide bar toggle boolean
topGuideBarLogo Top logo string
topGuideBarContent Guide bar text string
topGuideBarButtonContent Button text string
topGuideBarAndroidRedirectUrl Redirect link: Android string
topGuideBarIosRedirectUrl Redirect link: iOS string
topGuideBarHarmonyOSRedirectUrl Redirect link: HarmonyOS string
topGuideBarCloseable Allow closing boolean

11.3 Get Online List Switch

Api Method: getOnlineListEnabled(): boolean

Supported since version v1.8.0

11.4 Get Admin Announcement Marquee Switch

Api Method: getManagerBulletinMarqueeEnabled(): boolean

Supported since version v2.0.0

11.5 Get the Whiteboard Courseware Toggle for Seminars

When closed, the workshop channel does not display documents.

Api Method: getSeminarWhiteboardCoursewareEnabled(): boolean

Supported since version v2.19.0

11.6 Get Channel Message Effect Configuration

Api Method: getEffectSetting(): ChannelEffectSetting

Supported since version v2.0.0

Return Value Description: Channel message effect settings, type ChannelEffectSetting, detailed type description is as follows

Property Name Description Type
visitEffectEnabled Access effect toggle boolean
joinVisitEffectTip User enters the live room string
productEffectEnabled Purchase conversion effect toggle boolean
clickOrdinaryProductEffectTip User clicks on product - General product string
clickFinancialProductEffectTip User clicks on product - Financial product string
clickJobProductEffectTip User clicks on product - Job product string
orderProductEffectTip User places order for product - General product string
interactionEffectEnabled Participation interaction effect toggle boolean
checkinInteractionEffectTip User check-in successful string
donateInteractionEffectTip User tipping success effect string

11.7 Need to Hide Audience Nicknames

Api Method: needHideViewerNickname(): boolean

Supported since version v2.0.0

11.8 Get Playback Switch

Api Method: getEnablePlayback(): boolean

Supported since version v2.3.0

11.9 Get the Last Push Stream Time

Api Method: getLastPushStreamTime(): number

Supported since version v2.3.0

11.10 Get the Image Compression Switch for Live Stream Introduction Content

Api Method: getCompressImageEnabled(): boolean

Supported since version v2.5.0

11.11 Get Mixed Stream Rendering Mode

Mixed stream rendering mode, default is black fill mode. If you need clipping mode, please enable it in the viewer settings.

Fill Black Mode: In this mode, the aspect ratio of the source video is strictly maintained during scaling. If the rendering container does not match the source video's aspect ratio, the background will be exposed.

Crop Mode:
In this mode, the source video is strictly cropped according to the aspect ratio of the target video, then stretched to fill the canvas.

Api Method: getMixStreamRenderMode(): MixStreamRenderMode

Supported since version v2.5.0

Return Value Description: MixStreamRenderMode type

11.12 Get the Forbidden Push Stream Switch

Api Method: getBanPushStream(): boolean

Supported since version v2.5.0

Deprecated since v2.7.0, please use getPlaybackForbiddenEnabled instead.

11.13 Get Playback Flow Restriction Switch

Api Method: getPlaybackForbiddenEnabled(): boolean

Supported since version 2.7.0

11.14 Get Android Enhanced Full-Screen Mode Switch

Api Method: getAndroidFullScreenEnhancedEnabled(): boolean

Supported since version v2.5.0

11.15 Get Low-Latency Smart Playback Switch

Api Method: getLowLatencyIntelligentPlayEnabled(): boolean

Supported since version v2.5.0

11.16 Get Live Square Configuration

Api Method: getLiveSquareConfig(): undefined | LiveSquare

Supported since version v2.6.0

Return Value Description: undefined | LiveSquare type

11.17 Get Whether to Display the Replay Pending Generation Text Switch

Api Method: getShowPlaybackWaitTextEnabled(): boolean

Supported since version v2.9.0

11.18 Get the Landscape Position Configuration of the Product Library

Api Method: getProductEntryLandscapePosition(): string

Supported since version v2.13.0

11.19 Get Whether Login is Allowed in Small Class Channel

Api Method: getSmallClassLoginEnabled(): Promise<boolean>

Supported since version v2.13.0

Return Value Description: Promise<boolean> type

联系客服,在线咨询
在线咨询