[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Automatically start video broadcasting

Posted on 2005-05-06
7
Medium Priority
?
214 Views
Last Modified: 2012-06-21
My question is concerning the Flash Comunication Server, I am creating a chat web application using the communication components of the flash communication server, my question is about the AVPresence component that lets you send and receive audio and video within your application, in order for the user to start audio/video broadcasting he has to click (Send Audio/Video) on the component, I don't want this to happen, I want that when the user browses to the page that contain the chat application , the audio/video broadcasting is started automatically without requireing him to manually start it.

here is how the chat application is supposed to look like:
http://www.macromedia.com/devnet/mx/flashcom/articles/first_comm_app.html

Thanks in advance.
0
Comment
Question by:JessyEzzy
  • 4
  • 3
7 Comments
 
LVL 27

Accepted Solution

by:
negatyve earned 120 total points
ID: 13947917
Just write, in the same frame where your avp is:

your_avp_instance_name.startPublish();
0
 
LVL 3

Author Comment

by:JessyEzzy
ID: 13950389
Ok, i'll give it a try and tell you the results, but just give me a day cos I have problems with my camera, i'll have to buy another one.

Thanks.
0
 
LVL 27

Expert Comment

by:negatyve
ID: 13954716
Take your time.. :)
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 3

Author Comment

by:JessyEzzy
ID: 13966548
hello, I'm back
I can't find a startPublish method in the list of methods of the avp instance, the methods start with attachVideo and end with useHandCursor.

I have only one frame that contain all other components, I followed exactly the same steps in the url I mentionned in the first comment.

I am sorry but I am new to flash, and I don't know if I should place this line of code in this only frame or should I edit the component or something, but there is a lot of code appears when I edit it, I don't know where to add this line.

Thanks.
0
 
LVL 27

Expert Comment

by:negatyve
ID: 13966587
>and I don't know if I should place this line of code in this only frame

yes, in the same frame where the component is, not inside it
0
 
LVL 3

Author Comment

by:JessyEzzy
ID: 13966794
ok, when i've added the line, but I recieve the privacy message:
"Allow local to access your camera & microphone"
                        Allow/Deny

This message must appear, cos it's according to each user's setting, correct?
Or can it be removed and the video starts without having to allow first?

Thanks.
0
 
LVL 3

Author Comment

by:JessyEzzy
ID: 13970545
Thanks negatyve for your help, it's working fine.
I have another question concerning the video components, I will post it in a separate question.
Looking forward for more help from you :)

Thanks.

P.S. forget about the last comment today, it was stupid to ask, ofcousre the message has to appear.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question