Esempio n. 1
0
    private void StartPlayNewVideo()
    {
        PlayingURLMode curPlayingMode = PlayerDataControl.GetInstance().CurPlayingMode;

        if ((curPlayingMode == PlayingURLMode.KTTV || curPlayingMode == PlayingURLMode.LiveUrl) &&
            !GlobalVariable.IsInternetReachability())
        {
            ShowErrorMessageAndBackList(ExceptionEvent.EXCEPTION_NETWORK_ERROR, "Cinema.SvrVideoPlayer.OnExceptionEvent.Video.NETWORK_ERROR");
            return;
        }

        Cinema.IsPlayEndWhenKTTVModel = false;
        if (curPlayingMode == PlayingURLMode.Local)
        {
            PlayNewVideo(PlayerDataControl.GetInstance().GetCurPlayIndex());
        }
        else if (curPlayingMode == PlayingURLMode.KTTV)
        {
            PlayNewVideo(PlayerDataControl.GetInstance().GetKKTVVideoVidCid());
        }
        else if (curPlayingMode == PlayingURLMode.LiveUrl)
        {
            PlayNewVideo(PlayerDataControl.GetInstance().GetJVideoDscpInfoByLiveUrl());
        }
    }
    public void SetVideoDescriptionInfo(List <int> idList, Dictionary <int, JVideoDescriptionInfo> descrip)
    {
        if (VideoPlayManage == null)
        {
            VideoPlayManage = new VideoPlayManage();
        }

        VideoIdSortList            = idList;
        VideoIdToJVideoDscpInfoDic = descrip;
        CurPlayingMode             = PlayingURLMode.Local;

        VideoPlayManage.SetVideoTotalCount(idList.Count);
    }
    public void SetVideoVidCid(string vid, string cid, string name, int stereoType)
    {
        if (VideoPlayManage == null)
        {
            VideoPlayManage = new VideoPlayManage();
        }

        _vid           = vid;
        _cid           = cid;
        _name          = name;
        _stereoType    = stereoType;
        CurPlayingMode = PlayingURLMode.KTTV;

        VideoPlayManage.SetVideoTotalCount(0);
    }
 public void SetJVideoDscpInfoByLiveUrl(JVideoDescriptionInfo liveUrlInfo)
 {
     CurPlayingMode = PlayingURLMode.LiveUrl;
     _liveUrlInfo   = liveUrlInfo;
 }