Site config help

Hi guys,



I am trying to configure the site configuration for this web page: http://tv24.vn/TV24/14/40/htv9-xem-truc-tuyen-mien-phi-toc-do-cao-cuc-hot-cuc-hay.html



However there is no video nothing, it just stops at opening stream and display the page title.



Here is my site config


<br />
<?xml version="1.0" encoding="UTF-8"?><br />
<site site="http://tv24.vn/*"<br />
            plugin="http://tv24.vn/getplayer.ashx"<br />
                        initialState="playing"<br />
                        version="1.0"><br />
	<state name="playing"><br />
  <br />
	</state><br />
<br />
</site><br />


I don’t think that the .ashx file will work for the site config. If it’s Flash-video, you need to specify the URL of the actual video swf. If the site uses Silverlight video, then you can just specify the plugin as “Silverlight”. If the source of the webpage doesn’t contain the URL of the swf, you’ll have to try watching the HTTP traffic with a browser add-on like HTTP-Fox for Firefox or DeveloperTools in Chrome.



I should also mention that you may run into troubles if you’re trying to develop on Windows. There are numerous reports of Flash/Silverlight plugins not working on Windows PMS. So, if you’re using Windows, make sure to test out a few other plugins before banging your head against the wall too much.

The URL http://****tv24.vn/getplayer.ashx is the Flash player, so I don’t think that’s the problem. There are 2 things that may cause problems: The * in the regex is wrong (in this case it means there should be zero or more / signs). What you want is http://***tv24.vn/.



The second thing is that the playing state is missing an event with a ‘condition’ and ‘action’, although they’re not really needed in your case, it wouldn’t surprise me if this causes problems. Try updating it to something like this:



<?xml version="1.0" encoding="UTF-8"?><br />
<site site="http://tv24.vn/.*"<br />
            plugin="http://tv24.vn/getflash.ashx"<br />
            initialState="playing"<br />
            version="1.0"><br />
<br />
  <state name="playing"><br />
    <event><br />
      <condition><br />
        <javascript script="true ? 1 : 0" matches="1" /><br />
      </condition><br />
      <action><br />
        <!-- nothing to do --><br />
      </action><br />
    </event><br />
  </state><br />
<br />
</site>



(And don't forget to restart PMS after you've made changes to the site config file).

**EDIT**: Looking at the source code of the given example url, the url http://****tv24.vn/getplayer.ashx is wrong, it should be http://****tv24.vn/getflash.ashx

Hi Sander1,



Thank you very much, that works!!!



The other question I want to ask is, I was able to figure out the rtmpe url for the video on that site. I’ve got it working when using rtmpdump but it needs to additional flags in rtmpdump –token and –pageUrl



I know the new version of the PMS supports swf verification but then I don’t know hot to pass the pageUrl and token values to RTMPVideoUrl object. Do you know if this possible?

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