Skip to content

Commit

Permalink
add isHLS to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
machenmusik committed May 13, 2017
1 parent 84b8894 commit 8c43f5b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/core/utils.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ Checks if device is Gear VR. Returns a `boolean`.

Checks if device is a smartphone. Returns a `boolean`.

## `AFRAME.utils.material`

### `AFRAME.utils.material.isHLS (src, type)`

Given video element src and type, guess whether stream is HLS.
This is used internally to make special accommodations for HLS playback on iOS 10+ using Mobile Safari.

## Function Utils

### `AFRAME.utils.throttle (function, interval [, optionalContext])`
Expand Down Expand Up @@ -181,4 +188,4 @@ AFRAME.registerComponent('foo', {
*/
throttledTick: function (t, dt) {}
});
```
```

0 comments on commit 8c43f5b

Please sign in to comment.