Skip to content

dannywillems/ocaml-cordova-plugin-videoplayer

Repository files navigation

ocaml-cordova-plugin-videoplayer

LGPL-v3 licensed Build Status

Binding to com.moust.cordova.videoplayer

What does cordova-plugin-videoplayer do ?

A Codova plugin that simply allows you to immediately play a video in fullscreen mode.

Source: om.moust.cordova.videoplayer

Repository branches and tags

We are migrating bindings from js_of_ocaml (low level bindings) to gen_js_api (high level bindings).

The gen_js_api binding allows to use pure ocaml types (you don't have to use the ## syntax from js_of_ocaml or Js.string type but only # and string type).

The js_of_ocaml version is available in the branch js_of_ocaml but we recommend to use the gen_js_api version which is the master branch.

How to install and compile your project by using this plugin ?

Don't forget to switch to a compiler >= 4.03.0.

opam switch 4.03.0
opam install cordova-plugin-videoplayer
  • Else, you can use opam by pinning the repository with
opam pin add cordova-plugin-videoplayer https://github.com/dannywillems/ocaml-cordova-plugin-videoplayer.git

To compile your project, use

ocamlfind ocamlc -c -o [output_file] -package gen_js_api -package cordova-plugin-videoplayer [...] -linkpkg [other arguments]

Don't forget to install com.moust.cordova.videoplayer with

cordova plugin add com.moust.cordova.videoplayer

How to use ?

See the official documentation: com.moust.cordova.videoplayer

About

Binding in OCaml to com.moust.cordova.videoplayer using gen_js_api.

Resources

License

Stars

Watchers

Forks

Packages

No packages published