VimeoVideo.fromJsonLiveEvent constructor
VimeoVideo.fromJsonLiveEvent(
- dynamic json
Implementation
factory VimeoVideo.fromJsonLiveEvent(json) {
var ret = VimeoVideo(
liveEvent: true,
height: json[0]['streamable_clip']['height'],
width: json[0]['streamable_clip']['width'],
sources: [
_VimeoQualityFile(
quality: _VimeoQualityFile.hls,
file: VimeoSource(
height: json[0]['streamable_clip']['height'],
width: json[0]['streamable_clip']['width'],
url: Uri.parse(json[1]['m3u8_playback_url']),
))
]);
return ret;
}