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

  • 키보드 키 코드
  • Photoshop - 폰트는 폴더를 따로 관리하는 것이 좋다.
  • 풀사이즈 배경으로 동영상 or 이미지 삽입하기
  • jQuery - a 태그의 href 값 변경하기
  • findDOMNode) is not a function 오류 발생시
  • 안드로이드 - 네트워크 끊겼을 때 webview에 '웹페이지를 찾을 수 없음' 안뜨게 하기
  • 게시판 플러그인 KBoard 설치법 및 사용법
  • jQuery-$.cookie 플러그인 사용법 (쿠키 활용편)
  • 리눅스 명령어(Linux Command)
  • 음악 플레이 리스트 만들기 (MediaPlayer)

comment

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