MCPcopy Create free account
hub / github.com/shoutem/ui / constructor

Method constructor

components/Video/VideoSourceReader.js:44–49  ·  view source on GitHub ↗
(source, playerParams)

Source from the content-addressed store, hash-verified

42
43export default class VideoSourceReader {
44 constructor(source, playerParams) {
45 this.source = source;
46 this.playerParams = playerParams;
47 this.isYouTube = !!getYouTubeVideoId(source);
48 this.isVimeo = !!getVimeoVideoId(source);
49 }
50
51 isEmbeddableVideo() {
52 return this.isYouTube || this.isVimeo;

Callers

nothing calls this directly

Calls 2

getYouTubeVideoIdFunction · 0.85
getVimeoVideoIdFunction · 0.85

Tested by

no test coverage detected