Giter Club home page Giter Club logo

weixincamera's Introduction

##WeiXinCamera 仿微信小视频录像

仿微信实现小视频录制界面,主要实现了按住拍这个功能,视频录制的分辨率和视频大小并不是很好.

自定义textView,重写onLongClick方法,抓取ACTION_UP事件,控制视频的拍摄

在使用Camera时发现了一个很诡异的bug, 在调用Camera的release()方法时,注意如果连续调用多次release()时,java虚拟机会崩溃出错,

主要原因在于java虚拟机在调用系统摄像头时,如果调用不正常,就会出错崩溃,这个异常不是exception, 不是error, 而是java虚拟机底层的异常

所以这个异常是抓取不了的,而且log日志也不会打印,错误也很难发现,所以在调用有关系统硬件的方法时,一定要谨慎

ps: 代码只提供思路

image image

weixincamera's People

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.