Zurück   Flashforum > Flash > ActionScript > ActionScript 2

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 07-04-2011, 11:01   #1 (permalink)
bitchboy
 
Registriert seit: Mar 2004
Ort: München
Beiträge: 126
onMetaData kommt teilweise nicht an

Hi,

ich habe ein für meine Begriffe extrem seltsames Problem mit einem dynamischen Videoplayer: Auf dem Server meines Kunden (in-house) kommt _in manchen Browsern_ (IE & teilweise im Chrome, im FF4 dagegen geht es...) das onMetaData nicht an (die Videos werden aber normal abgespielt.). Auf meinen beiden Live-Servern (bei 1&1 sowie bei w3w) und auf meinem xampp habe ich dagegen keinerlei Probleme, dh. onMetaData wird anstandslos und unabhängig von welchem Browser empfangen. Wie kann das sein? o_0

hier das script:
Code:
var cur = videoItem.myVid;
var my_nc = new NetConnection ();
my_nc.connect (null);
var my_ns = new NetStream (my_nc);
my_ns.onMetaData = function (infoObject:Object) {
	videoItem._visible = true;
	totalTime = infoObject["duration"];
	var minutes:Number = Math.floor (totalTime / 60);
	var seconds = Math.floor (totalTime % 60);
	if (seconds < 10) {
		seconds = "0" + seconds;
	}
	totalTimeText = minutes + ":" + seconds;
	vidHoehe = infoObject["height"];
	vidBreite = infoObject["width"];
	trace (vidBreite);
	cur._width = vidBreite;
	cur._height = vidHoehe;
	videoItem._x = 0 - vidBreite / 2;
	videoItem._y = 0 - vidHoehe / 2;
	videoItem.playBtn._x = vidBreite / 2 - videoItem.playBtn._width / 2;
	videoItem.playBtn._y = vidHoehe / 2 - videoItem.playBtn._height / 2;
	controlItem._y = videoItem._y + videoItem._height + 10;
	controlItem._x = 0 - controlItem._width / 2;
	controlItem.posX = controlItem._x;
	controlItem.posY = controlItem._y;
	controlItem._visible = true;
	video_preloader._visible = false;
};
cur.attachVideo (my_ns);
cur.smoothing = true;
my_ns.setBufferTime (3);
_root.createEmptyMovieClip ("vSound",_root.getNextHighestDepth ());
vSound.attachAudio (my_ns);
var VL:Sound = new Sound (vSound);
var VO:Number = 100;
VL.setVolume (VO);

starteVideo = function (myVid) {
	videoItem._visible = false;
	controlItem._visible = false;
	video_preloader._x = 0 - video_preloader._width / 2;
	video_preloader._y = 0 - video_preloader._height / 2;
	video_preloader._visible = true;
	my_ns.close();
	my_ns.play (myVid);
};
starteVideo ("img/work/" + _root.verz + '/' + _root.vid);
Hat jemand eine Idee?
__________________
cheers,
alex
---
http://www.destinationdesign.de

Geändert von Trumpfass (07-04-2011 um 11:03 Uhr)
Trumpfass ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Problem bei Video: Error #1069: Eigenschaft onMetaData nicht gefunden TianK ActionScript 3 3 26-02-2010 12:10
Metadaten vom Video - OnMetaData wird nicht ausgelöst? skittles ActionScript 3 3 23-09-2008 11:39
getURL-Problem, url kommt nur teilweise an Master Wu ActionScript 2 5 23-06-2008 11:13
flv onMetaData funktioniert nicht anakin_w ActionScript 3 1 31-03-2008 12:47
Seite teilweise Cachen und teilweise nicht? Samuel HTML und CSS 1 03-09-2003 20:07


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:05 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele