Polyv Help Center

Help Center

Polyv PC VOD SDK Integration Documentation

Updated: 2025-06-13 14:43:21

This document describes the steps and instructions for local integration of the Polyv C++/C# playback SDK.

Clone the Project

Use git to clone the project.

git clone https://github.com/polyv/polyv-player-sdk-demo.git

External Dependencies

  • This demo UI depends on the Qt5 or Qt6 framework. Please download it from the Qt distribution site.

Download

  • Python compilation processing script. Please download and install it from the official website.

Download

  • CMake

Download

  • OpenSSL 1.0.2 or later

Download

  • curl

Download

  • Note: openssl and curl are included in the thirdparty folder of this repository. If there are conflicts, please replace them as needed.

Local Integration

  • plv-player-sdk folder: Contains SDK header files, lib, dll, and dylib files. Pulled using PlvPlayerSDK.cmake.
    • mac
      • x86_64
        • include
        • lib
      • arm64
        • include
        • lib
    • windows
      • x86
        • include
        • lib
      • x64
        • include
        • lib

Coding Conventions

Note: The conditional compilation macro for the Windows platform is _WIN32, not WIN32.

Platform Macro
Windows _WIN32
Mac __APPLE__

C++ Demo Built with CMake

  • It is recommended to use Visual Studio 2022 for development. This demo was developed using Visual Studio 2022.

CMake GUI

  • Use CMake GUI to configure build目录 and the required dependencies.

cmake_build.png

  • Set QTDIR to specify the Qt path. (e.g., C:\Qt\5.15.2\msvc2019_64)

QTDIR.png

CMake Bash

mkdir build
cd build

# 以下指令请根据平台选择执行
# Demo工程使用了QT库, 须指定QTDIR
# build in Windows
cmake .. -G "Visual Studio 17 2022" -A x64 -DQTDIR=C:/Qt/5.15.2/msvc2019_64

# build in Macos
cmake -S .. -B . -G "Xcode" -D CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.15 -DQTDIR:PATH=/Users/polyv/Qt/5.15.2/clang_64

C# Demo Opened with Visual Studio

  1. The C# demo only supports Windows.
  2. It is recommended to use Visual Studio 2022 for development.
  3. test/C#: Open polyv-player-demo-csharp.sln directly.

Changelog (Version Changes)

Version Change Notes

联系客服,在线咨询