Exemplo n.º 1
0
        public override HRESULT GetURI(out string uri)
        {
            HRESULT hresult = HRESULT._S_OK;
            string  uriOut  = null;

            if (!ZuneApplication.Service.InCompleteCollection(this._zuneMediaId, EContentType.Video) && !string.IsNullOrEmpty(this._uri))
            {
                uriOut = this._uri;
            }
            else
            {
                EContentUriFlags eContentUriFlags = EContentUriFlags.None;
                if (this.IgnoreCollection)
                {
                    eContentUriFlags |= EContentUriFlags.IgnoreCollection;
                }
                if (this.FallbackToPreview)
                {
                    eContentUriFlags |= EContentUriFlags.FallbackToPreview;
                }
                if (this.ForcePreview)
                {
                    eContentUriFlags |= EContentUriFlags.ForcePreview;
                }
                hresult = ZuneApplication.Service.GetContentUri(this._zuneMediaId, EContentType.Video, eContentUriFlags, out uriOut, out this._zuneMediaInstanceId);
            }
            if (!string.IsNullOrEmpty(uriOut) && uriOut.Contains(".ism/manifest"))
            {
                this._isStreaming = true;
            }
            uri = uriOut;
            return(hresult);
        }
Exemplo n.º 2
0
 public HRESULT GetContentUri(Guid guidMediaId, EContentType eContentType, EContentUriFlags eContentUriFlags, EMediaFormat eMediaFormat, EMediaRights eMediaRights, out string uriOut, out Guid mediaInstanceIdOut)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 3
0
 public HRESULT GetContentUri(Guid guidMediaId, EContentType eContentType, EContentUriFlags eContentUriFlags, bool fIsHD, bool fIsRental, out string uriOut)
 {
     throw new NotImplementedException();
 }