开发者

Embedding metadata time limit for Flash Builder 4.5.1mobile project?

开发者 https://www.devze.com 2023-03-15 14:55 出处:网络
I am working on a project that requires me to embed metadata on the fly with a recorded stream from a webcam.I am utilizing Flash Builder 4.5.1 creating a mobile project.I am using a simple netStream.

I am working on a project that requires me to embed metadata on the fly with a recorded stream from a webcam. I am utilizing Flash Builder 4.5.1 creating a mobile project. I am using a simple netStream.send function to set the metadata I want. This works just fine until my netstream time goes over around 10 seconds, then the function ceases to work or will not embed into the video. All my connections are correct and I can record to the Flash Media Server

The only thing I can think of is that my Flash Media Server 4 Developer is being over loaded and does not compute the metadata I send.

Any ideas would greatly h开发者_运维知识库elp.

 private function sendMetadata():void {


                 infotxt.text += 'called';
                trace("sendMetaData() called")
                myMetadata = new Object();
                myMetadata.customProp = "This message is sent by @setDataFrame.";
                myMetadata.customOther = cueHolder;
                ns.send("@setDataFrame", "onMetaData", myMetadata);
            }  

And here is my onMetaData function

public function onMetaData(info:Object):void { 
                trace("caught");
                infotxt.text = 'caught';
                var key:String;
                for (key in info){ 
                    outputWindow.text +=(key + ": " + info[key] + "\n"); 
                }
                //cueHolderReturn = info.customOther;
                 for (var i:int = 0; i < info.customOther.length; i++) 
                {
                    infotxt.text += info.customOther[i]
                } 

                //infotxt.text = info.customOther[0];




            }


Just wondering - is this problem occuring on both a real mobile device and a mobile emulator? If not, it could be the mobile connection - HTH

0

精彩评论

暂无评论...
验证码 换一张
取 消