nilzen/xbmc-svtplay — Issue #12: Abrupt ending after a few seconds, swf verify
Author: kokangit
Created: 2012-01-09 18:08:44+00:00
State: open

Some programs use swf verify and since this is not enabled for svtplay plugin, the player ends after a few seconds.
In the log you can see this:
18:56:52 T:2863111024 M:2030936064 INFO: HandleCtrl, SWFVerification ping received:
18:56:52 T:2863111024 M:2030936064 ERROR: HandleCtrl: Ignoring SWFVerification request, use --swfVfy!

Here is a user with problem writing in the forum:
http://forum.xbmc.org/showpost.php?p=978729&postcount=115

The solution is to tell xbmc-player to use swf verification. This can be done in the URL for the program like this:
url = params["url"] + " swfUrl=http://svtplay.se/flash/svtplayer-2011.18.swf swfVfy=1"

I have tried this and it seems to work well.

Two problems:
1) I can not understand how to tell which programs that need swf verify. But enabling it for all programs may not be a problem. I have not seen any problems so far enabling for all programs.
2) The URL to svt flash player is hard coded and the URL may be changed by svt. If you browse svtplay.se with a browser and look at the html-code you can find:

But I cannot find the URL in the xml. I have no idea how to solv this. Any ideas anyone?