×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    18

    Problem in playing multiple videos in the same problem

    Hi all
    my problem is that i want to play a sequence of videos
    with the same player
    my question is do i have to initialize the player every time i play a different video
    in another way do i have to repeat this code every time i play a different code

    Code:
    byte [] recordedvideo=out.toByteArray();
        	ByteArrayInputStream in=new ByteArrayInputStream(recordedvideo);
        	Player pl2=Manager.createPlayer(in,"video/3gpp");
        	pl2.realize();
        	pl2.prefetch();
        	VideoControl vc2=(VideoControl)pl2.getControl("VideoControl");
        	this.append((Item)vc2.initDisplayMode(GUIControl.USE_GUI_PRIMITIVE,null));
        
        	pl2.start();
    can i initialize the player just once and change its input stream when i play multiple video clips ?
    thanks

  2. #2
    Registered User
    Join Date
    Jun 2007
    Posts
    17

    Re: Problem in playing multiple videos in the same problem

    Yes, you have to create a different Player per video, but if your videos are in the phone file system as it seems from your code you can have the next video prefetched before the current one finishes and call start on the next one just when the current one finishes.

Similar Threads

  1. Receive multiple SMS problem with pushregistry
    By niraj_gandhi in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2007-06-01, 06:35
  2. Midi file playing problem
    By haristeguh in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2006-04-06, 01:02
  3. 6280 problem playing 3pg
    By raphael_c in forum General Development Questions
    Replies: 1
    Last Post: 2006-04-04, 09:07
  4. Problem connecting to multiple access points on 3G phones
    By yjforgod in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-03-30, 14:12
  5. Problem playing MMS on 7650
    By Goodwill in forum General Messaging
    Replies: 2
    Last Post: 2002-08-26, 09:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •