Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arteplus7

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arteplus7

Node client for the arte+7 website

  • 0.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

arteplus7

Node client for the arte+7 website

This module provides a clean wrapper around the arte+7 website. It enables you to list available videos, fetch video metadata and stream media content wherever you like.

'fr' and 'de' languages supported.

Installation

$ npm install arteplus7

Examples

List available videos

var arteplus7 = require('arteplus7');

arteplus7.getVideos('fr', function(err, videos) { // 'de' works too
  if(err) throw err;
  videos.forEach(function(video) {
    console.log(video.title);
  });
});

Fetch video metadata

var arteplus7 = require('arteplus7');

var url = 'http://www.arte.tv/guide/fr/044620-002/karambolage';

arteplus7.getVideo(url, function(err, video) {
  if(err) throw err;
  console.log(video);
});

Get a readable video stream

var arteplus7 = require('arteplus7');

var url = 'http://www.arte.tv/guide/fr/044620-002/karambolage';

arteplus7.getVideo(url, function(err, video) {
  if(err) throw err;
  var rtmpStreams = video.streams.filter(function(stream) {
    return stream.type === 'rtmp';
  });
  var stream = arteplus7.createStream(rtmpStreams.shift());
  // stream.pipe() wherever you want
});

Keywords

FAQs

Package last updated on 28 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc