I need to develop a Samsung TV application to play videos that are served from a remote server that I do not have access to.
In fact, I made a video playback application on my own server. But my current requirements are as follows:
- I want to play videos that are served from a remote host (e.g. // remote.com/video_id) that I donโt have access to, but my TV application is connected to my server (e.g. // myserver.com/samsungapp)
- Before the game, I have to cache the file on my Samsung TV. those. buffer 100% and then play
I tested FileApi and FileReader using HTML5 and JS and came up with the following barriers:
It is difficult to send a cross-domain request from Javascript. Since I do not have access to the remote host, I cannot set access-control-origin to the response of the remote server.
Any suggestions are welcome ...
rajukoyilandy
source share