I have to develop a Samsung TV application to play videos that are served from a remote server, which I don't have access to.
Actually I've made an application to play videos of my own server. But my current requirements are as follows:
- I want to play videos that are served from a remote host (say //remote.com/video_id) to which I have no access, but my TV application is connected to my server (say //myserver.com/samsungapp)
- I have to cache file on my Samsung TV before playing. ie., buffer 100% and then play
I've checked FileApi
and FileReader
using HTML5 and JS, and come up with following barriers:
Its difficult to send cross domain request from Javascript. Since I don't have access to remote host, I can't set access-control-origin
on the remote server's response.
Any suggestions are appreciated...