How to create Media video youtube entity programmatically? I have file with multiple Youtube URLs such as:
https://www.youtube.com/watch?v=asddasOds32
https://www.youtube.com/watch?v=kjh234hknnn
https://www.youtube.com/watch?v=iZ53yuirewn
...

I need to fill Media content with video entities with data from this file.
Can I have some example code to solve this task?
Code example:
use Drupal\media\Entity\Media;

$media = Media::create([
  'bundle'      =&gt; 'my_youtube',
  'uid'         =&gt; 1,
  'name'        =&gt; 'my_video',
   'field_media_oembed_video' =&gt; [
    'value' =&gt; 'https://www.youtube.com/watch?v=iZ53oOOTsdc',
   ],
]);

$media-&gt;save();