Simple AS3 Video/Audio Media Player
A video/audio player with simple style skin but full function you
can find for a video/audio player, which could be used either as a
standalone video/audio player, or to be integrated into your original
project.

Key Features
1. XML Driven, Dynamic Refresh with xml supported.
2. Smooth played time seek for video/audio player (an improvement of
the NetSteam.time, which is unstable), buffered status included.
3. Draggable for the loaded part.
4. Loop, Autoplay on/off.
5. Play, Pause, FullScreen(for video player) and Sound Control.
6. Multiple video/audio support, pre/next video/audio function.
7. Information text field, with html and scrollbar support, autohide.
8. The background color of the player control could be customized.
9. Carefully treat on memory recycle and performance.
10. Builded with AS3 , both support flash cs3+ and flex builder 3+ (pure actionscript project).
11. Well organized UI resources in fla, good formatted/commented code and documents, easily to be modified for new requirements.
XML Node Explanation
<!--the video node sample-->
<unit>
<!--the media link-->
<media_res>videos/video_1.flv</media_res>
<!--the media title-->
<title><![CDATA[The Video/Audio Title]]> </title>
<!--the media information-->
<information>
<![CDATA[Html Formatted Support]]> </information>
<!--the jump link for the title field-->
<link />http://www.activeden.net
<!--optional arguments-->
<!--the video width&height limit-->
<width>600</width>
<height>450</height>
<!--0:not auto play,1:auto play,default:1-->
<autoplay>0</autoplay>
<!--0:not loop,1:loop,default:0-->
<loop>0</loop>
<!--the bgcolor for the player tool bar bg,default: 0xe6e6e6-->
<bgcolor>0x999999</bgcolor>
</unit>
<!--the audio node sample-->
<unit>
<!--the media link-->
<media_res>audios/audio_1.mp3</media_res>
<!--the media title-->
<title><![CDATA[The Video/Audio Title]]> </title>
<!--the media information-->
<![CDATA[ Html Formatted Support]]>
<!--the jump link for the title field-->
<link />http://www.activeden.net
<!--the face image/swf for the audio player-->
<faceimage>swfs/swf_1.swf</faceimage>
<!--optional arguments-->
<!--the audio face image width&height limit-->
<width>450</width>
<height>350</height>
<!--0:not auto play,1:auto play,default:1-->
<autoplay>0</autoplay>
<!--0:not loop,1:loop,default:0-->
<loop>0</loop>
<!--the bgcolor for the player tool bar bg,default: 0xe6e6e6-->
<bgcolor>0xa6c8e2</bgcolor>
</unit>
Easy Use Sample
Sample Code 1
//the stage’s align and scalemode setting
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
//do the init
var simpleAS3MediaPlayer:SimpleMediaPlayer = new SimpleMediaPlayer();
simpleAS3MediaPlayer.init("xmls/config1.xml");
addChild(simpleAS3MediaPlayer);
Sample Code 2: (Refresh Mode)
//the first init
simpleAS3MediaPlayer.init(some_xml_address);
//….sometimes later
simpleAS3MediaPlayer.dispose(); //dispose before re-init
simpleAS3MediaPlayer.init(some_xml_address);
Check the item at here:
http://activeden.net/item/simple-as3-videoaudio-media-player/129942
分享到:
相关推荐
TVideoGrabber captures and records video and audio streams from most of the video capture devices, IP cameras, screen, as well as from images used as video source. TVideoGrabber is also an advanced ...
TVideoGrabber captures and records video and audio streams from most of the video capture devices, IP cameras, screen, as well as from images used as video source. TVideoGrabber is also an advanced ...
"ASF" 标签直接关联到Advanced Systems Format,这是微软设计的一种多媒体容器格式,常用于流式传输和保存数字媒体内容,包括Windows Media Audio (WMA) 和 Windows Media Video (WMV) 文件。"Codec" 标签则涉及媒体...
本教程将探讨如何在QT中关联libvlc(VideoLAN Client Library)和SDL2(Simple DirectMedia Layer)窗口来播放视频。libvlc是一个强大的跨平台多媒体框架,而SDL2则是一个用于开发游戏和其他多媒体应用的库,它提供...
The software is designed to convert swf for your mobile video player as avi, 3gp, mp4, mp3, PSP, PS3, iPod, iPhone, Apple TV, XBOX 360, Zune etc and also CD, VCD or DVD player. In particular, E.M. ...
iMEDIAN HD is a straightforward yet powerful media player that can be controlled using only four directional buttons. It supports a wide range of media formats and devices, making it highly versatile ...
Along the way, you’ll build example projects, including a simple Objective-C application, a custom view, a simple video player application, and an app that displays calendar events for the user. ...
- `html5-video-player-mobile.rar`:移动设备上的HTML5视频播放器,HTML5的Video元素支持直接在浏览器中播放多媒体内容,同时可以通过JavaScript控制播放、暂停、音量等属性。 - `html5-mario.rar`:可能是基于...
- **解析**: WMP(Windows Media Player)是一种音频和视频文件格式,而非图像文件格式。常用的图像文件格式有GIF、JPEG/JPG、TIFF等。 **5. 存储容量表示中1GB等于** - **答案**: D、1024MB - **解析**: 在计算机...
Android, the next-generation open mobile platform from Google and the Open Handset Alliance, is poised to become a significant player in the mobile device market. The Android platform gives developers...
- Play Audio and Video files in the built-in Media Player - Provide access to the File Server in eleven different supported languages Features: - Concurrently upload multiple files. - Download files ...