Skip to content

Commit

Permalink
feat(FEC-8337): add captions and audio language to view events (#29)
Browse files Browse the repository at this point in the history
* add audio and captions to the view event

* fix tests
  • Loading branch information
odedhutzler authored Jan 24, 2019
1 parent 9785696 commit 420d690
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/kava-event-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
},
/**
Expand Down
4 changes: 3 additions & 1 deletion test/src/kava-event-model.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
});
});

Expand Down

0 comments on commit 420d690

Please sign in to comment.