diff --git a/src/Events/VideoStreamEnded.php b/src/Events/VideoStreamEnded.php index 03fea49..45d42d5 100644 --- a/src/Events/VideoStreamEnded.php +++ b/src/Events/VideoStreamEnded.php @@ -2,11 +2,8 @@ namespace Iman\Streamer\Events; -use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; -use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; use Iman\Streamer\Video; @@ -37,7 +34,6 @@ public function getVideo(): Video return $this->video; } - /** * Get the channels the event should broadcast on. * diff --git a/src/Events/VideoStreamStarted.php b/src/Events/VideoStreamStarted.php index 3853858..8f04623 100644 --- a/src/Events/VideoStreamStarted.php +++ b/src/Events/VideoStreamStarted.php @@ -2,11 +2,8 @@ namespace Iman\Streamer\Events; -use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; -use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; -use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; use Iman\Streamer\Video; @@ -38,7 +35,6 @@ public function getVideo(): Video return $this->video; } - /** * Get the channels the event should broadcast on. * diff --git a/src/VideoStreamer.php b/src/VideoStreamer.php index b01e409..705c052 100644 --- a/src/VideoStreamer.php +++ b/src/VideoStreamer.php @@ -113,7 +113,6 @@ private function stream() $i = $this->start; set_time_limit(0); while (! feof($this->stream) && $i <= $this->end) { - $this->video->setProgress($i); $bytesToRead = $this->buffer;