If you download the video first, sure. Direct playing from the url is not possible with the current architecture.
Besides, even if I could scrape the video file from the video url link, I am pretty sure that it violates the YT terms of service.
I believe there is a VLC library that could...