1.0.10 • Published 2 years ago
airy-epg-viewer v1.0.10
Airy Epg viewer
Display scheduler by xml link.
Usage
npm install airy-epg-viewer
import React from 'react';
import AiryEpgViewer from 'airy-epg-viewer';
<AiryEpgViewer url="https://epg.showfer.com/airy/655bca6d577abc6e57f9e344/Airy" timeZone="America/Los_Angeles"/>
Props
Prop | Description | Default |
---|---|---|
url | The url of a video | |
timeZone | Timezone | |
width | Set the width of the schedule | 100% |
height | Set the height of the schedule | 100% |
Standalone scheduler
If you aren’t using React, you can still render a scheduler using the standalone library:
<script src="https://cdn.jsdelivr.net/npm/airy-epg-viewer@latest/dist/airy-epg-viewer.standalone.min.js"></script>
<script>
const container = document.getElementById('container');
const url = 'https://epg.showfer.com/airy/655bca6d577abc6e57f9e344/Airy';
renderAiryEpgViewer(container, {
url,
timeZone: 'America/Los_Angeles',
});
</script>