激励视频

1. 激励视频

LjDySdk.playDyVideo(myBehaviour, videoAdId, new MyVideoPlayNotify());
参数 类型 描述 是否必填
behaviour Behaviour 可吊起请求对象
videoAdId string 广告位 id
notify VideoPlayNotify 加载成功或未正常看完视频的调用方法

		
    // 播放视频广告
    public void beginPlayVideo()
    {
        string videoAdId = "qc1n788ik521134i3b";
        LjDySdk.playDyVideo(myBehaviour, videoAdId, new MyVideoPlayNotify());
    }

    class MyVideoPlayNotify : VideoPlayNotify
    {
        public void notifyOnClose(bool playFinish, int count)
        {
            DySdkLog.Log("MyVideoPlayNotify notifyOnClose playFinish =" + playFinish+",count="+count);
        }

        public void notifyOnError(int errCode, string errMsg)
        {
            DySdkLog.Log("MyVideoPlayNotify notifyOnError errCode =" + errCode+", errMsg="+errMsg);
        }
    }