定制 bernskioldmedia/events-calendar-live-viewer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bernskioldmedia/events-calendar-live-viewer

Composer 安装命令:

composer require bernskioldmedia/events-calendar-live-viewer

包简介

An auto-updating live viewer for virtual events in The Events Calendar.

README 文档

README

This plugin provides a live viewer interface for virtual events in The Events Calendar.

The live page automatically refreshes with the new video content from your live events when they are scheduled to start. This lets viewers stay on one page and enjoy your full event. Perfect for conferences and events with multiple sessions in a row.

Requirements

The following plugins are required:

For this plugin to work your event needs to be structured:

  • One event per session
  • Multiple sessions scheduled in a row
  • Using YouTube Live Premieres

Installation

Currently we support a composer-based installation only:

composer require bernskioldmedia/events-calendar-live-viewer

We may in the future support a ZIP file installable through WordPress.org.

Usage

On any of your pages add the "Live Viewer" block.

The live viewer block will show events based on the start and end times of your events. The block will show the current event based on the current time. If no current event exists, the next event is shown.

Five minutes prior to the next event, the page will automatically refresh, loading the new event video embed.

Behind the scenes, the page polls the REST API automatically every minute to check if the page should refresh based on the next events start time. This means you can change your schedule as the event happens, should you be running late.

Customize

You can use the following actions and filters to customize this plugin.

Change how long before the next event is loaded

By default the next event is loaded five minutes before its start time. To change this:

// Load next event one minute before it starts.
add_filter( 'eclw_seconds_before_to_load_next', static function() {
	return MINUTE_IN_SECONDS;
} );

Change how often the page should poll

By default, the page will poll the system every minute for updated data. To change this:

// Poll for new data every five minutes.
add_filter( 'eclw_polling_interval', static function() {
	return 5 * MINUTE_IN_SECONDS;
} );

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2021-10-31

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固