home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
Swedish sites: SVT, TV4, Dplay Premium, UR, Viasat channels + Movie & Series sites
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Ministerk" data-source="post: 1170065" data-attributes="member: 61145"><p>You can make sites in many ways, the most "simple" way is to use the site creation tool but this would not be enough for Go or C More Play, you would be forced to do a SiteUtil(1) that implements the IBrowserSiteUtil interface(2) and a BrowserUtilConnector(3) for browser player automation. The BrowserPlayer is a must since these sites uses formats/drm that cannot be played with the internal mediaportal/onlinevideos player.</p><p></p><p>1) The site util "scrapes" the webpage/service/media api for categories and videos, There are some base classes to derive a site util from (SiteUtilBase, GenericSiteUtil, LatestVideosSiteUtilBase). Personally I'm almost never use the GenericSiteUtil (I'm more comfortable with SiteUtilBase/Not that good at regex...).</p><p></p><p>If we look at the SiteUtilBase there are some methods to override the most important ones are DiscoverDynamicCategories, DiscoverSubCategories, GetVideos and GetVideoUrl. </p><p> </p><p>2) IBrowserSiteUtil is an interface that connects the Site Util with the</p><p></p><p>3) BrowserUtilConnector, that is used for the BrowserPlayer automation. The automation has two phases: the login phase and the playback phase. You interact with an Windows Forms Browser using different urls, mouse clicks, javascript etc.</p><p></p><p>The best thing is to clone or fork/clone <a href="https://github.com/offbyoneBB/mp-onlinevideos2" target="_blank">mp-onlinevideos2</a> at github and read some code, try and see whats happening.</p><p></p><p>A simple example of what's needed for your site is to check out the Katsomo Util and connector in the <a href="https://github.com/offbyoneBB/mp-onlinevideos2/tree/master/SiteUtilProjects/OnlineVideos.Sites.ministerk" target="_blank">OnlineVideos.Sites.ministerk</a> project (<a href="https://github.com/offbyoneBB/mp-onlinevideos2/blob/master/SiteUtilProjects/OnlineVideos.Sites.ministerk/KatsomoWebUtil.cs" target="_blank">KatsomoWebUtil.cs</a>, <a href="https://github.com/offbyoneBB/mp-onlinevideos2/blob/master/SiteUtilProjects/OnlineVideos.Sites.ministerk/BrowserUtilConnectors/KatsomoConnector.cs" target="_blank">KatsomoConnector.cs</a> and also <a href="https://github.com/offbyoneBB/mp-onlinevideos2/blob/master/SiteUtilProjects/OnlineVideos.Sites.ministerk/Resources/Katsomo.js" target="_blank">Katsomo.js</a> that is used in the automation)</p><p>Katsomo does not use any login stuff, to see how this works you could check the Netflix solution.</p><p></p><p>Katsomo is not yet in use. To try it you can add the site in OnlineVideos configuration (or edit the OnlineVideosSite.xml file) with the following xml:</p><p></p><p>[CODE=XML] <Site name="MTV Katsomo" util="KatsomoWeb" agecheck="false" enabled="true" lang="fi" player="Browser"></p><p> <Description>MTV Katsomo on netti-tv, joka tuo katseltavaksesi suosikkiohjelmiesi uusimmat jaksot ilmaiseksi heti samaan aikaan kuin ne näytetään televisiokanavalla. Voit katsella MTV3:n, Subin ja AVA:n ohjelmia silloin kuin sinulle parhaiten sopii, ajankohdasta riippumatta tietokoneelta, puhelimesta, tabletista, MediaPortalista ja Samsung Smart TV:stä.</Description></p><p> </Site>[/CODE]</p><p></p><p>Good luck and don't be afraid of asking for help here in the forums.</p></blockquote><p></p>
[QUOTE="Ministerk, post: 1170065, member: 61145"] You can make sites in many ways, the most "simple" way is to use the site creation tool but this would not be enough for Go or C More Play, you would be forced to do a SiteUtil(1) that implements the IBrowserSiteUtil interface(2) and a BrowserUtilConnector(3) for browser player automation. The BrowserPlayer is a must since these sites uses formats/drm that cannot be played with the internal mediaportal/onlinevideos player. 1) The site util "scrapes" the webpage/service/media api for categories and videos, There are some base classes to derive a site util from (SiteUtilBase, GenericSiteUtil, LatestVideosSiteUtilBase). Personally I'm almost never use the GenericSiteUtil (I'm more comfortable with SiteUtilBase/Not that good at regex...). If we look at the SiteUtilBase there are some methods to override the most important ones are DiscoverDynamicCategories, DiscoverSubCategories, GetVideos and GetVideoUrl. 2) IBrowserSiteUtil is an interface that connects the Site Util with the 3) BrowserUtilConnector, that is used for the BrowserPlayer automation. The automation has two phases: the login phase and the playback phase. You interact with an Windows Forms Browser using different urls, mouse clicks, javascript etc. The best thing is to clone or fork/clone [URL='https://github.com/offbyoneBB/mp-onlinevideos2']mp-onlinevideos2[/URL] at github and read some code, try and see whats happening. A simple example of what's needed for your site is to check out the Katsomo Util and connector in the [URL='https://github.com/offbyoneBB/mp-onlinevideos2/tree/master/SiteUtilProjects/OnlineVideos.Sites.ministerk']OnlineVideos.Sites.ministerk[/URL] project ([URL='https://github.com/offbyoneBB/mp-onlinevideos2/blob/master/SiteUtilProjects/OnlineVideos.Sites.ministerk/KatsomoWebUtil.cs']KatsomoWebUtil.cs[/URL], [URL='https://github.com/offbyoneBB/mp-onlinevideos2/blob/master/SiteUtilProjects/OnlineVideos.Sites.ministerk/BrowserUtilConnectors/KatsomoConnector.cs']KatsomoConnector.cs[/URL] and also [URL='https://github.com/offbyoneBB/mp-onlinevideos2/blob/master/SiteUtilProjects/OnlineVideos.Sites.ministerk/Resources/Katsomo.js']Katsomo.js[/URL] that is used in the automation) Katsomo does not use any login stuff, to see how this works you could check the Netflix solution. Katsomo is not yet in use. To try it you can add the site in OnlineVideos configuration (or edit the OnlineVideosSite.xml file) with the following xml: [CODE=XML] <Site name="MTV Katsomo" util="KatsomoWeb" agecheck="false" enabled="true" lang="fi" player="Browser"> <Description>MTV Katsomo on netti-tv, joka tuo katseltavaksesi suosikkiohjelmiesi uusimmat jaksot ilmaiseksi heti samaan aikaan kuin ne näytetään televisiokanavalla. Voit katsella MTV3:n, Subin ja AVA:n ohjelmia silloin kuin sinulle parhaiten sopii, ajankohdasta riippumatta tietokoneelta, puhelimesta, tabletista, MediaPortalista ja Samsung Smart TV:stä.</Description> </Site>[/CODE] Good luck and don't be afraid of asking for help here in the forums. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
OnlineVideos
Swedish sites: SVT, TV4, Dplay Premium, UR, Viasat channels + Movie & Series sites
Contact us
RSS
Top
Bottom