sitegeist/assetsource-3qvideo 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

sitegeist/assetsource-3qvideo

最新稳定版本:v1.0.2

Composer 安装命令:

composer require sitegeist/assetsource-3qvideo

包简介

Neos Asset Source for 3Q Videos

README 文档

README

A Neos Asset Source for 3QVideo (https://3q.video/). The videos are not actually imported once selected. Instead a metafile is created with just the metadata needed for rendering a player.

Authors & Sponsors

The development and the public-releases of this package is generously sponsored by http://www.sitegeist.de.

Setup

Install composer package

composer require sitegeist/assetsource-3qvideo

Configure asset source

Configure the asset source with the following properties, in your Settings.yaml - either global or in a site package

Neos:
  Media:
    assetSources:
      3qvideo:
        assetSource: 'Sitegeist\AssetSource\ThreeQVideo\AssetSource\ThreeQVideoAssetSource'
        assetSourceOptions:
          label: '3Q Video'
          description: ' 3Q Video asset source'
          apiKey: <api-key>
          projectId: <project-id>

Use the assets in your own project

The package contains a Mixin for selecting 3Q Videos and a presentational component for rendering the videoplayer. To actually use the building blocks in your own project you have to define a NodeType with configuration and rendering.

NodeTypes.3QVideo.yaml:

'Vendor.Site:Content.3QVideo':
  ui:
    label: '3Q Video'
    icon: video
  superTypes:
    'Neos.Neos:Content'    
    'Sitegeist.AssetSource.3QVideo:3QVideo': true

Content.3QVideo.fusion:

prototype(Vendor.Site:Content.3QVideo) < prototype(Neos.Neos:ContentComponent) {
    asset = ${q(node).property('3qvideo')}
    renderer = Sitegeist.AssetSource.3QVideo:VideoPlayer {
        playoutId = ${ThreeQVideo.playoutIdForAsset(props.asset)}
        playerId = ${'video-' + node.identifier}

        muted = ${props.muted ? props.muted :  true}
        autoplay = ${props.autoplay ? props.autoplay : false}
        loop = ${props.loop ? props.loop : false}
        controls = ${props.controls ? props.controls : true}

    }
}

Acknowledgements

Inspired by the format of @bwaidelich and the Pimcore Asset source

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2022-05-20