| 패키지 | org.osmf.containers |
| 클래스 | public class HTMLMediaContainer |
| 상속 | HTMLMediaContainer Object |
| 구현 | IMediaContainer |
| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
공용 속성
공용 메서드
| 메서드 | 정의 주체 | ||
|---|---|---|---|
HTMLMediaContainer(containerIdentifier:String = null)
Constructor. | HTMLMediaContainer | ||
![]() |
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | |
![]() |
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | |
![]() |
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | |
![]() |
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | |
![]() |
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 프리미티브 값을 반환합니다. | Object | |
생성자 세부 정보
HTMLMediaContainer | () | 생성자 |
public function HTMLMediaContainer(containerIdentifier:String = null)| 언어 버전: | ActionScript 3.0 |
| 제품 버전: | OSMF 1.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
Constructor.
매개 변수containerIdentifier:String (default = null) — The identifier that will be used for this container
in JavaScript. If no identifier is specified, a random one will be generated.
|
예제 예제 사용 방법
HTMLMediaContainerExample.as
package
{
import flash.display.Sprite;
import org.osmf.elements.HTMLElement;
import org.osmf.media.URLResource;
public class HTMLMediaContainerExample extends Sprite
{
public function HTMLMediaContainerExample()
{
super();
// This will invoke a JavaScript callback (onHTMLMediaContainerConstructed(container))
// that may be used to add listeners to new elements being added or removed to the
// container.
var container:HTMLMediaContainer = new HTMLMediaContainer();
var element:HTMLElement = new HTMLElement();
element.resource = new URLResource("http://example.com/an/asset/JS/will/handle.pgn");
// This will invoke a JavaScript callback (container.onElementAdd(element)) that
// allows JavaScript to process the passed URL, and to communicate back to the
// framework what traits the element will support:
container.addMediaElement(element);
}
}
}
Tue Jun 12 2018, 03:17 PM Z
상속되는 공용 속성 숨기기
상속되는 공용 속성 표시