1.0.1 • Published 5 years ago

playkit-js-hls-sondq v1.0.1

Weekly downloads
4
License
AGPL-3.0
Repository
github
Last release
5 years ago

PlayKit JS HLS - HLS.JS Adapter for the PlayKit JS Player

Build Status code style: prettier npm.io npm.io

PlayKit JS HLS adapter integrates HLS.JS with the PlayKit JS Player.

PlayKit JS HLS is written in ECMAScript6, statically analysed using Flow and transpiled in ECMAScript5 using Babel.

Getting Started

Prerequisites

The adapter requires PlayKit JS Player to be loaded first.

The adapter uses the HLS.JS javascript library.

Installing

First, clone and run yarn to install dependencies:

git clone https://github.com/kaltura/playkit-js-hls.git
cd playkit-js-hls
yarn install

Building

Then, build the player

yarn run build

Embed the library in your test page

Finally, add the bundle as a script tag in your page, and initialize the player

<script type="text/javascript" src="/PATH/TO/FILE/playkit.js"></script>
<script type="text/javascript" src="/PATH/TO/FILE/playkit-hls.js"></script>
<div id="player-placeholder"" style="height:360px; width:640px">
<script type="text/javascript">
var playerContainer = document.querySelector("#player-placeholder");
var config = {...};
var player = playkit.core.loadPlayer(config);
playerContainer.appendChild(player.getView());
player.play();
</script>

Configuration

HLS.JS configuration options, documented @HLS.JS API docs, can be passed via the PlayKit JS Player config.

The configuration is exposed via the playback section:

{
  playback: {
    options: {
      html5: {
        hls: {
          // HLS.JS configuration options here
        }
      }
    }
  }
}

Running the tests

Tests can be run locally via Karma, which will run on Chrome, Firefox and Safari

yarn run test

You can test individual browsers:

yarn run test:chrome
yarn run test:firefox
yarn run test:safari

And coding style tests

We use ESLint recommended set with some additions for enforcing Flow types and other rules.

See ESLint config for full configuration.

We also use .editorconfig to maintain consistent coding styles and settings, please make sure you comply with the styling.

Compatibility

TBD

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the AGPL-3.0 License - see the LICENSE.md file for details

