lab.naminsik
  • Javascript, jQuery
  • Reactjs
  • React Native
  • iOS
  • Android
  • AWS
  • Server
  • Html, CSS
  • Php
  • asp .net
  • SQL
  • Word Press
search
keywords
  • Android 2017‧11‧08

    SurfaceView를 이용한 비디오 플레이어 만들기 코드

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity" > <SurfaceView android:id="@+id/surfaceView1" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout> In the MainAcitivity class, in the onCreate method, you write code to create a reference to SurfaceView, get the surface holder, add Callback interface to the holder, and create MediaPlayer instance. In the onSurfaceCreate method (you need […]

  • Android 2017‧11‧08

    surfaceHolder.addCallback(this); 에 this 안 먹힐 때

    아마 미디어 파일 중에 동영상을 띄우려고 surfaceView를 쓰는 경우에 surfaceHolder.addCallback(this); 이 코드를 넣어서 만드는 경우가 있을 것이다. 이 때 this가 오류가 나고 마우스를 올리면 오류 내용에 'addCallback (android.view.SurfaceHolder.Callback) in SurfaceHolder cannot be applied to~~~~' 라고 써있을 것이다. 코드 중에  mainActivity 를 감싼 부분을 찾아서 implements SurfaceHolder.Callback 을 뒤에 써준다. public class MainActivity extends AppCompatActivity implements SurfaceHolder.Callback { 이렇게 […]

popular

  • 그림문자인 이모지(emoji) 웹에 사용하기
  • 동영상 스트리밍 서비스 구축 (AWS s3/cloudFront, HLS, video.js)
  • ffmpeg 이용해서 HLS 파일 인코딩
  • 디바이스 현재 아이피 주소 가져오기
  • 관리자 페이지 중 위젯에서 드래그 & 드롭이 안되는 현상
  • [회고] Github Actions가 갑자기 안된다. (Waiting for a runner to pick up this job…)
  • jQuery - 스마트폰 스크린 회전 감지 스크립트
  • JS - datepicker(jQueryUI,달력) 이용시 두개 날짜 범위 설정
  • refers to a value, but is being used as a type here. Did you mean 'typeof'
  • 이미지와 텍스트 정렬 (위 이미지, 아래 텍스트)

comment

  • 감사합니다!
  • 감사합니다~
  • 잘 해결 되셨다니 다행입니다!...
  • 정말 감사합니다. 덕분에 해결했습니다!...
  • 유용한정보 대단히 감사합니다....