Skip to content

Instantly share code, notes, and snippets.

View save h264 to disk
private Context mContext;
public void setContext(Context context) {
mContext = context;
createfile();
}
private BufferedOutputStream outputStream;
private void createfile() {
String path = Environment.getExternalStorageDirectory().getAbsolutePath() + SystemClock.elapsedRealtime() + ".h264";
File file = null;
@yeshengwu
yeshengwu / ECDSA-secp256k1-example.java
Created Dec 14, 2018 — forked from nakov/ECDSA-secp256k1-example.java
ECDSA with secp256k1 in Java: generate ECC keys, sign, verify
View ECDSA-secp256k1-example.java
import org.bouncycastle.util.encoders.Hex;
import org.web3j.crypto.*;
import java.math.BigInteger;
public class ECCExample {
public static String compressPubKey(BigInteger pubKey) {
String pubKeyYPrefix = pubKey.testBit(0) ? "03" : "02";
String pubKeyHex = pubKey.toString(16);
String pubKeyX = pubKeyHex.substring(0, 64);
@yeshengwu
yeshengwu / CircularQueue.h
Created Sep 2, 2016 — forked from werediver/CircularQueue.h
Simple implementation of circular queue in Objective-C (for ARC-enabled environment).
View CircularQueue.h
//
// CircularQueue.h
//
// Created on 9/21/13.
//
#import <Foundation/Foundation.h>
@interface CircularQueue : NSObject <NSFastEnumeration>
@yeshengwu
yeshengwu / public video test url
Last active Nov 2, 2018
sometimes find public test video url cost times
View public video test url
m3u8:
http://live.hkstv.hk.lxdns.com/live/hks/playlist.m3u8
http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8
mp4
rtsp://mpv.cdn3.bigCDN.com:554/bigCDN/definst/mp4:bigbuckbunnyiphone_400.mp4
http://0.s3.envato.com/h264-video-previews/80fad324-9db4-11e3-bf3d-0050569255a8/490527.mp4
https://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4
You can’t perform that action at this time.