JMF - client server video streaming how to stop

Hi
I am able to stream video from a server to multiple clients using AVReceive2 and AVTransmit2 from the JMF site.
Iam developing a client server project. I have modified the above code such that Iam able to start and stream the videos by calling on servlets and socket connections.
The AVTransmit2 code does not however have a stop button and it uses a thread.sleep method. I do not know how to add a stop button in the GUI on AVReceive2 to call on AVTransmit2.
I am using sockets to communicate to and from the server. Do i have to use RMI or is there another easier way to call stop from the client which would stop the transmission on the server?
Also, after the video file has been successfully streamed, when I refresh and try to connect again, the server is invoked and __it starts transmission_,_ but the servlet which calls the AVReceive fails and the frame does not show. Any possible reasons why?
Thanks in advance.
Junior

I don't know the speed of the connection.
4-10 users usually.
.11b or .11g I don't know.
microwave nearby - I don't know
5-6 other wifis - yes
I will try Safari, thanks!
Thanks for the update. The speed of the Wi-Fi in the
coffee shop will depend on many factors. What is the
speed of their connection to the Internet? How many
people are sharing the Wi-Fi? Is it 802.11b or
802.11g? Do they have a microwave operating nearby?
That will often interfere. Are there additional Wi-Fi
networks nearby? That can interfere as well. It's
possible that it was their network that's causing
your trouble. But, to rule that out, did you try
using Safari instead? You might make sure you have an
up-to-date version of the Flash player which you can
get at http://www.adobe.com
I have Clearwire
at home, it's basically like wireless DSL. It's not
as fast as cable Internet access, but it is portable.
I only mentioned it because it would indicate that
you don't need cable speed to watch the videos
without buffering.
-Doug

