Git 显示中文

Run the command as below:

git config --global core.quotepath false

TCP Close Diagram

Alt none

Launching iOS app into foreground

Alt nont



使用代码获取 iOS Framework 版本号

Add these lines in your Framework header file.

eg. PrefixFramework.h

//! Project version number for LocalSearch.
FOUNDATION_EXPORT double PrefixFrameworkVersionNumber;

//! Project version string for LocalSearch.
FOUNDATION_EXPORT const unsigned char PrefixFrameworkVersionString[];

There arguments will be filled by iOS framework logic.And you can get the version like this:

+(NSString*) playerVersion {
    NSRange range_, rangeslash;
    NSString *version = [[NSString alloc]initWithUTF8String:(const char*)PrefixFrameworkVersionString];
    range_ = [version rangeOfString:@"-"];
    rangeslash = [version rangeOfString:@"\n"];
    if (range_.location != NSNotFound) {
        NSRange rangleVersion;
        rangleVersion.location = range_.location + 1;
        rangleVersion.length = rangeslash.location - range_.location - 1;
        return [version substringWithRange:rangleVersion];
        return @"Unknown";

Read H264 NALU

ffmpeg  -i  inputfile -vcodec copy -vbsf h264_mp4toannexb -an output.h264

h264_analyze  output.h264

Download h264bitstream