본문 바로가기
OPENEDX

가상현실 설치 (vimeo360)

by SAMSUNG CLOUD-OKY 2021. 7. 19.
반응형

https://github.com/open-craft/xblock-virtualreality

 

GitHub - open-craft/xblock-virtualreality: An XBlock which embeds virtual reality videos

An XBlock which embeds virtual reality videos. Contribute to open-craft/xblock-virtualreality development by creating an account on GitHub.

github.com

 

virtualreality코스 에서 xblock 을 활성화하려면 :

  1. Studio에서 로 이동합니다 Settings > Advanced Settings.
  2. 찾기] Advanced Module List필드를 추가합니다 "virtualreality"그 목록에.
  3. 과정에 단원을 추가하고 Advanced버튼을 클릭 하여 Vimeo구성 요소 를 추가합니다 .
  4. Edit동영상 URL을 추가 하려면 클릭 하세요.
  5. 저장을 클릭하여 코스에 비디오를 추가합니다.

 

=============================================

     1) sudo -H -u edxapp bash
     2) cd
     3) source edxapp_env
     4) pip install "git+https://github.com/open-craft/xblock-virtualreality@master#egg=xblock-virtualreality"

 

 

     5) 설치후, 서비스 재시작 할것
         재시작 : /edx/bin/supervisorctl restart all
         확인 : sudo /edx/bin/supervisorctl status

 

 

 

 


     6) 폴더 이동 (templates 폴더 생성)
        : $ cd /edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/virtualreality/templates
        -----------------------------------------------------------------------------
         # vi vr.html 파일 생성
         <div class="vrvideo">
           <h2>{{title}}</h2>
           <p>{{description}}</p>
           <iframe src="{{embed_code}}" width="100%" height="274" frameborder="0"
             webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
         </div>
        -----------------------------------------------------------------------------

 

 

 

 

 

 


     7) 권한 맞으면 안해도 됨
        : ubuntu@ip-10-20-24-185:/edx/app/edxapp/venvs/edxapp/lib/python3.8/site-packages/virtualreality/templates$ sudo chown edxapp:edxapp vr.html

 

 

 

 

반응형

댓글