npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ovenmediaengine-ts-sdk

v1.0.3

Published

Un SDK TypeScript pour interagir avec l'API REST d'Oven Media Engine.

Downloads

7

Readme

Oven Media Engine TypeScript SDK

This SDK provides a TypeScript interface for seamlessly interacting with the Oven Media Engine (OME) REST API.

Installation

Use NPM to install the SDK:

npm install ovenmediaengine-ts-sdk

Usage

  1. Initialization

Import the SDK and initialize it with your OME server's base URL.

import OvenMediaEngineSDK from 'ovenmediaengine-ts-sdk';

const omeSDK = new OvenMediaEngineSDK({ baseURL: 'http://your-ome-server-address:port' });
  1. Authentication
omeSDK.setAuthorization('your_access_token');
  1. Version
omeSDK.setVersion('v1');
  1. Making API Calls

Use the provided methods from the SDK to make calls to the API.

// Example: Fetch the list of Virtual Host
omeSDK.getVirtualHosts().then(response => {
    console.log(response.data);
}).catch(error => {
    console.error("Error fetching Virtual Host:", error);
});

Available Methods

  • getVirtualHosts Get Virtual Host List
  • createVirtualHost Create Virtual Host
  • getVirtualHost Get Virtual Host Information
  • deleteVirtualHost Delete Virtual Host
  • reloadAllCertificates Reload All Certificates
  • reloadAllCertificate Reload Certificate
  • getApps Get Application List
  • createApp Create Application
  • getApp Get Application Information
  • patchApp Patch Application Information
  • deleteApp Delete Application
  • getOutputProfiles Get Output Profile List
  • createOutputProfile Create Output Profile
  • getOutputProfile Get Output Profile Information
  • deleteOutputProfile Delete Output Profile
  • startRecording Start Recording
  • stopRecording Stop Recording
  • getRecordingState Get Recording State
  • startPushPublishing Start Push Publishing
  • stopPushPublishing Stop Push Publishing
  • getPushPublishingState Get Push Publishing State
  • getStreams Get Stream List
  • createStream Create Stream (Pull)
  • getStream Get Stream Info
  • deleteStream Delete Stream
  • sendEvent Send Event
  • startDump Start Dump
  • stopDump Stop Dump
  • getVirtualHostStatistics Get Statistics of Virtual Host
  • getApplicationStatistics Get Statistics of Application
  • getStreamStatistics Get Statistics of Stream

[Add further methods here as they get added to the SDK.]

Development

To test the SDK during development, use:

npm run dev

This will run the sample script located in the samples folder.

Contributions

Contributions are welcome! Please create an issue or pull request for any suggestions or improvements.

License