Dmax.it videoUrl help (1 Viewer)

cecet23

MP Donator
  • Premium Supporter
  • March 18, 2009
    137
    16
    Perugia
    Home Country
    Italy Italy
    Hi guys,
    I'm working on dmax.it but I don't know how to get the video url from the website. Maybe someone can help me.

    For example here is a video:

    http://www.dmax.it/video/programmi/top-gear/top-gear-15-promo/

    the interested part is
    HTML:
    <!-- BRIGHTCOVE PLAYER INCLUDE - start -->
    <object id="video-brightcove-player" class="BrightcoveExperience">
    <param name="bgcolor" value="#000000" />
    <param name="width" value="100%" />
    <param name="height" value="100%" />
    <param name="playerID" value="1752666798001" />
    <param name="publisherID" value="1265527910001"/>
    <param name="isVid" value="true" />
    <param name="isUI" value="true" />
    <param name="autoStart" value="%%brightcove.autoplay%%" />
    <param name="@videoPlayer" value="1967696076001" />
    <param name="wmode" value="transparent" />
    <param name="allowScriptAccess" value="always"/>
    <param name="dynamicStreaming" value="true" />
    <param name="templateLoadHandler" value="onTemplateLoad" />
    <param name="playerKey" value="AQ~~,AAABJqdXbnE~,swSdm6mQzrEWC8U2s8_PyL570J6HePbQ" />
    <param name="includeAPI" value="true" />
    </object>
    <noscript>
    <embed
    src="http://c.brightcove.com/services/viewer/federated_f9/42412716001?isVid=1&publisherID=1378939881&%40videoPlayer=14008448001"
    bgcolor="#000000"
    flashVars="playerID=1752666798001&domain=embed&"
    base="http://admin.brightcove.com"
    autoStart="%%brightcove.autoplay%%"
    name="video-brightcove-player"
    width="100%"
    height="100%"
    wmode="transparent"
    seamlesstabbing="false"
    type="application/x-shockwave-flash"
    allowFullScreen="true"
    swLiveConnect="true"
    pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
    </embed>
    </noscript>
    <!-- BRIGHTCOVE PLAYER INCLUDE - end -->

    How can I do?
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    Assuming you're not coding it in c# but using the siteparser:
    You should base your util on BrightCoveUtil. There are a number of examples present (f.e. Red Bull TV, CanalD, and CanalVie), perhaps it's enough to get it working.
    If not, feel free to ask again!
     

    cecet23

    MP Donator
  • Premium Supporter
  • March 18, 2009
    137
    16
    Perugia
    Home Country
    Italy Italy
    Sorry but I didnt' understand how to get Hashvalue and array4... Some help?

    Thank you.
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    Hm, yes, I guess it is quite complicated. Are you coding in c#, or using the siteparser?
    Can you post the stuff that you have so far, so I can take a look at it?
     

    cecet23

    MP Donator
  • Premium Supporter
  • March 18, 2009
    137
    16
    Perugia
    Home Country
    Italy Italy
    I can code in C# but I don't know from where to start, btw I used redbull as beginning

    XML:
    <Site name="Dmax2" util="BrightCove" agecheck="false" enabled="true" lang="it">
      <Description>Dmax2</Description>
      <Configuration>
    	<item key="dynamicCategoriesRegEx"><![CDATA[<li\sclass="[^"]*"><a\shref="(?<url>[^"]*)">(?<title>[^<]*)</a></li>]]></item>
    	<item key="dynamicCategoryUrlFormatString"><![CDATA[http://www.dmax.it/video/programmi/{0}]]></item>
    	<item key="dynamicSubCategoriesRegEx"><![CDATA[<li>\s*<a\shref="(?<url>[^"]*)"\stitle="(?<title>[^"]*)">\s*<span\sclass="season-num">[^"]*</span>\s*<span\sclass="num-episodes">(?<description>[^<]*)</span>\s*<span\sclass="last-modified">\s*<span\sclass="label">[^"]*</span>\s*[^"]*</span>\s*</a>\s*</li>]]></item>
    	<item key="dynamicSubCategoryUrlFormatString"><![CDATA[http://www.dmax.it/{0}]]></item>
    	<item key="videoListRegEx"><![CDATA[<li\sclass="item">\s*<a\sclass="link"\shref="(?<VideoUrl>[^"]*)"\stitle="(?<Title>[^"]*)">\s*<img\sclass="large\sthumbnail"\ssrc="(?<ImageUrl>[^"]*)"\s/>\s*<span\sclass="overlay"></span>\s*<time>(?<Duration>[^<]*)</time>\s*<div\sclass="text">\s*<span\sclass="number">[^<]*</span>\s*<h3\sclass="title">[^<]*</h3>\s*<p\sclass="desc">(?<Description>[^<]*)</p>\s*</div>\s*</a>\s*</li>]]></item>
    	<item key="baseUrl"><![CDATA[http://www.dmax.it/video/programmi/]]></item>   
    	<item key="playerId"><![CDATA[1752666798001]]></item>	
    	<item key="fileUrlRegEx"><![CDATA[param\sname="@videoPlayer"\svalue="(?<mediaId>[^"]*)"\s/>]]></item>
    	<item key="requestType"><![CDATA[FindMediaById]]></item>
    	<item key="requestUrl"><![CDATA[http://c.brightcove.com/services/viewer/federated_f9/42412716001?isVid=1&publisherID=1378939881&%40videoPlayer=14008448001]></item>
      </Configuration>
    </Site>


    I think it's not correct.
    XML:
     <item key="hashValue"><![CDATA[AQ~~,AAABJqdXbnE~,swSdm6mQzrEWC8U2s8_PyL570J6HePbQ]]></item>

    And I don't know how to use:
    XML:
    <item key="array4"><![CDATA[]]></item>
     

    doskabouter

    Development Group
  • Team MediaPortal
  • September 27, 2009
    4,583
    2,972
    Nuenen
    Home Country
    Netherlands Netherlands
    Hashvalue is indeed not correct (with a bit of luck you can figure this based on the call that's done to brightcove (check in fidller2 when you watch a video in your browser)
    array4 is not always necessary.
    But I'll check it myself within the next couple of days
     

    cecet23

    MP Donator
  • Premium Supporter
  • March 18, 2009
    137
    16
    Perugia
    Home Country
    Italy Italy
    Got it, with fiddler I found array4 and HashValue, seems that it work.

    Thank you.
     

    cecet23

    MP Donator
  • Premium Supporter
  • March 18, 2009
    137
    16
    Perugia
    Home Country
    Italy Italy
    I published but I'm not pretty shure I did all right. When I click the second time on publisch I receive "Only the owner or an admin can update exiting sites". :unsure:
     

    Users who are viewing this thread

    Top Bottom