Video's been broken for a little while, but I had removed all my video
objects so was not seeing NPEs that others were. Fixed. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4581 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -25,6 +25,9 @@ import flash.geom.Point;
|
|||||||
|
|
||||||
import flash.media.Video;
|
import flash.media.Video;
|
||||||
|
|
||||||
|
import flash.text.TextField;
|
||||||
|
import flash.text.TextFieldAutoSize;
|
||||||
|
|
||||||
import flash.system.ApplicationDomain;
|
import flash.system.ApplicationDomain;
|
||||||
import flash.system.LoaderContext;
|
import flash.system.LoaderContext;
|
||||||
import flash.system.SecurityDomain;
|
import flash.system.SecurityDomain;
|
||||||
@@ -121,6 +124,15 @@ public class MediaContainer extends Sprite
|
|||||||
*/
|
*/
|
||||||
protected function setupVideo (url :String) :void
|
protected function setupVideo (url :String) :void
|
||||||
{
|
{
|
||||||
|
// TODO: re-implement video without flex
|
||||||
|
var tf :TextField = new TextField();
|
||||||
|
tf.autoSize = TextFieldAutoSize.LEFT;
|
||||||
|
tf.text = "Video is temporarily disabled";
|
||||||
|
tf.background = true;
|
||||||
|
tf.selectable = false;
|
||||||
|
tf.width = tf.textWidth + 5;
|
||||||
|
setMediaObject(tf);
|
||||||
|
|
||||||
// var vid :VideoDisplay = new VideoDisplay();
|
// var vid :VideoDisplay = new VideoDisplay();
|
||||||
// vid.autoPlay = false;
|
// vid.autoPlay = false;
|
||||||
// _media = vid;
|
// _media = vid;
|
||||||
|
|||||||
Reference in New Issue
Block a user