If you are looking for software to use, go to Huajun Software Park! software release
Location: front pageTutorial strategyTutorialComputer software tutorials CKplayer station...

CKplayer off-site call example tutorial

Author: The cat that doesn’t eat fish Date: 2017-07-27

Then: you can follow the a parameter with our video article ID to play the corresponding video, and you can also share it to other websites and call it directly (similar to the sharing html code of video websites such as Youku):

CKplayer
CKplayer

Er: For better understanding, let’s take the official ckplayer version 5.4 package as an example. First go to the official website to download one and then unzip it to the directory. For example, I unzipped the package to: /demo/ckplayer/pat/;

First: prepare an ASP/PHP file to obtain your own video address (the following contents are included in the sample package provided later), and place it in the same directory as the player, such as: url.php. Here, the sample program only has id= 1 and id=2 are available, you can write the program according to the situation;

Then: Open the ckplayer/ckplayer.txt file. The content is as follows. To be on the safe side, please use absolute addresses instead:

CKplayer
CKplayer

Note: The important parameters are that f/s/x respectively represent the video address ckplayer_flv ([$pat] this part refers to the value after ckplayer.swf?a= above), the transmission method ckplayer_style, and the style file ckplayer_xml.

Then: Open the ckplayer/ckplayer.xml file, which is the style file, and just change the first line to an absolute URL, that is:

CKplayer
CKplayer

Try: Now you try to visit: http://www.fufuok.com/demo/ckplayer/pat/ckplayer/ckplayer.swf?a=2, haha, you succeeded, try also a=1.

Use: We use similar shared html code to call here, that is, embed call.

PS: In ckplayer.txt you can set pre-roll/pause ads, and in ckplayer.xml you can set rolling subtitle ads. The above modifications and files do not affect the use of js code in the website to call the player.

Related articles