To play YouTube videos in the background while doing other things on your iPhone, you can use YouTube premium or Safari's desktop view mode.
You can upload an iMovie video to YouTube, directly from iMovie on your Mac computer. This is great if you want to post something quickly.