abbrevacornJSONStreamacceptsacorn-dynamic-importacorn-jsxajvajv-keywordsamdefinealign-textansi-escapesansi-htmlansi-regexafteransi-stylesany-observableapp-root-pathargparsearr-flattenarr-diffarr-unionarray-flattenanymatcharray-find-indexarray-slicearray-ifyarray-unionarray-uniquearraybuffer.slicearray-uniqasn1.jsassertarrifyassertion-errorasyncassign-symbolsasync-eachatobbabel-code-framebabel-helper-call-delegatebabel-generatorbabel-helper-define-mapbabel-helper-optimise-call-expressionbabel-helper-get-function-aritybabel-helper-function-namebabel-helper-replace-supersbabel-messagesbabel-plugin-check-es2015-constantsbabel-helpersbabel-plugin-syntax-class-propertiesbabel-plugin-syntax-flowbabel-helper-hoist-variablesbabel-plugin-transform-es2015-arrow-functionsbabel-helper-regexbabel-plugin-transform-es2015-block-scopingbabel-plugin-transform-es2015-block-scoped-functionsbabel-plugin-transform-es2015-classesbabel-plugin-transform-es2015-computed-propertiesbabel-plugin-transform-es2015-destructuringbabel-plugin-transform-es2015-for-ofbabel-plugin-transform-es2015-duplicate-keysbabel-plugin-transform-es2015-literalsbabel-plugin-transform-es2015-function-namebabel-plugin-transform-es2015-modules-commonjsbabel-plugin-transform-es2015-modules-amdbabel-plugin-transform-es2015-modules-systemjsbabel-plugin-transform-es2015-object-superbabel-plugin-transform-es2015-modules-umdbabel-plugin-transform-es2015-shorthand-propertiesbabel-plugin-transform-es2015-parametersbabel-plugin-transform-es2015-spreadbabel-plugin-transform-es2015-sticky-regexbabel-plugin-transform-es2015-template-literalsbabel-plugin-transform-es2015-typeof-symbolbabel-plugin-transform-es2015-unicode-regexbabel-runtimebabel-plugin-transform-regeneratorbabel-traversebabel-templatebabel-polyfillbabel-typesbabylonbasebacko2balanced-matchbabel-plugin-transform-strict-modebase64-jsbase64idbatchbase64-arraybufferbetter-assertbig.jsblobbluebirdbinary-extensionsbn.jsbody-parserbrorandbonjourbrace-expansionbracesbrowser-stdoutbrowserify-aesbrowserify-cipherbrowserify-desbrowserify-rsabrowserify-signbuffer-indexofbuiltin-modulesbufferbuiltin-status-codesbytesbrowserify-zlibcache-basecallsitebuffer-xorcallsitescaller-pathcamelcasecenter-aligncamelcase-keyschalkchokidarcipher-baseci-infocircular-jsonclass-utilscli-cursorcli-truncatecli-spinnerscli-widthcliuicocode-point-atcollection-visitcolor-namecolor-convertcolorscombine-listscommondircompare-funccomponent-bindcommandercomponent-inheritcompressiblecomponent-emitterconcat-mapcompressionconcat-streamconnect-history-api-fallbackconsole-browserifyconnectcontains-pathcontent-dispositionconstants-browserifyconventional-changelog-angularcontent-typeconventional-changelogconventional-changelog-atomconventional-changelog-emberconventional-changelog-codemirrorconventional-changelog-eslintconventional-changelog-expressconventional-changelog-coreconventional-changelog-jscsconventional-changelog-jqueryconventional-changelog-writerconventional-commits-filterconventional-changelog-jshintconvert-source-mapconventional-commits-parserconventional-recommended-bumpcookiecopy-descriptorcore-util-iscookie-signaturecore-jscosmiconfigcreate-ecdhcreate-hmaccross-spawncreate-hashcustom-eventcurrently-unhandledcrypto-browserifydargsddateformatdebugdecode-uri-componentdedentdate-fnsdeep-eqldefine-propertydeep-isdecamelizedeep-equaldepddes.jsdeldetect-indentdiffdestroydetect-nodediffie-hellmandns-packetdidns-equaldoctrinedns-txtdom-serializedomain-browserdot-propee-firstellipticelegant-spinnerengine.ioemojis-listengine.io-clientencodeurlentengine.io-parsererror-exerrnodate-nowes6-iteratores5-extes6-setenhanced-resolvees6-symboles6-weak-mapescape-htmles6-mapescape-string-regexpescodegenescopeeslint-module-utilsesqueryesprimaespreeetagesrecurseevent-emitteresutilseventemitter3eventseslint-import-resolver-nodeeventsourceestraverseevp_bytestokeyexit-hookexpand-bracketsexecaexpand-bracesexpressextendexpand-rangeextend-shallowextglobfast-difffast-deep-equalfiguresfast-levenshteinfaye-websocketfile-entry-cachefilename-regexfinalhandlerfind-cache-dirfind-upfill-rangefor-ownfind-parent-dirfor-inflat-cacheformatioforwardedfs-accessfragment-cachefreshfs-readdir-recursivefs.realpathfunction-bindget-caller-fileget-pkg-repoget-own-enumerable-property-symbolsgenerate-object-propertyget-stdinget-streamgenerate-functionget-valuegit-remote-origin-urlgithub-url-from-gitgitconfiglocalgit-semver-tagsglob-basegit-raw-commitsglobglob-parentgraceful-fsglobbyglobalsgraceful-readlinkgrowlhashandlebarshas-ansihas-binaryhandle-thinghas-valuehas-flaghas-corshash-basehmac-drbghas-valueshome-or-tmphash.jshosted-git-infohpack.jshtml-entitieshttp-deceiverhttp-proxy-middlewarehttp-proxyhttp-errorshttps-browserifyieee754iconv-liteignoreindexofimurmurhashindent-stringinflightinheritsinternal-ipinvariantinvert-kviniinquireripinterpretipaddr.jsis-arrayishis-accessor-descriptoris-bufferis-binary-pathis-data-descriptoris-builtin-moduleis-ciis-descriptoris-directoryis-dotfileis-equal-shallowis-extendableis-extglobis-finiteis-fullwidth-code-pointis-my-json-validis-globis-numberis-objis-observableis-path-cwdis-posix-bracketis-path-insideis-plain-objectis-path-in-cwdis-promiseis-primitiveis-regexpis-subsetis-streamis-utf8is-windowsis-text-pathisbinaryfileis-propertyisexeisarrayistanbul-lib-instrumentisobjectjest-docblockjest-get-typeistanbul-lib-coveragejs-tokensjest-validatejs-loggerjson-loaderjs-yamljsescjson-parse-better-errorsjson-schema-traversejson-stringify-safejson-stable-stringifyjson3jsonifyjsonpointerjson5kind-oflazy-cachelcidlevnjsonparselevenis-resolvablelistr-silent-rendererlistr-update-rendererlistr-verbose-rendererloader-fs-cachelistrload-json-fileloader-utilslodash._baseassignlodashlocate-pathloader-runnerlodash._basecopylodash._reinterpolatelodash._getnativelodash._basecreatelodash._isiterateecalllodash.condlodash.createlodash.isarraylodash.keyslodash.isargumentslog-updatelodash.templatesettingslodash.templatelog-symbolslog4jslolexlongestloose-envifyloud-rejectionlru-cachemap-cachemap-objmedia-typermap-visitmemmemory-fsmethodsmeowmerge-descriptorsmicromatchmiller-rabinmimemime-dbmime-typesmimic-fnminimalistic-assertminimalistic-crypto-utilsmixin-deepminimatchmodify-valuesmsminimistmkdirpnanomatchmulticast-dnsmulticast-dns-service-typesmute-streamnative-promise-onlynatural-comparenode-forgenegotiatornoptnode-libs-browsernormalize-package-datanormalize-pathnpm-pathnpm-run-pathnpm-whichnull-checknumber-is-nanobject-componentobject-visitobject-assignobject-hashobject-copyobject.omitobufobject.pickon-headersonceon-finishedonetimeopnoptimistoptionatororaoriginalos-browserifyoptionsos-localeoutput-file-syncos-tmpdirp-finallyp-limitpakop-locateparse-asn1p-mapos-homedirparse-globparse-jsonparseqsparsejsonparse-github-repo-urlparseurlpascalcasepath-browserifypath-is-absoluteparseuripath-existspath-is-insidepath-keypath-parsepbkdf2path-to-regexppath-typepinkiepifypinkie-promisepluralizepkg-dirplease-upgrade-nodeposix-character-classesportfinderprelude-lspreservepretty-formatprivateprocessprogresspseudomapproxy-addrprrprocess-nextick-argspublic-encryptqpunycodeqsqjobsquerystring-es3querystringrandombytesquerystringifyrange-parserrandomaticread-pkgraw-bodyreadable-streamread-pkg-upreadline2readdirprechoirregenerateredentregex-cacheregenerator-transformregenerator-runtimeregex-notregjsgenregexpu-coreregjsparserrepeat-elementremove-trailing-separatorrequire-directoryrequire-main-filenamerequire-uncachedrepeatingrequireindexrequires-portrepeat-stringresolve-fromresolveretright-alignrestore-cursorripemd160rimrafresolve-urlrun-asyncrx-litesafe-bufferrxjssamsamsafe-regexselect-hoseselfsignedsemver-compareserve-indexsemversendserve-staticset-blockingset-valueset-immediate-shimsetimmediatesetprototypeofshebang-regexsha.jsshebang-commandsignal-exitshelljssnapdragonslashslice-ansisnapdragon-utilsocket.io-adaptersnapdragon-nodesocket.io-clientsocket.iosocket.io-parsersockjssockjs-clientsource-mapsource-map-supportsource-map-urlsource-map-resolvespdx-correctspdx-expression-parsespdx-license-idsspdysplitspdy-transportsplit-stringsource-list-mapsplit2staged-git-filessprintf-jsstatusesstream-browserifystatic-extendstring-argvstream-httpstring-widthstring_decoderstrip-bomstringify-objectstrip-ansistrip-indentstrip-eofstrip-json-commentssupports-colorsymbol-observabletabletapabletext-encodingtest-excludetext-tabletext-extensionsthroughthunkythrough2tmptimers-browserifyto-arrayto-arraybufferto-regexto-fast-propertiesto-object-pathto-regex-rangetrim-newlinestrim-off-newlinestrim-righttryittslibtty-browserifytype-checktype-istype-detecttypedarrayua-parser-jsuglify-jsunion-valueultronuglify-to-browserifyunpipeunset-valueurixurl-parseurl-toolkiturluseuser-homeuseragentutilutils-mergeutil-deprecateuuidv8flagsvalidate-npm-package-licensevm-browserifyvoid-elementsvarywatchpackwbufwebpack-dev-middlewarewebsocket-driverwebsocket-extensionswebpack-sourceswhichwhich-modulewindow-sizewordwrapwrappywritewrap-ansiwswtf-8xmlhttprequest-sslxtendy18nyargsyallistyeastyargs-parser
1.0.1

5 years ago

1.0.0

5 years ago