From 420d690bfef56dab3ee18ed02aa52279c655f7ba Mon Sep 17 00:00:00 2001 From: Oded Hutzler <31587052+odedhutzler@users.noreply.github.com> Date: Thu, 24 Jan 2019 15:53:21 +0200 Subject: [PATCH] feat(FEC-8337): add captions and audio language to view events (#29) * add audio and captions to the view event * fix tests --- src/kava-event-model.js | 4 +++- test/src/kava-event-model.spec.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/kava-event-model.js b/src/kava-event-model.js index 588cc2b7..5de4ebe7 100644 --- a/src/kava-event-model.js +++ b/src/kava-event-model.js @@ -18,7 +18,9 @@ export const KavaEventModel: {[event: string]: KavaEvent} = { bufferTime: model.getBufferTime(), bufferTimeSum: model.getBufferTimeSum(), actualBitrate: model.getActualBitrate(), - averageBitrate: model.getAverageBitrate() + averageBitrate: model.getAverageBitrate(), + audioLanguage: model.getLanguage(), + captionsLanguage: model.getCaption() }) }, /** diff --git a/test/src/kava-event-model.spec.js b/test/src/kava-event-model.spec.js index 4c4b3d36..8bc3b483 100644 --- a/test/src/kava-event-model.spec.js +++ b/test/src/kava-event-model.spec.js @@ -53,7 +53,9 @@ describe('KavaEventModel', () => { bufferTime: fakeModel.getBufferTime(), bufferTimeSum: fakeModel.getBufferTimeSum(), actualBitrate: fakeModel.getActualBitrate(), - averageBitrate: fakeModel.getAverageBitrate() + averageBitrate: fakeModel.getAverageBitrate(), + captionsLanguage: fakeModel.getCaption(), + audioLanguage: fakeModel.getLanguage() }); });