整合教程:
1、下载artplayer
下载地址1:https://gitee.com/522497065/ArtPlayer
下载地址2:https://codeload.github.com/zhw2590582/ArtPlayer/zip/refs/heads/master
详细教程: https://artplayer.org/document/
2、整合苹果CMS
1.将附件“artplayer”文件夹和“artplayer.html”上传至苹果CMS的目录“/static/player/”
2.登录苹果CMS后台:“视频→播放器→添加”,可参考下图
3.基本设置好了以后,点击“播放器代码”,并粘贴:
1 | MacPlayer.Html = '<iframe border="0" src="' +maccms.path+ '/static/player/artplayer.html" width="100%" height="100%" marginWidth="0" frameSpacing="0" marginHeight="0" frameBorder="0" scrolling="no" vspale="0" noResize></iframe>' ; MacPlayer.Show(); |
4.保存后,一定要清理缓存,如前台还没有加载,可在播放页连按两次“Ctrl+F5”,如还未成功加载请检查添加播放器时编码是否正确!