Socket
Socket
Sign inDemoInstall

arteplus7

Package Overview
Dependencies
18
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    arteplus7

Node client for the arte+7 website


Version published
Maintainers
1
Install size
2.41 MB
Created

Readme

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

Last updated on 28 Oct 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc