Copy link to clipboard
Copied
Hello,
My video is black when using the new class Videotexture and Pseudo Streaming on Android Nexus 5
package{
import com.VideoT;
import flash.display.Sprite;
import flash.events.Event;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import starling.core.Starling;
public class Main extends Sprite
{
private var _starling:Starling = null;
public function Main()
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
addEventListener(Event.ADDED_TO_STAGE, init);
}
public function init(event:Event):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
_starling = new Starling(VideoT, stage);
_starling.antiAliasing = 1;
_starling.showStats = true;
_starling.start();
}
}
}
package com
{
import flash.display3D.Context3D;
import flash.display3D.Context3DTextureFormat;
import flash.display3D.textures.VideoTexture;
import flash.events.VideoTextureEvent;
import flash.net.NetConnection;
import flash.net.NetStream;
import starling.core.Starling;
import starling.display.Image;
import starling.display.Sprite;
import starling.events.Event;
import starling.textures.ConcreteTexture;
import flash.events.NetStatusEvent;
/**
* Starling root Class
* @author SzRaPnEL
*/
public class VideoT extends Sprite
{
private var vidClient:Object;
private var cTexture:ConcreteTexture;
private var vTexture:VideoTexture;
private var nc:NetConnection;
private var ns:NetStream;
private var image:Image;
private var context3D:Context3D;
public function VideoT()
{
addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
core();
}
private function core():void
{
context3D = Starling.context;
vidClient = new Object();
vidClient.onMetaData = onMetaData;
nc = new NetConnection();
nc.connect(null);
ns = new NetStream(nc);
ns.client = vidClient;
ns.play("http://www.mysite.com/myvideo.mp4?start=50");
ns.addEventListener(NetStatusEvent.NET_STATUS, netstat);
vTexture = context3D.createVideoTexture();
vTexture.attachNetStream(ns);
vTexture.addEventListener(VideoTextureEvent.RENDER_STATE, renderFrame);
cTexture = new ConcreteTexture(vTexture, Context3DTextureFormat.BGRA, 1024, 576, false, true, true);
image = new Image(cTexture);
addChild(image);
}
private function netstat(stats:NetStatusEvent):void {
trace(stats.info.code);
}
private function renderFrame(e:VideoTextureEvent):void
{
//
}
private function onMetaData(metadata:Object):void
{
//
}
}
}
It work on Windows but not on Android.
Thanks
Copy link to clipboard
Copied
Thanks for the heads up. I'll let the team know. If you have a chance (or if you have already done so), could you open a new bug report on this over at https://bugbase.adobe.com and let me know the bug number?
Thanks,
Chris
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Thanks for reporting the issue.
We are able to reproduce the issue and further investigating it now.
Regards,
Jitender
Copy link to clipboard
Copied
Hello,
I had this bug for a long time in Android, waited patiently for the new Adobe Air 18, and now with the VideoTexture it still flickers after calling netStream.play()
a black screen of about 1-1.5 seconds.
On iOS it plays the clips almost instantly. I wish to have the same behavior on Android please as it limits my creative flexibility tremendously.
Thanks
Copy link to clipboard
Copied
Edit: It can even flicker through for 3 seconds... annoying. I thought that in the release notes of Air 18 they've stated that the flicker bug was fixed. I have the latest version, it happens on 2 different devices.
Using Starling to display the video texture.
Thanks
Copy link to clipboard
Copied
Hi Mike,
Thanks for reporting the issue. However, we are not seeing any flicker on playing video using video texture.
You might be experiencing bit delay in video start up time but that is dependent on the device configuration.
Also, please let us know which device you are using and share us the video clip (if possible).
Regards,
Jitender
Copy link to clipboard
Copied
Hi,
We have investigated the bug (https://watsonexp.corp.adobe.com/#bug=4006157) and found that bug is specific to the flowplayer urls. On ios, we handoff the url directly to avplayer and get a timeout error. Similar is the case with android. Even on safari (ios) the url fails to play.
Could you please check the application with other URLs at your end and kindly share the behaviour?
Thanks,
Adobe AIR Team
Find more inspiration, events, and resources on the new Adobe Community
Explore Now