Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Flash (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 24th, 2004, 03:46 AM
Authorized User
 
Join Date: Aug 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default No sound on published video strream

Hi,

I am using the Flash Comms Server (with Flash MX) to publish a webcam recording with sound. However when I attempt to playback the sample, I get picture but no sound. I have attached the publish and play code below. Any help appreciated.

Regards, jdmc

client_cam=camera.get();
 myMic = Microphone.get();
Live_video.attachVideo(client_cam);


function publishMe() {

    out_ns=new netStream(_global.g_client_nc);
    out_ns.attachVideo(_root.client_cam);
    out_ns.attachAudio(_root.myMic);

    out_ns.publish("myTestStream", "record");
}

function playMe() {

    in_ns=new netStream(_global.g_client_nc);

    Published_video.attachVideo(in_ns);
    Published_video.attachAudio(in_ns);
    in_ns.play("myTestStream", 0, -1, true);
}


 
Old September 24th, 2004, 06:38 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

I have no experience with this whatsoever but I do know that whether or not a video embedded in Flash has sound or no all depends on user actions. I would try maybe importing the video again but this time, make sure you select that you want the video to have sound. This should take vare of everything

Let me know if you're still having problems,



Ben Horne
LDS Test And Measurement, Inc



-------------------------
http://www.geocities.com/valerian5200/index.html

"There are two kinds of people in the world: Those who claim to be Flash junkies and those who actually are Flash junkies"
 
Old October 18th, 2007, 03:14 AM
Registered User
 
Join Date: Sep 2007
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

could u send all u r code then i'll get where is actual error is about that sound,
 send me : [email protected]






Quote:
quote:Originally posted by jdmc
 Hi,

I am using the Flash Comms Server (with Flash MX) to publish a webcam recording with sound. However when I attempt to playback the sample, I get picture but no sound. I have attached the publish and play code below. Any help appreciated.

Regards, jdmc

client_cam=camera.get();
 myMic = Microphone.get();
Live_video.attachVideo(client_cam);


function publishMe() {

    out_ns=new netStream(_global.g_client_nc);
    out_ns.attachVideo(_root.client_cam);
    out_ns.attachAudio(_root.myMic);

    out_ns.publish("myTestStream", "record");
}

function playMe() {

    in_ns=new netStream(_global.g_client_nc);

    Published_video.attachVideo(in_ns);
    Published_video.attachAudio(in_ns);
    in_ns.play("myTestStream", 0, -1, true);
}







Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference not found on published application snufse .NET Framework 2.0 7 February 22nd, 2008 06:15 PM
play online video or video rajanikrishna ASP.NET 2.0 Basics 1 September 17th, 2007 01:01 PM
Video buffering, streaming, and displaying video t CurvyBabe C# 1 March 9th, 2007 01:17 PM
When does "beginning PHP 5" is about to published? some1 Wrox Book Feedback 2 July 26th, 2005 03:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.