I am preparing response to a http request to send video and receiving error: Broken Pipe
if self.path.endswith(".ts"):
f = open("filename.ts", 'r')
self.send_response(200)
self.send_header('Content-Type', "video/mp2t")
self.end_headers()
self.wfile.write(f.read())
return
Same response below works fine.
if self.path.endswith(".mov"):
f = open("filename.mov", 'r')
self.send_response(200)
self.send_header('Content-Type', "video/mpeg")
self.end_headers()
self.wfile.write(f.read())
return
I suspect it is related to mimetype issue. Can any one suggest me how can i use video/mp2t with baseHttpServer ??