Referência do ActionScript® 3.0 para Adobe® Flash® Platform
Início  |  Ocultar listas de Pacotes e Classes |  Pacotes  |  Classes  |  Novidades  |  Índice  |  Apêndices  |  Por que inglês?
Filtros: Recuperando dados do servidor...
Recuperando dados do servidor...
org.osmf.net 

NetStreamSwitchManagerBase  - AS3 OSMF

Pacoteorg.osmf.net
Classepublic class NetStreamSwitchManagerBase
HerançaNetStreamSwitchManagerBase Inheritance EventDispatcher Inheritance Object
Subclasses NetStreamSwitchManager, RuleSwitchManagerBase

Versão da linguagem: ActionScript 3.0
Versão de produto: OSMF 1.0
Versões de runtime: Flash Player 10, AIR 1.5

NetStreamSwitchManagerBase is a base class for classes that need to manage transitions between multi-bitrate (MBR) streams.

A NetStreamSwitchManagerBase can work in manual or auto mode. For the former, it will execute upon request the NetStream call that performs the switch. For the latter, it will execute the switch based on its own internal logic.

A NetStreamSwitchManagerBase doesn't dispatch any events indicating state changes. The assumption is that a client will already be listening to events on the NetStream, so there's no need for duplicative events here.

This is an abstract base class, clients must subclass it to implement their own switching logic.



Propriedades públicas
 PropriedadeDefinido por
  autoSwitch : Boolean
Indicates whether the switching manager should automatically switch between streams.
NetStreamSwitchManagerBase
 Inheritedconstructor : Object
Uma referência ao objeto de classe ou à função de construtor de uma determinada ocorrência de objeto.
Object
  currentIndex : uint
[somente leitura] Returns the current stream index that is rendering on the client.
NetStreamSwitchManagerBase
  maxAllowedIndex : int
The highest stream index that the switching manager is allowed to switch to.
NetStreamSwitchManagerBase
Propriedades protegidas
 PropriedadeDefinido por
  _autoSwitch : Boolean
NetStreamSwitchManagerBase
  _maxAllowedIndex : int
NetStreamSwitchManagerBase
Métodos públicos
 MétodoDefinido por
  
Constructor.
NetStreamSwitchManagerBase
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra um objeto de ouvinte de evento em um objeto EventDispatcher, de forma que o ouvinte receba a notificação de um evento.
EventDispatcher
 Inherited
Envia um evento para o fluxo de eventos.
EventDispatcher
 Inherited
Verifica se o objeto EventDispatcher tem ouvintes registrados para um tipo específico de evento.
EventDispatcher
 Inherited
Indica se um objeto tem uma propriedade especificada definida.
Object
 Inherited
Indica se uma ocorrência da classe Object está na cadeia de protótipos do objeto especificado como o parâmetro.
Object
 Inherited
Indica se a propriedade especificada existe e é enumerável.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Remove um ouvinte do objeto EventDispatcher.
EventDispatcher
 Inherited
Define a disponibilidade de uma propriedade dinâmica para operações de repetição.
Object
  
Initiate a switch to the stream with the given index.
NetStreamSwitchManagerBase
 Inherited
Retorna a representação da string deste objeto, formatado segundo as convenções específicas para a localidade.
Object
 Inherited
Retorna a representação de string do objeto especificado.
Object
 Inherited
Retorna o valor primitivo do objeto especificado.
Object
 Inherited
Verifica se um ouvinte de evento está registrado nesse objeto EventDispatcher ou em qualquer um de seus ancestrais para o tipo de evento especificado.
EventDispatcher
Eventos
 Evento Resumo Definido por
 Inherited[transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR ganha o foco do sistema operacional e está se tornando inativo.EventDispatcher
 Inherited[transmissão de evento] Despachado quando o Flash Player ou o aplicativo do AIR perde o foco do sistema operacional e está se tornando inativo.EventDispatcher
Detalhes da propriedade

_autoSwitch

propriedade
protected var _autoSwitch:Boolean

_maxAllowedIndex

propriedade 
protected var _maxAllowedIndex:int

autoSwitch

propriedade 
autoSwitch:Boolean

Versão da linguagem: ActionScript 3.0
Versão de produto: OSMF 1.0
Versões de runtime: Flash Player 10, AIR 1.5

Indicates whether the switching manager should automatically switch between streams. The default is true.



Implementação
    public function get autoSwitch():Boolean
    public function set autoSwitch(value:Boolean):void

currentIndex

propriedade 
currentIndex:uint  [somente leitura]

Versão da linguagem: ActionScript 3.0
Versão de produto: OSMF 1.0
Versões de runtime: Flash Player 10, AIR 1.5

Returns the current stream index that is rendering on the client. Note this may differ from the last index requested if this property is queried after a switch has begun but before it has completed.



Implementação
    public function get currentIndex():uint

maxAllowedIndex

propriedade 
maxAllowedIndex:int

Versão da linguagem: ActionScript 3.0
Versão de produto: OSMF 1.0
Versões de runtime: Flash Player 10, AIR 1.5

The highest stream index that the switching manager is allowed to switch to.



Implementação
    public function get maxAllowedIndex():int
    public function set maxAllowedIndex(value:int):void
Detalhes do construtor

NetStreamSwitchManagerBase

()Construtor
public function NetStreamSwitchManagerBase()

Versão da linguagem: ActionScript 3.0
Versão de produto: OSMF 1.0
Versões de runtime: Flash Player 10, AIR 1.5

Constructor.

Detalhes do método

switchTo

()método
public function switchTo(index:int):void

Versão da linguagem: ActionScript 3.0
Versão de produto: OSMF 1.0
Versões de runtime: Flash Player 10, AIR 1.5

Initiate a switch to the stream with the given index. Note: If the media is paused, switching will not take place until after play resumes.

Parâmetros

index:int





[ X ]Por que inglês?
O conteúdo na Referência do ActionScript 3.0 aparece em inglês

Nem todas as partes da Referência do ActionScript 3.0 estão traduzidas em todos os idiomas. Quando um elemento de um idioma não está traduzido, ele é exibido em inglês. Por exemplo, a classe ga.controls.HelpBox não está traduzida em nenhum idioma. Por isso, na versão da referência em português do Brasil, a classe ga.controls.HelpBox é exibida em inglês.