Giter Site home page Giter Site logo

devnotes's Introduction

Hi there 👋

My name is Damonwong, an iOS software engineer at Alibaba Group.

  • 🔭 I’m currently working on Taobao for iOS, and a side project called iOS-Weekly
  • 🌱 I’m currently learning Swift and SwiftUI
  • 👯 I’m looking to software engineer on join us working for Alibaba Group
  • 🤔 I’m looking for help with contributors for iOS-Weekly
  • 💬 Ask me about iOS development
  • 📫 How to reach me: weibo@damonwong
  • 😄 Pronouns: He
  • ⚡ Fun fact: There is nothing more fun than coding (#^.^#)

Damonvvong's Github Stats

devnotes's People

Contributors

damonvvong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

devnotes's Issues

你的demo如果录制视频点击几次屏幕后会崩溃,reason: '*** -[AVAssetWriter finishWritingWithCompletionHandler:] Cannot call method when status is 2'

  • (void)stopWritingWithError:(NSError **)error {

self.isWriting = NO;

dispatch_async(self.dispatchQueue, ^{

[self.assetWriter finishWritingWithCompletionHandler:^{
	
	if (self.assetWriter.status == AVAssetWriterStatusCompleted) {
		
		dispatch_async(dispatch_get_main_queue(), ^{
			if ([self.delegate respondsToSelector:@selector(videoWriter:didOutputVideoAtPath:)]) {
				[self.delegate videoWriter:self didOutputVideoAtPath:self.assetWriter.outputURL];
			}
		});
		
	} else {
		
		*error = self.assetWriter.error;
		
	}
    self.assetWriter = nil;
}];

});
}

这个怎么解决呢?麻烦回复下,谢谢!!

stop时crash finishWritingWithCompletionHandler

crash必现,即使在前面加上markAsFinished还是crash

dispatch_async(_dispatchQueue, ^{
    [_videoWriterInput markAsFinished];
    [_audioWriterInput markAsFinished];
    [_assetWriter finishWritingWithCompletionHandler:^{

你好,请教个多个动态库符号引用问题。

您好,我再一个开源库中发现这种情况,主程序中有日志模块,包含日志级别、日志文件等多种变量,另一个动态插件是通过dlopen打开的,也需要用到该日志模块。这样插件编译的时候不会编译不过吗?因为这些日志模块的变量、函数都是在主程序中的。请教!!

如果不考虑上下文的话,这句话后半句是不是应该指的是静态库的情况下

  • When an app is launched, the app’s code—which includes the code of the static libraries it was linked with—is loaded into the app’s address space.Applications with large executables suffer from slow launch times and large memory footprints

  • 静态库:当程序在启动的时候,会将 app 的代码(包括静态库的代码)一起在加载到 app 所处的内存地址上。相比于静态库 的方案,使用动态库将花费更多的启动时间和内存消耗。还会增加可执行文件的大小。

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.