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
分享到:
相关推荐
Simple Video Player 1.0 Unity
Simple Video Player WPF实现,这里是源码
Simple Music Player 简洁大气的JavaScript音乐播放器
名称:Simple Music Player 简洁大气的Javascript音乐播放器 作者:海兵大侠 版本:v1.0 更新:2013年10月9日 请到 http://git.oschina.net/hbdx/SimpleMusicPlayer 跟踪本项目的最新消息 使用方法:...
React本机简单的音频播放器 简单的音频播放器,可通过所有必需的控件进行本地响应 仍处于测试版,不久将添加更多的标准化和文档 :rocket: :clinking_beer_mugs: 安装 $ npm i react-native-simple-audio-player --...
免费版本
ASP实例开发源码—Simple Music Player 简洁大气的JavaScript音乐播放器 v1.0.zip ASP实例开发源码—Simple Music Player 简洁大气的JavaScript音乐播放器 v1.0.zip ASP实例开发源码—Simple Music Player 简洁大气...
简单音频播放器Simple-Audio-Player 是一个轻量级的 JavaScript 库,它被实现为一个 jQuery 插件并基于 flash 和 soundmanager2。依赖关系声音管理器2 jQuery 字体真棒安装 bower install Simple-Audio-Player用法 &...
SMPlayer 是个适用于 Windows 和 Linux 的免费媒体播放器, 内置解码器,可以播放几乎所有格式的视频和音频文件。 无需再安装任何外部解码器。 只要安装了 SMPlayer, 你就能够播放所有的格式,不用再费事查找安装...
ASP源码—Simple Music Player 简洁大气的JavaScript音乐播放器 v1.0.zip
基于ASP的Simple Music Player 简洁大气的JavaScript音乐播放器 v1.0.zip
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 ...
简单音频播放器 SimpleAudioPlayer 是一个简单的 AVAudioPlayer 包装器 用法 要使用它,请执行以下操作: [SimpleAudioPlayer playFile:@"filename.mp3"]; 或者 [SimpleAudioPlayer playFile:@"filename.mp3" ...
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 ...
mp3播放器 一个简单漂亮的C++编写的mp3播放器,研究C编程的可以下载后学习。-a simple mp3 player beautiful C++ prepared mp3 players to study the C programming can be downloaded after the study.
#名称:Simple Music Player 简洁大气的JavaScript音乐播放器 #作者:海兵大侠 #主页:http://hbdx.cc/ #版本:v1.0 #更新:2013年10月9日 #演示:http://blog.hbdx.cc/2013/10/08/429.html 请到 ...
a simple mp3 player的源码
SIMPLE MP3播放器程序代码
VLC-Simple-Player-Android,自测可用。VLC-Simple-Player-Android ========================= **Basic Movie Player for Android using VLC Library** *The project was created with Android Studio* ##What is...
#名称:Simple Music Player 简洁大气的JavaScript音乐播放器#作者:海兵大侠#主页:http//blog.hbdx.cc/2013/10/08/429.html请到 httpSimpleMusicPlayerdata-music:音乐文件地址data-auto:是否自动播放例如: 2....