Embedded SWF player

Hi , 

It's my first time when I'm posting a question on forum, so I hope I'm doing it in right place.

Trying to develop my first video channel plugin for http://smotruonline.ru/. i'm able to play flv files but can't do this for SWF players.

I'm doing in this way.

 

 here is how it look in a web page.

 

     

     

     

     

     

     

      <embed src="<a data-ipb='nomediaparse' href='http://whitecdn.org/player/76fb851c2e71150f8f38a1af23c55b86/player.swf'>http://whitecdn.org/player/76fb851c2e71150f8f38a1af23c55b86/player.swf</a>" quality="high" bgcolor="#000000" width="640" height="405" name="player"  align="middle" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"  flashvars="videoID=78948">

 

 

 

   Site Config.

   location: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-ins/SmotruOnline.bundle/Contents/Site Configurations

   <?xml version="1.0" encoding="utf-8"?>

   <site site="http://.*<a data-ipb='nomediaparse' href='http://smotruonline.ru/'>smotruonline.ru</a>/.*"
    plugin="http://.*player.swf"
    initialState="playing"
    windowWidth="640"
    windowHeight="405"
    ...
 
    in Code.
    def MainMenu():
               dir = MediaContainer()
               dir.Append(Function(WebVideoItem(VideoPlayer, title="Test", subtitle='', thumb='http://smotruonline.ru/uploads/posts/2013-12/1388055019_smotruonline.ru_putiwesvia.k.rojdesvenskoy.zvezde.2012.jpg'), url='http://whitecdn.org/player/76fb851c2e71150f8f38a1af23c55b86/player.swf'))
               return dir
 
    
 
    def VideoPlayer(sender, url):
              return Redirect(WebVideoItem(url))
 
 
But unfortunately don't work.
Here is what I get in logs.
 /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Logs/PMS\ Plugin\ Logs/com.plexapp.plugins.smotruonline.log
2013-12-27 12:46:43,312 (7fda017fa700) :  DEBUG (runtime:106) - Sending packed state data (549 bytes)
2013-12-27 12:46:43,313 (7fda017fa700) :  DEBUG (runtime:915) - Response: [200] MediaContainer, 950 bytes
2013-12-27 12:46:44,523 (7fda017fa700) :  DEBUG (runtime:717) - Handling request GET /video/SmotruOnline/:/function/VideoPlayer?function_args=Y2VyZWFsMQozCmRpY3QKZGljdApGcmFtZXdvcmsub2JqZWN0cy5JdGVtSW5mb1JlY29yZAoyCnM3MApodHRwOi8vd2hpdGVjZG4ub3JnL3BsYXllci83NmZiODUxYzJlNzExNTBmOGYzOGExYWYyM2M1NWI4Ni9wbGF5ZXIuc3dmczMKdXJscjIKczYKc2VuZGVyNQpzMTkKV2F0Y2ggRXVyb25ld3MgbGl2ZXM5Cml0ZW1UaXRsZXMxOQpTbW90cnVPbmxpbmUgUGx1Z2luczYKdGl0bGUxczQKTm9uZXM2CnRpdGxlMnM0Ck5vbmVzMwphcnRzOTgKaHR0cDovL3Ntb3RydW9ubGluZS5ydS91cGxvYWRzL3Bvc3RzLzIwMTMtMTAvMTM4MjM1NzUyNl9zbW90cnVvbmxpbmUucnVfYmVseXktdm9yb3RuaWNob2stMjAxMy5qcGdzNQp0aHVtYnIxCnIwCg__
2013-12-27 12:46:44,525 (7fda017fa700) :  DEBUG (runtime:49) - Received packed state data (516 bytes)
2013-12-27 12:46:44,547 (7fda017fa700) :  DEBUG (runtime:814) - Found route matching /video/SmotruOnline/:/function/VideoPlayer
2013-12-27 12:46:44,547 (7fda017fa700) :  DEBUG (runtime:143) - Calling function 'VideoPlayer'
2013-12-27 12:46:44,550 (7fda017fa700) :  DEBUG (runtime:106) - Sending packed state data (549 bytes)
2013-12-27 12:46:44,550 (7fda017fa700) :  DEBUG (runtime:915) - Response: [302] Redirect, 0 bytes << that redirect don't look good but not sure what can do
 
And 
/var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Logs/Plex\ Media\ Server.log
Dec 27, 2013 12:46:44 [0x7fc99bfff700] DEBUG - [com.plexapp.plugins.smotruonline] HTTP reply status 302, with 0 bytes of content.
Dec 27, 2013 12:46:44 [0x7fc99bfff700] VERBOSE - Completed request: GET /video/SmotruOnline/:/function/VideoPlayer?function_args=Y2VyZWFsMQozCmRpY3QKZGljdApGcmFtZXdvcmsub2JqZWN0cy5JdGVtSW5mb1JlY29yZAoyCnM3MApodHRwOi8vd2hpdGVjZG4ub3JnL3BsYXllci83NmZiODUxYzJlNzExNTBmOGYzOGExYWYyM2M1NWI4Ni9wbGF5ZXIuc3dmczMKdXJscjIKczYKc2VuZGVyNQpzMTkKV2F0Y2ggRXVyb25ld3MgbGl2ZXM5Cml0ZW1UaXRsZXMxOQpTbW90cnVPbmxpbmUgUGx1Z2luczYKdGl0bGUxczQKTm9uZXM2CnRpdGxlMnM0Ck5vbmVzMwphcnRzOTgKaHR0cDovL3Ntb3RydW9ubGluZS5ydS91cGxvYWRzL3Bvc3RzLzIwMTMtMTAvMTM4MjM1NzUyNl9zbW90cnVvbmxpbmUucnVfYmVseXktdm9yb3RuaWNob2stMjAxMy5qcGdzNQp0aHVtYnIxCnIwCg__: 302
 
 
Does anybody had this problem before and how I can handle it ?
Thanks
PS.  Sorry for my English , not native speaker.
 

Webkit (Flash or Silverlight based channels that required a site config) is no longer supported. You probably need to dig a little bit deeper and find the source video file played back by the Flash player.

Hi Sander1,

Thanks for prompt answer.

I'm already started work on a script based on webkit to grub source file.

Is there a way to integrate it with plugin or I have to run it separately and pass a JSON for example to plugin in Resources ?

Thanks

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.