Wood Chen

Adding the ckplayer Player to maccms

0 comments475 views179 words

This post was translated from Chinese by AI. If anything reads oddly, the Chinese original is authoritative. 中文原文

ckplayer supports formats such as m3u8,mp4,ts,flv and works pretty well.
I have to say, both the answers I found through search engines and the AI responses were wrong.
After adding the ckplayer player, you only need to import m3u8 sources. Everything plays through your own player, which is stable and avoids potential ads from third-party players.

For some reason, the code in this article is missing. See the new post: https://q58.org/t/topic/111

Download the package from the official website

Link: https://www.ckplayer.com/

After downloading and extracting it, put the ckplayer folder in your website's static/player directory.

The folder should look like this:

1696092543975.png
1696092553222.png

Add the player

Create two files under static/player: ckplayer.html and ckplayer.js

ckplayer.html contents


        
        
        
        

        
        
        
        
        
        
        

        

ckplayer.js contents

MacPlayer.Html = '';
MacPlayer.Show();

Configure it in the admin panel

Add a player: first-page settings

Add a player using the player code specified in the imported video data

1696092756364.png

Second-page settings

This is just the contents of ckplayer.js

1696092814741.png

It should now work on the public-facing site.

1696092873229.png

Last updated 2024-09-02

Related posts

Comments 0