Samsung / cordova-plugin-toast

Cordova plugin that provides TV Specific functionalities.
Apache License 2.0
122 stars 60 forks source link

Videos Working on LG webOS TV, but not on Samsung Tizen TV #80

Open bkadirbeyoglu opened 6 years ago

bkadirbeyoglu commented 6 years ago

I am getting PLAYER_ERROR_CONNECTION_FAILED error when playing videos on Tizen emulator, however the videos are working on my LG webOS TV. I made sure that my app has the necessary privileges to access the Internet, and has the following statement in my config.xml as well:

<access origin="*" subdomains="true"></access>

I don't know whether it is related, but I'm also getting:

GET file:///cordova_plugins.js net::ERR_FILE_NOT_FOUND cordova.js:1898

error, however the app continues to run.

I am clueless at this point, and would like to hear some suggestions on how to debug and fix the issue. Thanks in advance.

prozanne commented 6 years ago

Hi, as like you thought It seems a kind of network issue. default

Please check again if network security policy is applying such as "csp" or "warp" on your config.xml. https://developer.tizen.org/ko/development/training/web-application/understanding-tizen-programming/web-runtime?langredirect=1#security

If It is not resolved yet, please search it on Samsung developer forum or ask this issue. Because Toast media is based on avplay samsung product api, you might find an answer on the developers' site. https://developer.samsung.com/forum/en

bkadirbeyoglu commented 6 years ago

I already have the following line in config.xml:

<access origin="*" subdomains="true"></access>

but still getting the error. Do you have any other suggestions? It is interesting since I can play the videos on LG webOS TV.

NikolaRavic commented 3 years ago

I ended up here as we ran into the same problem while we were trying to make our app running DASH video on old Tizens. So if someone else has the same problem this might help (it helped us). The solution was to add this to your config.xml: