roblan / shairport-sync-reader

shairport-sync metadata reader for nodejs
MIT License
11 stars 7 forks source link

Example Code #2

Closed rwelte closed 6 years ago

rwelte commented 6 years ago

Hi,

unfortunately I'm not able to get your Code working ;-) Could you please give me a peace of code, how you handle the events? E.g. to get the result of the event "meta"

Thanks in advance!

roblan commented 6 years ago
const reader = new ShairportReader({ path: '/tmp/shairport-sync-metadata' });
reader.on('meta', (data) => { console.log(data); });

should work

rwelte commented 6 years ago

works :-)

Thanks a lot.

roblan commented 6 years ago

No problem :) happy to hear that someone is using it:)