I am developing an app for SmartTV platform webOS by LG. I have to play video with html5 tag. The videos are stored in playlist files (m3u8), so I have links to them. But they are protected by Basic Authentication. I am using a link like that: https://username:password@domain.name/file.m3u8 When I embed this link to tag it doesn`t play the stream, although I am using an attribute crossorigin="use-credentials" in tag.
<video id="videoplayer" width="480" height="320" crossorigin="use-credentials" autoplay>
<source id="source" src="https://username:password@domain.name/file.m3u8"></source>
</video>