Skip to content
Julian Hangstörfer edited this page Jul 13, 2019 · 1 revision

Supported media types:

  • 'video': Regular videos.

Supported url formats:

  • 'embed'(default): Embedded urls.

Creating urls with different media types:

mediaType/formats embed
video

Parsing Examples:

> urlParser.parse('http://player.canalplus.fr/embed/?param=cplus&vid=1365175');
> urlParser.parse('http://www.canalplus.fr/humour/pid1784-les-guignols.html?vid=1365175');
{ 
    mediaType: 'video',
    id: '1365175',
    provider: 'canalplus' 
}

Creation Examples:

> urlParser.create({
    videoInfo: {
      provider: 'canalplus',
      id: '1365175',
      mediaType: 'video'
    },
    format: <format>
  })
'embed': 'http://player.canalplus.fr/embed/?param=cplus&vid=1365175',
Clone this wiki locally