How to automatically change rtmp /rtmfp
Hi ,there! I'm developing a real-time game project . First , i wanna use rmtfp to do the video/audio communication so that i can save a lot bandwidth .
when A scrible B and publish Astream, and B scrible A and publish Bstream.
how do i know if they(A and B) are connected,then give them both a hint ?
if connected .,then how do i know the delay status between them ?
if the delay latency is more than 5 seconds, then i 'll think about using rtmp to connect. Any one can help ?
private function netConnectionHandler(event:NetStatusEvent):void
status("NetConnection event: " + event.info.code + "\n");
switch (event.info.code)
case "NetConnection.Connect.Success":
connectSuccess();
break;
case "NetConnection.Connect.Closed":
currentState = LoginNotConnected;
break;
case "NetStream.Connect.Success":
// we get this when other party connects to our outgoing stream
status("Connection from: " + event.info.stream.farID + "\n");
break;
case "NetConnection.Connect.Failed":
status("Unable to connect to " + connectUrl + "\n");
// swift the rtmp mode
changeRTMP();
currentState = LoginNotConnected;
break;
private function connectSuccess():void
status("Connected, my ID: " + netConnection.nearID + "\n");
// exchange peer id using web service
idManager = new HttpIdManager();
idManager.service = WebServiceUrl;
idManager.addEventListener("registerSuccess", idManagerEvent);
idManager.addEventListener("registerFailure", idManagerEvent);
idManager.addEventListener("lookupFailure", idManagerEvent);
idManager.addEventListener("lookupSuccess", idManagerEvent);
idManager.addEventListener("idManagerError", idManagerEvent);
idManager.register(userNameInput.text, netConnection.nearID);
private function changeRTMP(){
when the case NetConnection.Connect.Failed i could change to rtmp mode ,but if NetConnection.Connect.Success . how do i know the delay seconds between A and B . then i can find the optimun way (rtmp/rtmfp
Hi ,there! I'm developing a real-time game project . First , i wanna use rmtfp to do the video/audio communication so that i can save a lot bandwidth .
when A scrible B and publish Astream, and B scrible A and publish Bstream.
how do i know if they(A and B) are connected,then give them both a hint ?
if connected .,then how do i know the delay status between them ?
if the delay latency is more than 5 seconds, then i 'll think about using rtmp to connect. Any one can help ?
private function netConnectionHandler(event:NetStatusEvent):void
status("NetConnection event: " + event.info.code + "\n");
switch (event.info.code)
case "NetConnection.Connect.Success":
connectSuccess();
break;
case "NetConnection.Connect.Closed":
currentState = LoginNotConnected;
break;
case "NetStream.Connect.Success":
// we get this when other party connects to our outgoing stream
status("Connection from: " + event.info.stream.farID + "\n");
break;
case "NetConnection.Connect.Failed":
status("Unable to connect to " + connectUrl + "\n");
// swift the rtmp mode
changeRTMP();
currentState = LoginNotConnected;
break;
private function connectSuccess():void
status("Connected, my ID: " + netConnection.nearID + "\n");
// exchange peer id using web service
idManager = new HttpIdManager();
idManager.service = WebServiceUrl;
idManager.addEventListener("registerSuccess", idManagerEvent);
idManager.addEventListener("registerFailure", idManagerEvent);
idManager.addEventListener("lookupFailure", idManagerEvent);
idManager.addEventListener("lookupSuccess", idManagerEvent);
idManager.addEventListener("idManagerError", idManagerEvent);
idManager.register(userNameInput.text, netConnection.nearID);
private function changeRTMP(){
when the case NetConnection.Connect.Failed i could change to rtmp mode ,but if NetConnection.Connect.Success . how do i know the delay seconds between A and B . then i can find the optimun way (rtmp/rtmfp
Similar Messages
-
How to automatically alter rtmp /rtmfp connections
Hi ,there! I'm developing a real-time game project . First , i wanna use rmtfp to do the video/audio communication so that i can save a lot bandwidth . when A scrible B and publish Astream, and B scrible A and publish Bstream. how do i know if they(A and B) are connected,then give them both a hint ? if connected .,then how do i know the delay status between them ? if the delay latency is more than 5 seconds, then i 'll think about using rtmp to connect. Any one can help ?
private function netConnectionHandler(event:NetStatusEvent):void
status("NetConnection event: " + event.info.code + "\n");
switch (event.info.code)
case "NetConnection.Connect.Success":
connectSuccess();
break;
case "NetConnection.Connect.Closed":
currentState = LoginNotConnected;
break;
case "NetStream.Connect.Success":
// we get this when other party connects to our outgoing stream
status("Connection from: " + event.info.stream.farID + "\n");
break;
case "NetConnection.Connect.Failed":
status("Unable to connect to " + connectUrl + "\n");
// swift the rtmp mode
changeRTMP();
currentState = LoginNotConnected;
break;
private function connectSuccess():void
status("Connected, my ID: " + netConnection.nearID + "\n");
// exchange peer id using web service
idManager = new HttpIdManager();
idManager.service = WebServiceUrl;
idManager.addEventListener("registerSuccess", idManagerEvent);
idManager.addEventListener("registerFailure", idManagerEvent);
idManager.addEventListener("lookupFailure", idManagerEvent);
idManager.addEventListener("lookupSuccess", idManagerEvent);
idManager.addEventListener("idManagerError", idManagerEvent);
idManager.register(userNameInput.text, netConnection.nearID);
private function changeRTMP(){
when the case NetConnection.Connect.Failed i could change to rtmp mode ,but if NetConnection.Connect.Success . how do i know the delay seconds between A and B . then i can find the optimun way (rtmp/rtmfp -
How to automatically change spellchecker language with the change of the input language?
Ubuntu 14.04, Firefox 30.0
Try this addon and check if it works:[https://addons.mozilla.org/pt-PT/firefox/addon/dictionary-switcher/ Dictionary switcher]
-
Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i
If you are missing using google maps - try the Nokia map app called "here"
-
Hi. I am using the iPhone 4S and when I'm searching for places using Google it does not automatically detect my location. How do I change this? FYI...under settings i have it set at "Use new precise locations from my device."
If you are missing using google maps - try the Nokia map app called "here"
-
I have both Photoshop 4 and Photoshop 6 on my computer. When I am in Bridge and want to open an image by double clicking, it automatically opens in 6. I see, when I go to "open with" 6 is listed as "default" How can I change the default to open an image with a double click in 4?
You can associate files from the Bridge level and the Desktop level.
In Bridge CS4, go to Preferences > File Type Associations and change it to Photoshop CS4 for the file types you want.
If you want to open files from the Windows Desktop in CS4, these are the instructions:
Do this from the Windows Desktop:
If you want your image file to open in Photoshop and it doesn't, right click on it and choose
Open with > Choose default program… select Photoshop CS4 or CS6 and checkmark "always use the selected program to open this type of file". -
how can I make a intro page for my website, then after the intro has run make the page automatically change to my website's home screen
You can do this using a meta refresh but the problem is you have to add it to the html file for the page very time you publish changes.
A better way is to create a splash page and upload it to the server outside of the folder produced by iWeb. Example HERE.
The meta refresh is added to the head section of the html file...
<meta http-equiv="refresh" content="32;url=http://www.domain.about.com/Page-Name.html">
The delay time in seconds is marked in blue and the URL to the redirect page is in red. -
I know this is a basic question, however, how do i change my pass word on itunes to stop my kids from automatically buying tunes from the I store... as my card details are already saved they just log in with their ipods and download via my account
http://support.apple.com/kb/HE36
Regards. -
how do i change the email address for my icloud account on my 4s. when i sign in on line it is my new email address so i thought it would change automatically but obviously not!
Settings>iCloud...scroll down...delete account. Then setup iCloud with your new ID.
You can't change the Apple ID for your iCloud account, you have to delete it. -
How do I add page numbers to my document without the page numbers automatically changing? The title page is blank, I can type in 1 on the 1st typed page, but the #1 automatically goes into the next page and will not change.
Click at bottom of the first page:
Menu > Insert > Section break
Click somewhere in the 2nd page (not the header/footer)
Inspector > Layout > Section > Page Numbers > Start at 1 > Configuration > uncheck use previous headers and footers
Click into the header or footer of the second page:
Menu > Insert > Auto Page Numbers…
If there is anything in the header or footer on the first page that you don't want just select it and delete it.
If you really wanted to manual place page numbers on each page you will have to use a section break between each and every page. I can't imagine that would be useful.
Peter -
How do I change the default folder that opens when uploading a file to the internet from my mac? (at the moment it automatically defaults to 'Downloads' folder)
For example...
I am on a webiste and wish to upload a photo.
I click on select file on the website
Finder opens and defaults to 'Downloads' folder (it happens with all wesbites)
How do I change this?I am on a webiste and wish to upload a photo.
I click on select file on the website
You are attempting to download the picture to your computer not uploading photo to the website if I am understanding you correctly.
To change the download direction, you must do so through your browser's Preferences. If you are using Safari, hopefully, someone who uses Safari will help you and/or post over in their forums. I do not use Safari.
If using Firefox>Preferences>General>Save Files to: -
When I click on a hyperlink it automatically opens it up in a PDF or Adobe Acrobat. How do I change my settings so that when I click on a link it opens it up in a new web page like it is supposed to?
Install this Add-on: https://addons.mozilla.org/en-US/firefox/addon/open-link-in-new-tab/
-
When I open a new website, the page does not open, instead it places a tab in the bottom task bar? How can I change the settings so as when I open a new website the page is automatically displayed on my desktop. Thank You!
Tools > Options > Tabs - is the last preference there check-marked??
-
[Forum FAQ] How to tell if the DAC port is automatically changed or not
Introduction
Per Books Online:
http://msdn.microsoft.com/en-us/library/ms189595.aspx
SQL Server listens for the DAC on TCP port 1434 if available or a TCP port dynamically assigned upon Database Engine startup.
Also, we can go to the following registry to specify the DAC port number manually:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQLServer\SuperSocketNetLib\AdminConnection\Tcp
The error log contains the port number the DAC is listening on. Besides looking at the error log, how to find which port is used by DAC connection and how to tell if the DAC port is manually set by us or assigned automatically by SQL Server?
Solution
The following query can be used to check if there is an existing DAC connection and it also give us the port number used by dedicated admin connection.
SELECT name,local_tcp_port FROM sys.dm_exec_connections ec
join sys.endpoints e
on (ec.endpoint_id=e.endpoint_id)
WHERE e.name='Dedicated Admin Connection'
Here is the scenario to test if the DAC port is automatically changed or not.
There are two instances are running on one server. I specified the same DAC port number 5555 for the two SQL Server instances by modifying the registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQLServer\SuperSocketNetLib\AdminConnection\Tcp
Opened the DAC connection to instance 1. Executed the above query, it returns the result:
name
local_tcp_port
Dedicated Admin Connection 5555
Then, opened a DAC connection to instance 2. It throw out the following error message:
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection because an error was encountered during handshakes before login.
Common causes include client attempting to connect to an unsupported version of SQL Server, server too busy to accept new connections or a resource limitation (memory or maximum allowed connections) on the server..
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : TCP Provider: An established connection was aborted by the software in your host machine..
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection.
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Client unable to establish connection due to prelogin failure.
The above error message was thrown out because the DAC port number 5555 was not available for instance 2 which was occupying by instance 1. After restarting the SQL Server engine service of instance 2, if checking in the registry, you would see a new DAC port
number has been assigned to the second instance.
Then, the DAC connection to instance 2 succeed this time and executed the above query, it returned the same port number which is same as the one in the registry key and the port number was assigned automatically.
DAC port will not change even SQL Server service is restarted only if the TCP port is available.
More Information
http://msdn.microsoft.com/en-us/library/ms189595.aspx
Applies to
SQL Server 2012
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.I tested your script after
establishing a DAC connection from SSMS 2014. It worked as described. Thank you.
SELECT name,local_tcp_port FROM sys.dm_exec_connections ec
join sys.endpoints e
on (ec.endpoint_id=e.endpoint_id)
WHERE e.name='Dedicated Admin Connection'
name local_tcp_port
Dedicated Admin Connection 1434
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Question about email setting: how do i change the setting so i need to login to check my email. Currently it automatically come to the inbox without the need to log in.
You don't. Email comes in either by push or when you invoke the email app. Ther is no password except when you first set up the account. If your iPad is not being used as your personal device and you need to shield emails from other users, then don't use the email app. Instead, use web mail if available from your provider.
Maybe you are looking for
-
I'm on a MacPro, Snow Leopard, 10.6.8 and did software update to safari 5.1.4. Now I can't open Microsoft Word or Skype. I've done repair permissions, restarted. How can I fix ASAP? Wish I could dump this and go back to 5.1.2! Help!
-
From text messages. Somevof by buddies text offensive pictures to me that pop up on my sereen at the wrong TNT
-
Highlighting results using oracle text
Hi I've hooked up to Oracle text using odp.net and can query that fine. Now I would like to use the highlighting feature of OT but I'm having problems finding suitable examples of how to do it. I've read through a number of Oracle Text documents, the
-
How to find the file by name and identify its type?
Hi, In a folder thare are many files, the file types are doc, docx, pdf, and rtf. The file name is something like "FirstName LastName(more extrat letters).filetype". Now I would like to find all the files with a certain name and identify their types.
-
Cleaned Open With menu, now can't mount images
I just cleaned up the "Open With" contextual menu using a Terminal command suggested in another thread. Now that menu is much shorter and everything is fine, except with some formats, which don't seem to have a default application. Not sure if it's a