Some HLS streams have "m3u8_native" as protocol value (see #133)

This commit is contained in:
Pierre Rudloff 2017-11-02 16:26:10 +01:00
parent aea9b47370
commit 095c1a92f0

View file

@ -360,7 +360,7 @@ class FrontController
$stream = $this->download->getRtmpStream($video); $stream = $this->download->getRtmpStream($video);
$response = $response->withHeader('Content-Type', 'video/'.$video->ext); $response = $response->withHeader('Content-Type', 'video/'.$video->ext);
$body = new Stream($stream); $body = new Stream($stream);
} elseif ($video->protocol == 'm3u8') { } elseif ($video->protocol == 'm3u8' || $video->protocol == 'm3u8_native') {
$stream = $this->download->getM3uStream($video); $stream = $this->download->getM3uStream($video);
$response = $response->withHeader('Content-Type', 'video/'.$video->ext); $response = $response->withHeader('Content-Type', 'video/'.$video->ext);
$body = new Stream($stream); $body = new Stream($stream);