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
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
IPTV/DVB-IP in MP: Support for http, rtp and udp
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="dimka" data-source="post: 729557" data-attributes="member: 87528"><p>Hi guys!</p><p></p><p> You have done good job by now! Hopefully new version of the fiter will get matured and be added to SVN repository!</p><p></p><p> Velis - I have compiled your code and it seems InternetCrackLib returns url.lpszUrlPat as it should :</p><p></p><p></p><p> or am I missing something ?</p><p></p><p> I can try to explain the ideas around dllPreAuth and some extra staff I added to Load function some time ago. Usually UDP and RTP streams are sitting in providers networks and do not require extra authenification. Many HTTP streams are also open but there are many providers which would like to have kind of handshake with user/password/whatever before they provide real url of video stream. That's why it nice to have plugin mecanism where everyone can add it's own pre-auth handshake.</p><p></p><p> That is how real video URL is calculated for Kartina.TV Http provider:</p><p>1) filter predefines 3 major protocols : http, rtp, udp. So urls in format [http|udp|rtp]://xxx doe not require extra job</p><p>2) Kartina's playlist is converted into having urls like kartina://someurl/user=xx&pass=yyy</p><p>3) during filter load it looks into MPIPTVplugins directory and loads all DLLs from there. Each DLL represents extra "protocol" and should implement two functions : GetProtocol - returns protocol string "kartina" and base protocol(http for kartina for example), second function is GetRealURL - gets url from playlist and returns real URL. </p><p>4) so far - at this moment we have 3 major protocols registred plus one fake - kartina.</p><p>5) Load function extracts url.lpszScheme and compares with protocols in DllAuth array. as url contains "kartina://xxx" item it calls GetRealURL from kartina's dll. in that function I do some extra steps as getting coockies, do authentfication and so on. After some calculation Kartina's servers rerurns the url of REAL video stream. </p><p> Agree - it so specific per provider so nobody could get it into SVN source. From another side there is backdoor to extend such specific functionality.</p><p>6) Load function gets url of real video stream and base protocol - see step 3. Function bypasses it to whatever is parsing it, open stream and so on.. </p><p></p><p>That is the idea around plugins. I really hopeyou will keep it as it can be usefull later(and nor for Kartina users <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" />)</p><p></p><p>Anyway - good job is done!</p><p></p><p>br,</p><p>dimka</p><p></p><p>PS. I do remember I had promised to open SVN repository for filter. So if you still need it I can spend some time to configure it<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="dimka, post: 729557, member: 87528"] Hi guys! You have done good job by now! Hopefully new version of the fiter will get matured and be added to SVN repository! Velis - I have compiled your code and it seems InternetCrackLib returns url.lpszUrlPat as it should : or am I missing something ? I can try to explain the ideas around dllPreAuth and some extra staff I added to Load function some time ago. Usually UDP and RTP streams are sitting in providers networks and do not require extra authenification. Many HTTP streams are also open but there are many providers which would like to have kind of handshake with user/password/whatever before they provide real url of video stream. That's why it nice to have plugin mecanism where everyone can add it's own pre-auth handshake. That is how real video URL is calculated for Kartina.TV Http provider: 1) filter predefines 3 major protocols : http, rtp, udp. So urls in format [http|udp|rtp]://xxx doe not require extra job 2) Kartina's playlist is converted into having urls like kartina://someurl/user=xx&pass=yyy 3) during filter load it looks into MPIPTVplugins directory and loads all DLLs from there. Each DLL represents extra "protocol" and should implement two functions : GetProtocol - returns protocol string "kartina" and base protocol(http for kartina for example), second function is GetRealURL - gets url from playlist and returns real URL. 4) so far - at this moment we have 3 major protocols registred plus one fake - kartina. 5) Load function extracts url.lpszScheme and compares with protocols in DllAuth array. as url contains "kartina://xxx" item it calls GetRealURL from kartina's dll. in that function I do some extra steps as getting coockies, do authentfication and so on. After some calculation Kartina's servers rerurns the url of REAL video stream. Agree - it so specific per provider so nobody could get it into SVN source. From another side there is backdoor to extend such specific functionality. 6) Load function gets url of real video stream and base protocol - see step 3. Function bypasses it to whatever is parsing it, open stream and so on.. That is the idea around plugins. I really hopeyou will keep it as it can be usefull later(and nor for Kartina users :-)) Anyway - good job is done! br, dimka PS. I do remember I had promised to open SVN repository for filter. So if you still need it I can spend some time to configure it:-) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Watch / Listen Media
Television (MyTV frontend and TV-Server)
IPTV/DVB-IP in MP: Support for http, rtp and udp
Contact us
RSS
Top
Bottom