Skip to content

Commit

Permalink
Add an FAQ entry for handling file:// requests
Browse files Browse the repository at this point in the history
Closes #1222

Change-Id: I5cb9dcb07d65d839aa4809faaea9bf2273c69c68
  • Loading branch information
theodab authored and joeyparrish committed Jan 19, 2018
1 parent 98e647b commit 87fd629
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/tutorials/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,22 @@ bandwidth estimate used by Shaka Player to select the first segments. Use the
[`.abr.defaultBandwidthEstimate`][AbrConfiguration] configuration to control
these initial decisions.

<hr>

**Q:** I am getting `UNSUPPORTED_SCHEME` or error code 1000 when loading from
`file://`.

**A:** In a browser environment, trying to load a file from `file://` is
inappropriate. Therefore, we do not provide a default network plugin for such
requests.

In other environments, for example Electron, it is appropriate.
In those cases, before Shaka Player loads a manifest, you can register the
existing http plugin for `file://` requests:
```js
shaka.net.NetworkingEngine.registerScheme('file', shaka.net.HttpPlugin);
```


[386]: https://github.com/google/shaka-player/issues/386#issuecomment-227898001
[489]: https://github.com/google/shaka-player/issues/489#issuecomment-240466224
Expand Down

0 comments on commit 87fd629

Please sign in to comment.