Similar Messages

  • Video Streaming - How to stop buffering time?

    Hi
    I am trying to watch a tv show I missed on NBC,
    "age of love" but the replay stops every minute
    to download more video I think. How do I improve
    the performance so I can watch the show without
    the constant interruption?
    thanks in advance
    Mark S
    iBook G4   Mac OS X (10.4.8)   756 RAM

    I don't know the speed of the connection.
    4-10 users usually.
    .11b or .11g I don't know.
    microwave nearby - I don't know
    5-6 other wifis - yes
    I will try Safari, thanks!
    Thanks for the update. The speed of the Wi-Fi in the
    coffee shop will depend on many factors. What is the
    speed of their connection to the Internet? How many
    people are sharing the Wi-Fi? Is it 802.11b or
    802.11g? Do they have a microwave operating nearby?
    That will often interfere. Are there additional Wi-Fi
    networks nearby? That can interfere as well. It's
    possible that it was their network that's causing
    your trouble. But, to rule that out, did you try
    using Safari instead? You might make sure you have an
    up-to-date version of the Flash player which you can
    get at http://www.adobe.com
    I have Clearwire
    at home, it's basically like wireless DSL. It's not
    as fast as cable Internet access, but it is portable.
    I only mentioned it because it would indicate that
    you don't need cable speed to watch the videos
    without buffering.
    -Doug

  • Video Gallery, How to Stop overlapping streams when user navigates to next item? Bug or syntax?

    My NASA Multimedia News App is exhibiting behavior that I would very much like to change. The app is in the store at
    http://apps.microsoft.com/windows/en-us/app/nasa-multimedia-news/7e74f3fb-b550-4ac6-b437-388f034ee6df
    If you look at one of the three video galleries, here is the scenario:
    1. Start one of the videos, for example the most recent one.
    2. without MANUALLY pausing the first video and before it finishes, scroll to the next item in the same gallery and PLAY it.
    3. two streams are now playing, audio overlapping.
    4. move on to the next item in the gallery OR GO TO A DIFFERENT PAGE/SCREEN, cover your ears.... 
    in fact the stream needs to stop if you navigate away from it by either starting a different video in the same gallery or when you navigate to a different screen/page in the app. and it doesn't.
    5. in fact, if you close the app by dragging it down and don't final close it by drag/hold flip or using taskmgr, if you re-open it the multiple audio streams will still be playing from where they left off.
    I don't honestly know if it is the video control or something I didn't do in the syntax (or even if something CAN be done), but with the overlapping cacophony that results, it is less than optimal. My expectations/hopes, were that if one stream was already
    playing, that moving to a new item and starting THAT stream would automatically terminate the original one that was playing so that only a single audio stream can be heard.
    I hope the issue is clear.
    Is this a bug? If it is by design, ugh. And is there a work around?
    -- Barb Bowman

    On Sat, 5 Apr 2014 01:20:04 +0000, thorwm wrote:
    >All kidding aside, I did some searching in the forum and I found this post that may help?
    >
    >http://social.technet.microsoft.com/Forums/en-US/6037342d-2575-411b-a496-90d306f82b00/unable-to-stop-a-video-playing-using-updatecontextvideopause-true?forum=projectsiena
    >
    >Btw, what you're talking about sounds very similar to how Adobe Flash works - it figures that you (the end user) must know what you're doing when you start another audio file / video so it keeps adding to the stream.  The way I helped
    the end user was to add the code to stop the media file playing when another one was selected.
    >
    >Hopefully the thread above gives you some ideas how you might do this in your situation. 
    >
    >
    >I look forward to hearing what you find - sounds like a neat app (no pun intended!)
    Thor, it is my NASA Multimedia App - I resubmitted it last night and I guess a
    different tester got it and the update went through. But the issue still exists.
    The difference between what I have in my app and that other thread is that I
    have a video GALLERY as opposed to individual players. I did try messing around
    with that  syntax
      UpdateContext({videoPause: false}); UpdateContext({videoPause: true});
    Navigate(scrHome, ScreenTransition!Fade)
     But it didn't work between screens in my App and anyway, half of the issue is
    that it wouldn't work on a single screen that contains a video gallery that has
    say 10 videos, there is no OnSelect function used. I tried experimenting to see
    if I could get syntax working at least for when the navigation is to a different
    screen, but it doesn't work for me. Probably because it is a gallery.
     Hoping that Robin has a solution...
    -- Barb Bowman

  • Video file how to stop and find Video is completed.

    hi
    we have load the .flv file the following code:
    //===================================
    var vid:Video = new Video(310, 174);
    vid.y=24;
    vid.x=308;
    addChild(vid);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    vid.attachNetStream(ns);
    var listener:Object = new Object();
    listener.onMetaData = function(evt:Object):void {};
    ns.client = listener;
    ns.play("Best Ford Commercial Ever!!!.flv");
    //===================================
    video play fine. i using close btn close the Video. the folloing code:
    //===================================
    removeChild(vid)
    //===================================
    problem:   1.  Video will be closed but audio is running. How to stop the audio and video.
    2. How to trace the video is completed.
    thks

    Use NetStatusEvent.NET_STATUS event listener for netstream and trace(event.info.code);
    if info.code is NetStream.Play.Stop the video is finished playing.
    use NetStream.close() method to Stops playing all data on the stream

  • How can i get jdbc2.0 compatible driver for my oracle 8.1.5 client/server

    Hi ,
    I am looking for a driver that is jdbc2.0 compatible.Apaprently the oci and thin drvers that are shipped with oracle8.1.5 do no support scrollable and updateable resultsets. Can i download the oracle8.1.6 jdbc2.0 compatible drivers and use them with my oracle8.1.5 client/server. if so how do i install it?
    Please let me know ASAP!!
    It is relly frustrating to find a compatibler driver for the older versions since oracle does'nt provide them
    poornima

    Yes. For OCI driver, you will also have to have Oracle 8.1.6 client installed as well. http://technet.oracle.com/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#_1_

  • Playing video streaming

    I begin to implement a video chat in java. I used JMF for capturing video streaming from a digital camera and RTP protocol for transmiting the video stream. I want to play the stream into an Applet (so on the client side). I don't want to use jmf on client side (an RTP Applet Player or something like this) because this means that the client needs to instal the JMF package. I need a solution to play the stream stream into an applet but I want that the client don't need to instal any software. I can use anything on server side (from where I transmit)...Is this possible? Please help me. Thank you.

    I've only done some web cam capturing code, but I thought you only need the "performance pack" of JMF installed on a machine if you want to perform capturing.
    So, maybe you can still use JMF in an applet without a formal installation on the client pc.
    Just itry ncluding the jmf.jar and any CODEC class files necessary to replay your video stream ?
    It's worth a shot... although someone may very well correct me on this.
    regards,
    Owen

  • Video streaming using bluetooth

    First I'll establish a HP as a server and the other HP as a client for video streaming using bluetooth. Can anyone please tell me if video streaming using bluetooth is possible for Nokia N7610. I have tried my program in emulator WTK2.2, it's working like what I want..but there's a problem when I'm trying in N7610,N3230,N6233..it said that "there's no services" when client program try to find services from server program
    ServiceRecord[] listService=null;
    listService=new ServiceRecord[records.size()];
    for(int i=0;i<records.size();i++)
    {listService[i]=(ServiceRecord)records.elementAt(i);}
    for(int i=0;i<listService.length;i++)
    {while(!isClosed)
    {StreamConnection connection=null;
                   String url=null;
                   try
                     {url=listService[i].getConnectionURL(ServiceRecord.NOAUTHENTICATE_NOENCRYPT,false);
    connection=(StreamConnection)Connector.open(url);
    catch(IOException e)
    {System.err.println("Note: can't connect to:"+url);}
    byte[] movieData=null;
    try
    {InputStream inputStream=connection.openInputStream();
                      int length=inputStream.read()<<8;
                      length|=inputStream.read();
                      if(length<=0)
                        {throw new IOException("Tidak dapat membaca ukuran movie");}
    movieData=new byte[length];
    length=0;
    while(length!=movieData.length)
    {int n=inputStream.read(movieData,length,movieData.length-length);
                            if(n==-1)
                              {throw new IOException("Tidak dapat membaca data movie");}
    length+=n;
    inputStream.close();
    catch(IOException e)
    {System.err.println("Can't read from server for:"+url);}
    finally
    {try
    {connection.close();}
    catch(IOException e)
    try
    {layar=Image.createImage(movieData,0,movieData.length);}
    catch(Exception e)
    {System.err.println("Error: wrong image data from:"+url);
                      continue;
    client.showImage(layar,"Movie");
    I don't know if my problem is in client program or in server program.
    :confused:
    I will appreciate a brief reply how to fix this problem.
    Thanks
    * Timothy *

    This is possible
    because you will get streams for both data in and out...
    but the problem is that the j2me player is not always streaming supported.
    Since your server is mobile for streaming you have to implement a streaming server on ur server mobile.
    but you can play the whole video chunk by chunk... in many fashion...

  • Capture video stream from network

    Hi all,
    I have application to broadcast video to network.
    And I want to write app use jmf to capture video stream.
    if you have any sample source code, please send to me
    (my mail: [email protected]).
    Thank you.

    yap
    avtransmit2 is giveing ERROR (line:123 "Couldn't create DataSource") so i thing medialocator is not finding so datasource is not created but variable locator is not NULL.
    i am trying to transmit from webcam (realtime).

  • P2p video streaming using jmf (is it possible to "forward" the stream ?)

    Hello
    In my project a peer will start streaming captured video from the webcam to his neighbors and then his neighbors will have to display the video and forward(stream) it to their neighbors and so on . So my question is can i do this using jmf , a simple scenario will be : peer_1 streams to peeer_2 and then peer_2 to forward(stream) the video received from peer_1 to peer_3 .
    I've read the jmf2_0 guide and i've seen that it's only possible to stream from a server to a client and that's about it , but i want also the client to pass the stream forward to another client ... like for example [http://img72.imageshack.us/img72/593/p2pjmf.gif|http://img72.imageshack.us/img72/593/p2pjmf.gif]
    I want to know at least if this it's possible with jmf or should i start looking for another solution ? and do you have any examples of such projects or examples of forwarding the stream with jmf ....
    thanks for any suggestions

    _Cris_ wrote:
    I want to know at least if this it's possible with jmf or should i start looking for another solution ? and do you have any examples of such projects or examples of forwarding the stream with jmf .... You can do what with JMF. Once you receive the stream, it's just a video stream. You can do anything you want with it...display it, record it, or send it as an RTP stream.

  • How to receive video stream with different codec

    Hello Experts,
    I am transmitting the video stream from a system using RGBFormat with dimension 320x240 but at the receiver side in the absence this CODEC I need to receive the stream with RGBFormat dimension 160x120.
    I request you to please guide me that how can I do this.
    Apart from this please let me know that is there a way through which I can add codec RGBFormat with dimension 320x240 ?

    I am transmitting the video stream from a system using RGBFormat with dimension 320x240 but at the receiver side in the absence this CODEC I need to receive the stream with RGBFormat dimension 160x120.You need to do what exactly? Can you explain that better, because, that doesn't make much sense to me. You want to transmit a video stream at 320x240 and have the client receive it at a different resolution that you sent it at... that just doesn't make sense.
    I'd like to mail you a letter on a legal sized sheet of paper, but I'd like for you to receive it on standard paper... See? Doesn't really make any sense...
    Apart from this please let me know that is there a way through which I can add codec RGBFormat with dimension 320x240 ?The RGB format is already defined for JMF, it just doesn't have an RGB-RTP variant for sending over RTP...and creating all of the things you have to create to make JMF send in RGB is pretty complex, complicated stuff.

  • Stoping a client live published stream, server side

    Hello buddies,
    I have a very very important and urgent question.
    Suppose in some client a stream is being published live with
    the name 'A'. now, if some other client should and tries to publish
    with the same name ('A'), it will encounter a 'NetStream.BadName'
    status error code, to avoid that I think there should be some way
    to stop the stream('A') server side, and then let the 2nd client
    starts publishing with name 'A'. if so, how can I stop 'A' stream
    on server?
    Thank you so much for any help

    Let your server call a function (on the first client that
    publishes the stream A) that stops the publishing and shows show
    local message to that client e.g. "another client has started to
    publish a stream with the same name".
    It's unclear why you want such a system because you don't fix
    the problem ; you fix the symptoms. If you let clients publish a
    stream related to their loginname for example you will always have
    unique streams on your server.
    If you let them connect to an unique instance of your
    application you don't even have the problem of non-unique
    stream-names because inside every instance you can publish stream A
    again.
    Viewing clients would connect to each instance if they want
    to see that particular stream, like
    rtmp://yourserver.com/appnameXYZ/instancenameABC/A
    where A is the name of your published stream in instance
    "instancenameABC" , which is a child of application called
    "appnameXYZ".

  • Live video stream play permission on server-side

    I have a live video stream application one-to-many for
    example, and i want to send video only to few clients, not to all.
    Like:
    quote:
    application.onConnect = function(client, canSeeVideo) {
    // canSeeVideo = boolean
    this.acceptConnection(client);
    if (!canSeeVideo) client.receiveVideo(false);
    // and after this, can be swich to TRUE or FALSE ?
    client.receiveVideo(true);
    I only want to do restriction for Video, from server-side
    with FMS, or if can't be possible.. how can i put for example a
    black screen on video ? :) and after can be removed, etc...

    1.
    necesary client.receiveVideo() and client.receiveAudio()
    server-side functions
    Thank you fmslove for you trying to help me but
    client.readAccess property can NOT be set after client
    connection was accepted, and for me is useless. Any other
    solution(s) ? i strong recomend to Adobe FMS dev staff to implement
    this feature because is refering to security client-side solution
    from server-side. I have bad experience with users trying to modify
    the Flash Player (plug-in) run memory and set values for my swf
    without my accept, and is nothing that i can do from client-side
    like NetSream.receiveVideo(false) on many-to-many or one-to-many
    live A/V stream.
    2.
    a necesary server-side video encoder solution better than
    Sorenson Spark
    If in future FMS staff from Adobe will implement this
    necesary security feature on server-side like a copy of
    NetSream.receiveVideo() function from client-side, i will be happy
    if i see a solution to encode LIVE video stream on server-side
    because
    Sorenson Spark video encoder built-in Flash Player (plug-in) is
    very old and unuseful.
    If this can't be possible i hope the future Flash Player
    version (10) will have a better video encoder built-in than
    Sorenson Spark !!!

  • Video Streaming with JSP and JMF.

    Hi. I have this problem. I'm projecting (not building yet) a system. In this system i have a Local Computer, a server, and a Web Page (JSP). The Local Computer is going to capture video from a WebCam with JMF. This videos is going to be passed to the server by RTP Control. A Web Page (JSP) is gonna acess the server to get this video and show it (Real Time Streaming).
    My doubt is, how I can do that on JSP ? How i can get the video from server (remebering that this one is getting the video from the local computer) and show it in my page ?

    no one ????

  • Remote video streaming not working with Windows Server Essentials Media Pack

    I installed Server Essentials Media Pack and the video streaming via remote access does not seem to be working. I see all the video files on the server's remotewebaccess page in "Media Library" group. When I try to play the video in Chrome
    the player appears for a brief moment, but then the browser starts downloading the entire file. With Internet Explorer the empty browser window opens and the download starts. I am trying it while outside of my local network. The video streaming used to work
    with Server 2012 Esesentials. Am I missing some additional codecs or remote streaming is no longer supported?

    Hi,
    What’s the default player for these media files on your computer? The issue may be caused by the default player could not load the media file correctly. Please make sure Windows Media Player
    with full codec installed is the default one. And then check if the media streaming feature could work as normal. Here is an article about how to configure the media streaming feature, hope it helps.
    Manage Digital Media in Windows Server 2012 Essentials
    http://technet.microsoft.com/en-us/library/jj628151.aspx
    Best Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • How to Pass a BufferedImage? Client - Server

    Please Help!
    I've been trying to figure out how to send a BufferedImage from my client program to the server program. I'm using a socket to create the connection. The client draws into a BufferedImage and then it is sent to the server to be saved as a JPG file. I've been able to create the image if I do it locally but since a BufferedImage is not serializable I can't do this the same way with the server. So how do I get my BufferedImage from the client to the server in a manner that I can then save it as a JPG on the server? Code examples would be very much appreciated!!!
    Thanks!
    Ryan

    I guess I'm not understanding what your saying. I just need a way to get what the user draws into a jpg on the server. I have been using sockets and streams but nothing I try really seems to work. Right now I am doing this:
    Client:
    Socket client = new Socket( InetAddress.getByName( "localhost" ), 5000 );
    ObjectOutputStream output = new ObjectOutputStream( client.getOutputStream() );
    ObjectInputStream input = new ObjectInputStream( client.getInputStream() );
    try {
    ByteArrayOutputStream imageOut = new ByteArrayOutputStream();
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder( imageOut );
    imageOut.flush();
    encoder.encode( sig.getImage() );
    byte[] image = imageOut.toByteArray();
    output.writeObject( image );
    Server:
    public void runServer() {
    ServerSocket server;
    Socket connection;
    try
    server = new ServerSocket( 5000, 100 );
    while ( true ) {
    connection = server.accept();
    output = new ObjectOutputStream(
    connection.getOutputStream() );
    input = new ObjectInputStream(
    connection.getInputStream() );
    ObjectOutputStream toFile = new ObjectOutputStream(
    new FileOutputStream( f ) );
    ByteArrayInputStream inStream =
    new ByteArrayInputStream( (byte[]) input.readObject() );
    JPEGImageDecoder decoder =
    JPEGCodec.createJPEGDecoder( inStream );
    BufferedImage sigImage = decoder.decodeAsBufferedImage();
    JPEGImageEncoder encoder =
    JPEGCodec.createJPEGEncoder( toFile );
    encoder.encode( sigImage );
    toFile.flush();
    output.close();
    input.close();
    connection.close();
    toFile.close();
    I imagine I have very ugly looking code here but I've been trying to make something work. My code does create the file but it is not a recognizable JPG file.
    Ryan

Maybe you are looking for

  • How to delete a column from the table control in module pool?

    Hi,   can any one please tell How to delete a column from the table control in module pool? thanks in advance warm regards HareeshKumar N

  • Could Mac mini support 1080p120hz TV/monitor?

    I've tried to connect my Mac mini (2.5Ghz/4GB/AMD Radeon HD 6630M) to my 120Hz Sony 3D TV and Dell Alienware 120Hz Monitor. Unfortunately, it recongnize both of the TV and monitor as 1080p60hz device. Is there a way to setup the Mac mini to support 1

  • Put parameters into url -- Howto?

    Hi all! How can I post some parameters to get an url something like that http://localhost:8080/application?user=test So how can I get the parameter user into my url? Can I just use the f:param Tag? And who do I retrieve the information on the next pa

  • Convert Column from Varchar to NVarchar

    Hi Guys, i know we cannot alter a columns datatype when there is a data. but the problem is that i would like to alter a datatype with the data in database. as there is no downtime to our server. im not sure this can be achieved, but i feel someone m

  • Text Replacement for Period Interval

    Hello All, I need to create a Text Replacement for a Period Interval.  Can anyone tell me how to do this?  Or point me to white paper on the subject. Thanks MK