codingPpushu's dev story

Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better.

0%

TIL-210412

What?

Full stack - Clone Coding
passport-local-mongoose array push populate video routes 보호
mixin play() / pause() mute property webkitRequestFullscreen()
webkitExitFullscreen()

How?

  • Change Password
    => passport-local-mongoose 사용 (이전에 설치함)
    => 암호화 된 패스워드를 현재 패스워드와 비교한다.

  • Adding Creator to Video
    => user 없이 video upload 되지 않게 수정
    => video 생성시 creatro id 저장해야함
    => video id를 array push로 넣는다.
    => populate : object id 타입에만 사용할 수 있음

  • Protecting Video Routes
    => video routes 보호를 위한 코드 작성
    => 영상 업로드 한 유저 영상 모아보기 처리
    => user를 얻을 때 video들도 얻어내야함

  • Starting the Video Player
    => mixin 만들어 템플릿에 코드 추가
    => 스타일링 완료

  • Play Pause Functionallity
    => 재생, 정지 기능 추가
    => play() / pause();

  • Mute Unmute
    => mute property

  • Enter Fullscreen Exit Fullscreen
    => 이벤트 리스너를 변경하고 제거해주는 방식으로 처리
    => webkitRequestFullscreen() / webkitExitFullscreen()