Nein, der Player von dem Lee Brimelow ist ganz aus normal gezeichneten Sachen und AS
Das AS sieht so aus:
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream (nc);
theVideo.attachVideo(ns);
ns.play("http://mein-video-im.net/dsl.flv");
//Das hab ich grad eingefügt aber noch nicht ausprobiert;
//hier im Forum gefunden...
autostart = true; // true = Autostart, false = kein Autostart
if(autostart == false){
pauseMovie();
//Den kriege ich grade nicht zum Funktionieren, weil ich nicht weiss
//was der braucht.
//ButtonPlay.onRelease = function(){
// ?
// }
ns.setBufferTime(10);
ns.onStatus = function(info){
if(info.code == "NetStream.Buffer.Full"){
bufferClip._visible = false;
}
if(info.code == "NetStream.Buffer.Empty"){
bufferClip._visible = true;
}
if(info.code == "NetStream.Play.Stop"){
ns.seek(0);
}
}
//Die Buttons unterhalb des Videos, die einen VCR nachahmen sollen:
rewindButton.onRelease = function(){
ns.seek(0);
}
playButton.onRelease = function(){
ns.pause();
}
//Die Dauer berechnen, damit die Verlaufsanzeige korrekt laufen kann:
var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;
duration = 177.4
function videoStatus(){
amountLoaded = ns.bytesLoaded / ns.bytesTotal;
loader.loadbar._width = amountLoaded * 222;
loader.scrub._x = ns.time / duration * 222;
}
var scrubInterval;
//Der Schieber auf der Laufzeit-Anzeige:
loader.scrub.onPress = function () {
clearInterval(videoInterval);
scrubInterval = setInterval(scrubit,10);
this.startDrag(false,0,this._y,215,this._y);
}
loader.scrub.onRelease = loader.scrub.onRelease.Outside = function() {
clearInterval(scrubInterval);
videoInterval = setInterval(videoStatus,100);
this.stopDrag();
}
function scrubit(){
ns.seek(Math.floor((loader.scrub._x / 222)*177.4));
}
function pauseIt(){
ns.pause();
}
function replayIt(){
ns.seek(0);
}
//Sound mute oder on:
_root.createEmptyMovieClip("vSound", _root.getNextHighestDepth())
vSound.attachAudio(ns);
var so:Sound = new Sound(vSound);
so.setVolume(100);
mute.onRollOver = function(){
if(so.getVolume()==100) {
this.gotoAndStop("onOver");
}
else {
this.gotoAndStop("muteOver");
}
}
mute.onRollOut = function(){
if(so.getVolume()==100) {
this.gotoAndStop("on");
}
else {
this.gotoAndStop("mute");
}
}
mute.onRelease = function(){
if(so.getVolume()==100) {
so.setVolume(0);
this.gotoAndStop("muteOver");
}
else {
so.setVolume(100);
this.gotoAndStop("onOver");
}
}
Tja, ist also nur mit wenigen Elementen ausgestattet. Ich wollte jetzt einen Button zeichnen, der über der Buffer-Ebene liegt. Der soll dann eben starten und verschwinden, wenns Video lädt...
Aber ich probiere immer noch hilflos herum...
LG, Miriam