Skip to content

Commit

Permalink
fix(FEC-9467): progressive sources are not filtered correctly. (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shalom Meoded authored and RoyBregman committed Nov 3, 2019
1 parent ef56308 commit d0e815f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/k-provider/ovp/provider-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ export default class OVPProviderParser {
kalturaSources.filter(source => !isProgressiveSource(source.format)).forEach(addAdaptiveSource);
};
const parseProgressiveSources = () => {
const progressiveSource = kalturaSources.find(source => isProgressiveSource(source.format));
const progressiveSource = kalturaSources.find(source => {
//match progressive source with supported protocol(http/s)
return isProgressiveSource(source.format) && source.getProtocol(OVPProviderParser._getBaseProtocol()) !== '';
});
sources.progressive = OVPProviderParser._parseProgressiveSources(progressiveSource, playbackContext, ks, partnerId, uiConfId, entry.id);
};

Expand Down

0 comments on commit d0e815f

Please sign in to comment.