diff --git a/src/Providers/Youtube.php b/src/Providers/Youtube.php
index d47a90c..8ade8ab 100644
--- a/src/Providers/Youtube.php
+++ b/src/Providers/Youtube.php
@@ -43,9 +43,13 @@ public function parse(string $content): string
if (! empty($url)) {
$params = $this->parseUrl($url);
if (isset($params['video_code'])) {
+ $urlParams = ['rel' => 0]; // Don't show recommended videos.
+ if (! empty($params['time'])) {
+ $urlParams['start'] = $params['time'];
+ }
$html_player = '
getStyles() . '>';
$html_player .= '
';
- $html_player .= '';
+ $html_player .= '';
$html_player .= '
';
$parent = $embed->parent();
if ($parent !== null) {
diff --git a/test/Providers/YoutubeTest.php b/test/Providers/YoutubeTest.php
index 0ba09ea..24e0764 100644
--- a/test/Providers/YoutubeTest.php
+++ b/test/Providers/YoutubeTest.php
@@ -25,8 +25,8 @@ public function testParse(): void
$content = $youtube->parse($this->html_string);
$this->assertEquals(
'',
+ '',
$content
);
@@ -34,8 +34,8 @@ public function testParse(): void
$content = $youtube->parse($this->html_string);
$this->assertEquals(
'',
+ '',
$content
);
}