| 패키지 | org.osmf.traits | 
| 클래스 | public class AlternativeAudioTrait | 
| 상속 | AlternativeAudioTrait    MediaTraitBase   EventDispatcher   Object | 
| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.6 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
Use the MediaElement.hasTrait(MediaTraitType.ALTERNATIVE_AUDIO) 
	 method to query whether a media element has a trait of this type.
	 If hasTrait(MediaTraitType.ALTERNATIVE_AUDIO) returns true,
	 use the MediaElement.getTrait(MediaTraitType.ALTERNATIVE_AUDIO) method
	 to get an object of this type.
관련 API 요소
| 속성 | 정의 주체 | ||
|---|---|---|---|
![]()  | constructor : Object 
	 지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다.  | Object | |
| currentIndex : int [읽기 전용] 
		 Obtains a 0-based index identifying the current audio stream, or 
		 -1 if no stream is selected.  | AlternativeAudioTrait | ||
| numAlternativeAudioStreams : int [읽기 전용] 
		 Obtains the total number of alternative audio streams.  | AlternativeAudioTrait | ||
| switching : Boolean [읽기 전용] 
		 Indicates whether an alternative audio stream switch is currently in progress.  | AlternativeAudioTrait | ||
![]()  | traitType : String [읽기 전용] 
		 The MediaTraitType for this trait.  | MediaTraitBase | |
| 속성 | 정의 주체 | ||
|---|---|---|---|
| _indexToSwitchTo : int = -2 | AlternativeAudioTrait | ||
| 메서드 | 정의 주체 | ||
|---|---|---|---|
AlternativeAudioTrait(numAlternativeAudioStreams:int) 
		 Default Constructor.  | AlternativeAudioTrait | ||
![]()  | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void 
	리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다.  | EventDispatcher | |
![]()  | 
	이벤트를 이벤트 흐름으로 전달합니다.  | EventDispatcher | |
![]()  | 
		 Disposes of any resources used by this trait.  | MediaTraitBase | |
		 Returns the associated streaming item for the specified index.  | AlternativeAudioTrait | ||
![]()  | 
	EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다.  | EventDispatcher | |
![]()  | 
	 지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다.  | Object | |
![]()  | 
	 Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다.  | Object | |
![]()  | 
	 지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다.  | Object | |
![]()  | 
	EventDispatcher 객체에서 리스너를 제거합니다.  | EventDispatcher | |
![]()  | 
     루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다.  | Object | |
		 Switches the current audio stream to the alternate stream specified by the 
		 index value.  | AlternativeAudioTrait | ||
![]()  | 
	 로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다.  | Object | |
![]()  | 
	 지정된 객체의 문자열 표현을 반환합니다.  | Object | |
![]()  | 
	 지정된 객체의 프리미티브 값을 반환합니다.  | Object | |
![]()  | 
	이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다.  | EventDispatcher | |
| 이벤트 | 요약 | 정의 주체 | ||
|---|---|---|---|---|
![]()  | [브로드캐스트 이벤트] Flash Player 또는 AIR 응용 프로그램이 운영 체제 포커스를 얻어 활성화될 때 전달됩니다. | EventDispatcher | ||
| Dispatched when an alternative audio stream switch is requested, completed, or has failed. | AlternativeAudioTrait | |||
![]()  | [브로드캐스트 이벤트] Flash Player 또는 AIR 응용 프로그램이 운영 체제 포커스를 잃고 비활성화될 때 전달됩니다. | EventDispatcher | ||
| Dispatched when the total number of alternative audio streams has changed. | AlternativeAudioTrait | |||
| 상수 | 정의 주체 | ||
|---|---|---|---|
| DEFAULT_TRANSITION_INDEX : int = -1 [정적]   | AlternativeAudioTrait | ||
| INVALID_TRANSITION_INDEX : int = -2 [정적]   | AlternativeAudioTrait | ||
_indexToSwitchTo | 속성 | 
protected var _indexToSwitchTo:int = -2currentIndex | 속성 | 
currentIndex:int  [읽기 전용] | 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.6 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
		 Obtains a 0-based index identifying the current audio stream, or 
		 -1 if no stream is selected. The returned value is 
		 always been -1 and numAlternativeAudioStreams-1. 
		  
		 
구현
    public function get currentIndex():intnumAlternativeAudioStreams | 속성 | 
switching | 속성 | 
switching:Boolean  [읽기 전용] | 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.6 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
		 Indicates whether an alternative audio stream switch is currently in progress. 
		 
		 Returns true while an audio stream switch has been requested but 
		 not yet acknowledged and no switching failure has occurred. Returns 
		 false once the switch request is acknowledged or a switching 
		 failure occurs.
		  
		 
구현
    public function get switching():BooleanAlternativeAudioTrait | () | 생성자 | 
getItemForIndex | () | 메서드 | 
 public function getItemForIndex(index:int):StreamingItem| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.6 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
		 Returns the associated streaming item for the specified index. Returns 
		 null if the index is -1.
		 
		 
매개 변수
index:int | 
StreamingItem | 
오류
RangeError  — If the specified index is less than -1 or 
		 greater than (numAlternativeAudioStreams - 1).
		  
		  | 
switchTo | () | 메서드 | 
 public function switchTo(index:int):void| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.6 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
		 Switches the current audio stream to the alternate stream specified by the 
		 index value. Passing -1 for the index 
		 value resets the current audio stream to the default one. 
		 
		 Note: If media playback is currently paused, the audio stream 
		 switch does not occur until after play resumes.
    	 
		 
매개 변수
index:int | 
오류
RangeError  — If the specified index is less than -1 or
		 greater than numAlternativeAudioStreams-1.
		 
		  | 
audioSwitchingChange | 이벤트 | 
org.osmf.events.AlternativeAudioEvent속성 AlternativeAudioEvent.type =
org.osmf.events.AlternativeAudioEvent.AUDIO_SWITCHING_CHANGE| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.6 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
Dispatched when an alternative audio stream switch is requested, completed, or has failed.
Dispatched when the switching state of the alternative audio stream has changed. Usually for any successful switching operation, two AUDIO_SWITCHING_CHANGE events will be triggered. One when the switch operation starts ( theswitching
		 property will be set to true ) and one when the operation ends ( the
		 switching property will be set to false ).
		 
		 numAlternativeAudioStreamsChange | 이벤트 | 
org.osmf.events.AlternativeAudioEvent속성 AlternativeAudioEvent.type =
org.osmf.events.AlternativeAudioEvent.NUM_ALTERNATIVE_AUDIO_STREAMS_CHANGE| 언어 버전: | ActionScript 3.0 | 
| 제품 버전: | OSMF 1.6 | 
| 런타임 버전: | Flash Player 10, AIR 1.5 | 
Dispatched when the total number of alternative audio streams has changed.
Dispatched when the number of available alternative audio streams has changed..DEFAULT_TRANSITION_INDEX | 상수 | 
protected static const DEFAULT_TRANSITION_INDEX:int = -1INVALID_TRANSITION_INDEX | 상수 | 
protected static const INVALID_TRANSITION_INDEX:int = -2Tue Jun 12 2018, 03:17 PM Z
 
 상속되는 공용 속성 숨기기
 상속되는 공용 속성 표시