Skip navigation
Currently Being Moderated

How to know video is coming or not?

Jun 16, 2012 5:11 AM

Hi,

 

if video is not coming, I'm showing image in my live player (using ns.info.dataBufferByteLength ).

But this is working only with FMLE stream. not working with online broadcaster stream.

 

if i broadcast stream from online broadcater this code showing every time "No video" in trace.

 

any another solution to check video is coming or not in my player?

 

case "NetStream.Play.Start" :
          if(ns.info.dataBufferByteLength > 24)
          {
                    trace("video");
                    image.visible = false;
          }
          else
          {
                        trace("No video");
                    image.visible = true;
                    
          }
 
Replies
  • Currently Being Moderated
    Jun 16, 2012 5:50 AM   in reply to Venkom

    I don't think you are shopwing enough code to properly help explain what you are trying to do - what you show looks like the middle of a switch.  In any case, you should be using trace() to see what the status of the conditions are so that you can determine why you always get the same result.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points