참고 Url: http://stackoverflow.com/questions/33770902/how-to-write-alternative-code-document-queryselector-in-angular-2-typescript
@Component({ selector: 'my-app', template : `` }) export class App implements AfterViewInit { // myVideo == #my-video @ViewChild('myVideo') myVideo: any; afterViewInit() { let video = this.myVideo.nativeElement; video.src = URL.createObjectURL(yourBlob); video.play(); } //this.renderer.setElementClass(this.video.nativeElement, 'flash', true);
댓글 로드 중…
트랙백을 확인할 수 있습니다
URL을 배껴둬서 트랙백을 보낼 수 있습니다