StartTransmit / stopTransmit reference error on NetStream when connecting to device
Hi all,
I'm trying to create a P2P connection between a mobile device (Android) and a PC using the NetStream class.
When the connection is established, the Flash Player Instance on the PC is crashing with a reference error:
“Property startTransmit not found on flash.net.NetStream”
I have seen the thread located located here: http://stackoverflow.com/questions/9676496/adobe-cirrus-error-on-direct-connectproperty-st arttransmit-not-found-on-flash-n
but was not successfull in making it work with my code.
I have tried extending the NetStream class like so:
import com.frimastudio.cosy.util.NetConsole;
import flash.net.NetConnection;
import flash.net.NetStream;
public class NetStreamProvider extends NetStream
public function NetStreamProvider (connection:NetConnection, peerID:String)
super(connection, peerID);
// For AIR Android projects: when the device is put to sleep for a moment, this function will be
// called so we need to implement it to prevent flash from crashing.
public function startTransmit($p1:*, $p2:*):void
COSY::console { NetConsole.WarningInternal("NetInterfaceSlot", "startTransmit", "startTransmit called"); }
public function stopTransmit():void
COSY::console { NetConsole.WarningInternal("NetInterfaceSlot", "stopTransmit", "stopTransmit called"); }
and using the NetStreamProvider instead. Without success.
Any help would be greatly appreciated.
Thanks.
Guillaume
>> i suspect this is AIR-specific (probably if AIR is the sender) -- in my experience it doesn't happen with plain Flash Player.
[Guillaume] -> Right, it does not happen on NetStreams between 2 Flash Players and 2 AIR app. Only between AIR-FlashPlayer NetStreams. Basically, after a stream is opened between AIR and Flash Player, the AIR is calling "starTransmit" on the FlashPlayer NetStream, wich is not implemented.
>> try making an object with those method names and assign it to netStream.client
[Guillaume] -> I tried the following:
Implement starTransmit/stopTransmit functions in the NetStream.client object
Implement startTransmit/stopTransmit functions in the NetStream instance (subclassed)
Without success. Basically, it works fine if I just create a "dummy" client object for the NetStream that has those 2 functions. But If I want to use my own client it was still crashing.
I found a work around for my problem.
My NetStream object is sub classed as such:
public class NetStreamProvider extends NetStream
public var customClient:Object;
public function NetStreamProvider (connection:NetConnection, peerID:String)
super(connection, peerID);
customClient = new Object();
this.client = customClient;
// Implement startTransmit and stopTransmit here for dummy client
customClient.onPeerConnect = function(subscriber:NetStream): Boolean{
var subClient:Object=new Object();
subClient.stopTransmit=function($p1:*,$p2:*):void{
trace("Cosy: stopTransmit called",$p1,$p2);
subClient.startTransmit=function():void{
trace("Cosy: startTransmit called");
subscriber.client = subClient;
return true;
public function SetClient(c:Object):void
this.client = c;
public function OnNetStreamAsyncError(event:AsyncErrorEvent):void
And in the stream status event handler, when the stream is ready (events "NetStream.Play.PublishNotify" and "NetStream.Play.Start") I set the correct client, which has the receive handler. At that point startTransmit was already called:
And in the stream status event handler, when the stream is ready (events "NetStream.Play.PublishNotify" and "NetStream.Play.Start") I set the correct client, which has the receive handler. At that point startTransmit was already called:
private function OnNetStreamStatus(e:NetStatusEvent)
switch(e.info.code)
case "NetStream.Play.PublishNotify":
stream = e.target as NetStreamProvider;
stream.SetupClient(client);
break;
case "NetStream.Play.Start":
stream = e.target as NetStreamProvider;
stream.SetupClient(client);
break;
At this point, i'm not blocked anymore. However, it would be good to know why, when and who are calling those functions to understand the issue. this is not documented anywhere, and might be an issue to a lot of people now that we are starting to see more and more cross-platform connectivity.
Cheers.
Guillaume
Similar Messages
-
I face an error message Oxe800012 when connecting iphone 4s to the computer, any help please ?????
See this support article: http://support.apple.com/kb/TS3221
-
When connecting Apple devices to your iPhones wireless hotspot do those devices stop background data processes to conserve data?
In other words if you have a limited data plan on your iPhone will your other Apple devices such as an iPad automatically cease background data transfers to conserve data usage?Nice trick to connect your Apple Devices to your wireless network.
Will help the users if they are facing the problem with the apple devices. -
"An unidentified error has ocurred" when connecting to mySQL in Dreamweaver MX
Hi All,
I've been trying & failing to figure this out for 2 days. I hope someone can help! I installed xampp on my local machine, got the Apache server, phpMyAdmin, and SQL up and running. My next step is to connect to my MySQL database in Dreamweaver MX. This where I'm running into trouble.
I've given super access rights to several db users in my MySQL database just to be sure that it wasn't a matter of not-enough-permissions. Here is a screenshot of the privileges: http://www.skyebrannon.com/db_privs.jpg
I am sure my connection information is correct, as I've used it to create a php page that lists my database tables.Those are working just fine Here is my info:
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "dbpassword";
$dbname = "camin0_music";
When I put the same information in my MySQL Connection, I get "An unidentified error has occured".
Here is a screenshot of the error and my (working) connection info:
http://www.skyebrannon.com/db_error.jpg
My apologies if this has been asked & solved. If I missed a thread that answes this, could you please let me know?
Thanks so much!
SkyeHi All,
I've been trying & failing to figure this out for 2 days. I hope someone can help! I installed xampp on my local machine, got the Apache server, phpMyAdmin, and SQL up and running. My next step is to connect to my MySQL database in Dreamweaver MX. This where I'm running into trouble.
I've given super access rights to several db users in my MySQL database just to be sure that it wasn't a matter of not-enough-permissions. Here is a screenshot of the privileges: http://www.skyebrannon.com/db_privs.jpg
I am sure my connection information is correct, as I've used it to create a php page that lists my database tables.Those are working just fine Here is my info:
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "dbpassword";
$dbname = "camin0_music";
When I put the same information in my MySQL Connection, I get "An unidentified error has occured".
Here is a screenshot of the error and my (working) connection info:
http://www.skyebrannon.com/db_error.jpg
My apologies if this has been asked & solved. If I missed a thread that answes this, could you please let me know?
Thanks so much!
Skye -
Error message -1073807298 when connecting through TCP
I get the error code -1073807298 when I try to connect to a TCP raw socket VISA resource, the weirdest thing is that I actually can read the result of the queries I make. I fixed the problem reading one byte at a time but this is very inefficient (it uses a while loop) and I still get warnings, so I'd like to know if there is a way to fix this or if there is an equivalent of the "Serial Settings: Number of Bytes at Serial Port" for VISA TCP connections....
This is the WARNING that I get when I read one byte at a time:
Warning 1073676294 occurred at VISA Read in LV.vi
Possible reason(s):
VISA: (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available.
This is the ERROR that I get when I set the byte count to 1024:
Error -1073807298 occurred at VISA Read in LV.vi
Possible reason(s):
VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error.
I enclosed the VI for your review,
Thanx in advance for your help,
Attachments:
LV.vi 22 KBHi,
While there is no equivalent of the "Serial Settings: Number of Bytes at Serial Port" for VISA TCP connections, one strategy is to make the first byte in your TCP string to contain the number of bytes to follow it. That way you can read that byte then know what to set the byte count to.
Regards,
John E.
Applications Engineering
National Instruments -
Error message appears when connected to computer
When I attempt to connect my original iphone to my pc in order to update...an error appears."Cannot connect iphone due to unknown error 0xE8000012" A week ago I was able to plug it in, what's going on? I have the latest itunes 8.2
I had that happen to me too once, don't know if it was the same error code, but powering off the Iphone (by holding down the top botton till it popped up the red shutdown slide) and powering it back on fixed the problem.
-
Error occured randomly when connecting user's INBOX with IMAP
Hi..
We are using our own developed web mail program using IMAP protocol.
Not very often but sometimes users faced error they couldn't connect their INBOX.
So I reconstructed their mailboxes and I could see error message.
reconstruct -r user/jcheol.kimuser/jcheol.kim/INBOX
ERROR: Trouble parsing cache record 190 string 1: String goes beyond EOF
Reconstructing...
user/jcheol.kim/Drafts
user/jcheol.kim/MyFolder
user/jcheol.kim/MyFolder/&rPW7OA-
user/jcheol.kim/MyFolder/43&rjAhkA-H&0wA-
user/jcheol.kim/MyFolder/43&rjAhkA-stc
user/jcheol.kim/MyFolder/SDI IS&0wA-
user/jcheol.kim/Sent
user/jcheol.kim/Spam
user/jcheol.kim/Trash
After run reconstruct user can see their mail.
Is there Anyone know what that errors means ?
Any ideas on how to fix it ?
mail sever version is..
> ./imsimta version
iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)
libimta.so 5.2 Patch 2 (built 19:30:12, Jul 14 2004)
SunOS ep_ms11 5.8 Generic_117350-25 sun4u sparc SUNW,Sun-Fire
ThanksThe error indicates that the store.idx file does not reflect the true status of the mailbox. Store.idx is a binary file that Messaging Server maintains to improve performance of getting data from the user's inbox.
The problem you describe can be caused by manual manipulation of the user's mailbox (removing files, adding files, etc), disk errors, and, yes, bugs. 5.2p2 is the latest PUBLICALLY available version of 5.2, but Tech Support has much later versions. I suggest contacting tech support and requesting a current hotfix. I cannot give you that, here.
Or, you can upgrade to 6.2.... -
Zen Xtra- Installed drivers, but when connected, "USB Device Not Recognized&qu
Hello- I'm trying to install a Creative Zen Xtra mp3 player on Windows XP. I installed all of the drivers and software, but when I connected the player, I got an error from Windows saying the "USB device is not recognized". I tried downloading all the new drivers and software from Creative, but it's no use. I was hoping maybe someone would have the inf file so I can install the driver manually. I can't find it on the installation CD or online anywhere. Thanks for any help!?~Jim
having a similar problem myself, recently misplaced the original usb 2.0 cord that came with my microphoto and unable to find a replacement, getting the same message though from other 5pin usb's I've tried
-
How to fix 11.2.2 spinning ball crashing issue when connecting a device
Hope this helps as it did for me, delete the sync services folder and bingo, the ball went away and my device connected instantly !!
This fix of deleting the SyncServices folder is for Mac systems. From your desktop / finder, click the "Go" menu at the top, then "Go to Folder ..." Paste this into the field ~/Library/Application Support
The SyncServices folder should be in there. I had both a SyncService and a SyncServices folder. The second one should, when deleted, help with the problem you and I both had of iTunes freezing when an iOS device is plugged in.Hope this helps as it did for me, delete the sync services folder and bingo, the ball went away and my device connected instantly !!
This fix of deleting the SyncServices folder is for Mac systems. From your desktop / finder, click the "Go" menu at the top, then "Go to Folder ..." Paste this into the field ~/Library/Application Support
The SyncServices folder should be in there. I had both a SyncService and a SyncServices folder. The second one should, when deleted, help with the problem you and I both had of iTunes freezing when an iOS device is plugged in. -
Error Code -41 when connecting to WinXP shares
I used to be able to view and access my WinXP desktop's shared folders using my MacBook. Now, when I try, I get the following error:
"Sorry, the operation could not be completed because an unexpected error occurred (Error code -41)"
This happens after I select the folder on the desktop that I want to connect to.
I searched this forum and couldn't find any reference to Error Code -41. I googled it and found that others have had the error but the solutions proposed haven't helped.
Any ideas what could have caused it, and how to fix it?
MacBook Mac OS X (10.4.7)Thanks for such an amazingly quick response.
I have downloaded Applejack and I'm glad to have learned of it (never heard of it before).
I also expanded my search in these forums and I found a reference that may solve the problem:
http://www.michna.com/kb/WxNotEnoughServerStorage.htm
This suggests that the problem is on the Windows machine. I checked my event log on the Windows machine looking for Event ID 2011 (as suggested by the page I found) and sure enough, there was one of those errors every time I tried to connect to the Windows machine from the Macbook. I have made the registry change suggested by the page above and with a little luck, that should solve the problem. (It figures that the problem is on the Windows machine rather than the Mac, huh?)
I'll report back.
MacBook Mac OS X (10.4.7) -
Ipod Communications Error rec'd when connecting to Ipod port in Scion Xb
I recently purchased an Ipod Nano and a Scion Xb. The Scion has an Ipod port for easy connection. However, when I connect my Ipod Nano to the port/cable, I get an error message. "Ipod Communication Error" Does anyone know what I can do to fix this problem?
I have a Scion xB 2006 with the Pioneer iPod control and an iPod Photo 30GB. Which was working fine for about 3 weeks and now it will play a few tunes and then freeze. I've also run into songs playing but with no sound on iPod. I've tried rebooting the iPod, I've tried to restore/update, reload the music and settings on the iPod with no luck. After the freeze the setting stay stuck to the Scion logo on the iPod.
I suspect Pioneer puts a little bit of code out on the iPod disk or firmware to get it to work with the Steering Wheel controls as well as putting out its own logo and messages on the iPod display itself. Support for the iPod podcast menu seems non-existent as well. It would be nice if there was a way to get the iPod back to Factory Settings. I suspect a problem with the manufacturer Pioneer. But I'll go complain to my dealer first!
iBook G4 Mac OS X (10.4.6) iPod Photo 30GB
iBook G4 Mac OS X (10.4.6) iPod Photo 30GB
iBook G4 Mac OS X (10.4.6) iPod Photo 30GB -
Error in itunes when connecting ipod
hi if anyone could help me it would be good.
when i connect my ipod and it loads itunes it displays an error message saying the file or directory itunes/iprefs is corrupt and unreadable what can i do?Doublechecking. Have you tried a complete uninstall of both iTunes and all the other related software components and then a reinstall? If not, try the instructions from the following document:
Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8 -
Error message -1073807298 when connecting through USB
Hi,
I am trying to retrive data from an instrument through serial port as well as USB,
My vi works smoothly while connecting through serial port.
But when i try to connect through USB Error code-1073807298
is coming. This error comes when visa try to write to the instrument.
From visa configure serial port.vi no error is coming.
Can someone suggest a method to solve this problem...I get exactly the same error code with a TCP raw socket connection, the weirdest thing is that I actually can read the result of the query. I fixed the problem reading one byte at a time but this is very inefficient (it uses a while loop) and I still get warnings, so I'd like to know if there is a way to fix this or if there is an equivalent of the "Serial Settings: Number of Bytes at Serial Port" for VISA TCP connections....
This is the WARNING that I get when I read one byte at a time:
Warning 1073676294 occurred at VISA Read in LV.vi
Possible reason(s):
VISA: (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available.
This is the ERROR that I get when I set the byte count to 1024:
Error -1073807298 occurred at VISA Read in LV.vi
Possible reason(s):
VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error.
I enclosed the VI for your review,
Thanx in advance for your help,
Attachments:
LV.vi 22 KB -
Error with iTunes when connecting for first time.
Here is the error that I get when I connect my phone to my computer:
The software required for iPhone is not installed. Run the iTunes installer to remove iTunes. then install iTunes again.
I have the latest version on iTunes installed (7.3). I have tried removing itunes and reinstalling 4 or 5 times. Evan restarted my computer few times too. I'm running Vista so not sure if that's the problem.Hi Bigrash,
Close iTunes, and disconnect your iPhone from your computer.
Go to "Control Panel", and go into "Programs".
Select "Installed Programs".
Here, find "Apple Mobile Device Support" from the list, and click on it. From the "File" menu, select "Change/Remove", and then click "Remove".
After that application has been fully uninstalled, go to this page, to download another copy of the iTunesSetup.exe installer:
Download iTunes - 7.3.0.54
After you've downloaded the iTunes installation pack again, launch iTunes, and connect your iPhone.
Do you still get that same error message, or not?
-Kylene -
PowerShell Error 401 Unauthorised when connect to SPO 365
Hi guys,
please help on connecting via PowerShell to our corporate SharePoint Online;
I use the
PS > Connect-SPOService -Url https://corp-admin.sharepoint.com/ -Credential me(AT)corp.com
and when asked for password, I type in the correct one for the account and get
connect-sposervice : The remote server returned an error: (401) Unauthorized.
(When I type in password which is not correct, there is different reply
Connect-SPOService : The partner returned a bad sign-in name or password error. For more information, see Federation Error-handling Scenarios.
thus I guess the auth phase works fine on AD.)
Haven't found any useable reply on forums.
Thank you in advance for any advice,
MichalHi
use this link
http://www.amintavakoli.com/2011/12/install-microsoft-online-services.html
It's working ;)
Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.
Maybe you are looking for
-
After updating to v. 24.0 (and restarting, several times) ALL add-ons (regardless whether they work or not) are marked "(disabled)". I tried clicking "Enable" button for each add-on and nothing happened. There is only one add-on which is marked as in
-
My iPhone won't download my game from iCloud on my computer
I deleted a game, cause it was lagging. I tried to reload it, but it does not appear when I search apps. In fact when I search nothing comes up. Blank screen. I can find the game when I search in purchased. It's in the cloud. But when I try to get it
-
2012 Macbook Pro 13in 2.9GHz vs 2011 October 15in quad core refurb
This fall I will be a freshman at my college and I have decided that I am going to invest in a macbook pro. Right now I could buy 2012 13in with 8gb of ram for $1399 or I could purchase the refurb for $1359. My question is which one will benefit me m
-
My iPod Nano will not show up as a device at all, neither in Windows or iTunes
Please help. I have bought songs in the expectation that they would be listened to, but I can not sync them to my iPod Sixth Generation Nano . Will some one please help me connect it to my pc properly?
-
How should I format and partition my two new hard drives in a 2010 MBP?
My good old mid-2010 13" MBP just lost its stock hard drive. I've decided to keep the laptop, set aside the defunct drive for future data recovery and pop two new drives in the computer along with a 8GB ram upgrade (two 4g ddr3 chips). The two drives