flash 10.2: got sound but no video

and never pass "opening stream" dialog
Hi Everyone,

I'm trying to develop a plugin for some live tv streams here in Romania (flash plugin, site config based, flash version 10.2; i've also tried 10.1 - some results).
I'm getting the audio, but no video (and the "opening stream" dialog is not going away).

So, I'm looking for some help. Can you pls give me some hints of what I'm doing wrong?

Many thanks,
Stefan

That can often occur if the site config is not locking on to the proper flash element on the web page. Using an add-on like Firebug for Firefox, you can inspect the code for the flash element you want to capture and make sure that the “plugin” element in the site config matches it.

Thank You Mike,



I’m using Safari’s native Inspect Element, so the site’s plugin attribute should be just fine.

The webpage is using javascript (swfobject) to create the flash object after the page is loaded, so the swf is not available in the initial source. Can be this the problem? I’ve also tried to use manualLock=true, and after the condition, but w/0 success (same result, just sound, and “opening stream” dialog).



Stefan

I can’t think of another suggestion at the moment. Are the streams geo-restricted or require a login? If not, feel free to post a copy of your plugin so far. I (or perhaps one of the other plug-in devs with more site config expertise than me) can take a look and try to spot other possible problems.

One stream should be free and available globally. You can find it here: http://www.antena3.ro/live.php



And my site configurations (so far) is:


<br />
<?xml version="1.0" encoding="utf-8"?><br />
<br />
<site site="http://(webtv\.realitatea\.net)|(www\.antena3\.ro)/live.*"<br />
      plugin="http://static\.mediadirect\.ro/player-preload/swf/preloader/preloader\.swf"<br />
      initialState="loading"<br />
      manualLock="true"<br />
      version="1.0"><br />
<br />
<crop x="0" y="20" width="480" height="360"/><br />
<br />
<state name="loading"><br />
  <event><br />
    <condition><br />
      <frameLoaded/><br />
    </condition><br />
    <action><br />
      <lockPlugin/><br />
      <goto state="playing" /><br />
    </action><br />
  </event><br />
</state><br />
<br />
<state name="playing"><br />
  <event><br />
   <condition><br />
    <command name="pause" /><br />
   </condition><br />
   <action><br />
    <click x="20" y="400" /><br />
    <goto state="paused" /><br />
   </action><br />
  </event><br />
 </state><br />
<br />
 <state name="paused"><br />
  <event><br />
   <condition><br />
    <command name="play" /><br />
   </condition><br />
   <action><br />
    <click x="20" y="400" /><br />
    <goto state="playing" /><br />
   </action><br />
  </event><br />
 </state><br />
<br />
</site><br />




For that site I would try changing the site element to


<br />
<site site="http://(webtv\.realitatea\.net)|(www\.antena3\.ro)/live.*"<br />
      plugin="http://static\.mediadirect\.ro/player-preload/swf/antenna3_new_944/player\.swf.*"<br />
      initialState="loading"<br />
      manualLock="true"<br />
      version="1.0"><br />




Depending on what the other sites are like, you might be able to make it more generic. Perhaps like so:


<br />
<site site="http://(webtv\.realitatea\.net)|(www\.antena3\.ro)/live.*"<br />
      plugin="http://static\.mediadirect\.ro/player-preload/swf/.+/player\.swf.*"<br />
      initialState="loading"<br />
      manualLock="true"<br />
      version="1.0"><br />




I haven't tested this, but I think the reason it hasn't been working for you is that the site config is locking on to the "preloader" swf instead of the actual video swf. Hope this helps.