public void Load(FmsOptions options, string manifestUrl, FmsCallback onComplete, FmsCallback onError) { this.manifest = new PassthroughFileManifest(); this.manifest.Prepare(options, ""); Caching.CleanCache(); onComplete(); }
public void Init(FmsOptions options, FmsCallback onReady, FmsCallback onFailed) { string manifestUrl = ""; this.environment = options.Env.ToString().ToLower(); FmsMode mode = options.Mode; if (mode != FmsMode.Passthrough) { if (mode == FmsMode.Versioned) { manifestUrl = string.Format("{0}manifest/{1}/{2}/{3}.json", new object[] { options.RemoteRootUrl, options.CodeName, options.Env.ToString().ToLower(), options.ManifestVersion }); this.manifestLoader = new VersionedFileManifestLoader(options.Engine); } } else { this.manifestLoader = new PassthroughFileManifestLoader(); } this.manifestLoader.Load(options, manifestUrl, onReady, onFailed); }
public void Load(FmsOptions options, string manifestUrl, FmsCallback onComplete, FmsCallback onError) { this.options = options; this.onComplete = onComplete; this.manifestUrl = manifestUrl; Service.Get <StaRTSLogger>().DebugFormat("Setting manifestUrl to {0}", new object[] { manifestUrl }); this.AttemptManifestRequest(0u, null); }