能播放包含视频、图片、字幕等多媒体节目的 App, 适配安卓大屏终端, 提供完全开源的配套信息发布软件. 适应餐饮、零售等行业单机或局域网内应用
1
silencefent 2019-10-22 14:19:42 +08:00
开源,删库,跑路一气呵成
|
2
hzwzo1 2019-10-23 10:59:59 +08:00
|
3
raiz 2019-10-23 11:27:04 +08:00
卖方案的么 哈哈
|
4
raiz 2019-10-23 11:31:24 +08:00
https://github.com/xfirefly/AD_Client/blob/master/app/src/main/java/com/bluberry/adclient/RTKSourceInActivity.java
protected byte[] doInBackground(Void... para) { byte[] data = new byte[0]; /* if (m_HDMIRxPlayer == null || m_HDMIRxPlayer.isPlaying() == false) return null; byte[] data = m_HDMIRxPlayer.capture(type, x, y, width, height, outWidth, outHeight);*/ Log.d(TAG, "datadata " + data.length); Bitmap one = Bitmap.createBitmap(outWidth, outHeight, Bitmap.Config.ARGB_8888); // Copy Bitmap to buffer ByteBuffer buffer = ByteBuffer.wrap(data); one.copyPixelsFromBuffer(buffer); //Canvas canvas = new Canvas(mutableBitmap); // now it should work ok FileOutputStream out = null; try { out = new FileOutputStream(Environment.getExternalStorageDirectory().getAbsolutePath() + "/" + nowTime() + ".png"); one.compress(Bitmap.CompressFormat.JPEG, 100, out); // bmp is your Bitmap instance // PNG is a lossless format, the compression factor (100) is ignored one.recycle(); } catch (Exception e) { e.printStackTrace(); } finally { try { if (out != null) { out.close(); } } catch (IOException e) { e.printStackTrace(); } } return data; 这时在干嘛?? |