提取initcover功能

发布于 2025-01-23 17:57:04 字数 393 浏览 1 评论 0原文

我得到了以下说明:

我需要这样做。

  1. 剪切initcover函数

  2. initcover曾经是

    的功能
  3. 粘贴initcover函数 videoplayer.init 代码。

这是怎么做的?

videoPlayer.init({
  afterPlayerReady: function initCover() {
    manageCover.init(function playVideo() {
      videoPlayer.play();
    });
  }
});

I was given these instructions:

I need to do this.

  1. Cut out the initCover function

  2. Write initCover where the function used to be

  3. Paste the initCover function above the videoPlayer.init code.

How is this done?

videoPlayer.init({
  afterPlayerReady: function initCover() {
    manageCover.init(function playVideo() {
      videoPlayer.play();
    });
  }
});

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

说好的呢 2025-01-30 17:57:04

不确定问题是什么(您是否得到任何错误消息?)...

//# Cut out the "initCover" function
//# Paste the "initCover" function above the "videoPlayer.init" code.
function initCover()
{
    manageCover.init(   
                        function playVideo() 
                        { 
                            videoPlayer.play(); 
                        }
                    );
}

//# Write "initCover" where the function used to be
videoPlayer.init( initCover() ); //# eg: run initCover function from here

Not sure what the problem is, (are you getting any error message?)...

//# Cut out the "initCover" function
//# Paste the "initCover" function above the "videoPlayer.init" code.
function initCover()
{
    manageCover.init(   
                        function playVideo() 
                        { 
                            videoPlayer.play(); 
                        }
                    );
}

//# Write "initCover" where the function used to be
videoPlayer.init( initCover() ); //# eg: run initCover function from here
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文