jackxieweiwu
jackxieweiwu
我换了一个视频文件,这次没有出现卡死现象,但是推流结束了就出现了 panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x532768] ZkrtWebJack/protocol/httpflv.(*FLVWriter).SendPacket(0xc4200c6180, 0x0, 0x0) /home/jack/GoglandProjects/src/ZkrtWebJack/protocol/httpflv/writer.go:134 +0x20c ZkrtWebJack/protocol/httpflv.NewFLVWriter.func1(0xc4200c6180) /home/jack/GoglandProjects/src/ZkrtWebJack/protocol/httpflv/writer.go:47 +0x2f created by ZkrtWebJack/protocol/httpflv.NewFLVWriter /home/jack/GoglandProjects/src/ZkrtWebJack/protocol/httpflv/writer.go:52...
这个把手机上的camera 的byte[]码流怎么传到服务器呢? 也是用那个指令吗?