Kodi Community Forum
Extract player from a website stream - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: Extract player from a website stream (/showthread.php?tid=199666)



Extract player from a website stream - thejokerbox - 2014-07-10

Hello guys ,
I want to know how to extract a player from a website stream .
I need to go to url first then extract the player with a regex .
The stream source is not a rtmp , I think It 's a xml source .
I need a python script with a regex for extract this player from a url . Sad

This is a player code found on the site :
<object type="application/x-shockwave-flash" data="/ptvFlash/unifiedplayer/adaptive_vod/release/UnifiedPlayer43.swf" width="960" height="540" id="videoPlayer" style="visibility: visible;"><param name="wmode" value="transparent"><param name="allowScriptAccess" value="always"><param name="base" value="/flash/unifiedplayer/"><param name="bgcolor" value="#000000"><param name="allowFullScreen" value="true"><param name="flashvars" value="configXML=/configXml/event/true&amp;resourceLocalePath=/ptvFlash/unifiedplayer/assets/resources/&amp;basePath=/&amp;selectedBandwidth=med&amp;eventId=95555&amp;partnerId=4444&amp;onStreamEndJSCall=playNextEvent&amp;onStreamEventEndedJSCall=playNextEvent&amp;setPlayerType=dvr&amp;locale=fr_FR"></object>

Thanks