Skip to content

Commit

Permalink
Fixed table formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Miranda authored and xqq committed Aug 4, 2017
1 parent 140ee9c commit 023ab2e
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,36 +183,36 @@ interface LoggingControl {

A series of constants that can be used with `addEventListener`. They require the prefix `flvjs.Events`.

Event | Description
------|---------------
ERROR | An error occurs when flv.js attempts to attach and play a media source
LOADING_COMPLETE | The source specified for the player has been loaded and ready to play
RECOVERED_EARLY_EOF | When an unexpected end of file comes up and the player attempts to continue playing the media
MEDIA_INFO | Provides information such as segment, duration, filesize, etc.
STATISTICS_INFO | Provides information such as URL, speed, current segment, etc.
| Event | Description |
| ------------------- | --------------------------------------------------------------------------------------------- |
| ERROR | An error occurs when flv.js attempts to attach and play a media source |
| LOADING_COMPLETE | The source specified for the player has been loaded and ready to play |
| RECOVERED_EARLY_EOF | When an unexpected end of file comes up and the player attempts to continue playing the media |
| MEDIA_INFO | Provides information such as segment, duration, filesize, etc. |
| STATISTICS_INFO | Provides information such as URL, speed, current segment, etc. |

### flvjs.ErrorTypes

The possible errors that can come up when playing FLV media. They require the prefix `flvjs.ErrorTypes`.

Error | Description
------|---------------
NETWORK_ERROR | Related to the network only
MEDIA_ERROR | Related to the media only (attaching media, unsupported format or codec)
OTHER_ERROR | Any other unspecified error
| Error | Description |
| ------------- | ------------------------------------------------------------------------ |
| NETWORK_ERROR | Related to the network only |
| MEDIA_ERROR | Related to the media only (attaching media, unsupported format or codec) |
| OTHER_ERROR | Any other unspecified error |


### flvjs.ErrorDetails

Provide more verbose explanation for Network and Media errors. They require the prefix `flvjs.ErrorDetails`.

Error | Description
------|---------------
NETWORK_EXCEPTION | Related to any issues with the network; contains a `code` and `message`
NETWORK_STATUS_CODE_INVALID | Related to an invalid HTTP code status
NETWORK_TIMEOUT | Related to timeout connection issues
NETWORK_UNRECOVERABLE_EARLY_EOF | Related to unexpected end of file
MEDIA_MSE_ERROR | Related to media when it's attached
MEDIA_FORMAT_ERROR | Related to the demuxer that extracts the content of the FLV file
MEDIA_FORMAT_UNSUPPORTED | Any errors when flv.js cannot play due to unsupported media format
MEDIA_CODEC_UNSUPPORTED | Any errors when flv.js cannot play due to unsupported media codecs
| Error | Description |
| ------------------------------- | ----------------------------------------------------------------------- |
| NETWORK_EXCEPTION | Related to any issues with the network; contains a `code` and `message` |
| NETWORK_STATUS_CODE_INVALID | Related to an invalid HTTP code status |
| NETWORK_TIMEOUT | Related to timeout connection issues |
| NETWORK_UNRECOVERABLE_EARLY_EOF | Related to unexpected end of file |
| MEDIA_MSE_ERROR | Related to media when it's attached |
| MEDIA_FORMAT_ERROR | Related to the demuxer that extracts the content of the FLV file |
| MEDIA_FORMAT_UNSUPPORTED | Any errors when flv.js cannot play due to unsupported media format |
| MEDIA_CODEC_UNSUPPORTED | Any errors when flv.js cannot play due to unsupported media codec |

0 comments on commit 023ab2e

Please sign in to comment.