×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    4

    Can't play video streaming in full screen mode

    Hi.

    I am developing a video player for a Nokia E60 mobile.

    I am using the typical code for a video player as I have seen in many places on the Internet.

    I can play mpg and 3gp videos in full screen mode, but when I try to open a video stream which uses the rtsp protocol I cannot get it displayed in full screen.

    The code that performs the actual playing of the video is as follows:


    8<----------------------------------------------

    // Note: This code is inside a class derived from Canvas

    setFullScreenMode(true);
    Player player = Manager.createPlayer(url); // where url is "rtsp://..."
    player.realize();
    VideoControl control = (VideoControl) player.getControl("VideoControl");
    player.prefetch();
    control.initDisplayMode(VideoControl.USE_DIRECT_VIDEO, this);
    control.setDisplaySize(getWidth(), getHeight());
    control.setDisplayFullScreen(true);
    control.setVisible(true);
    player.start();
    display.setCurrent(this); // display is initialized in the main class derived from
    // MIDlet

    ----------------------------------------------------->8

    When I run it in the mobile, I can see that the canvas is actually in full screen mode. But the video does not fill all the canvas, but it appears as a little rectangle in the left-up corner. Surprisingly enough, I don't have such problem with mpg or 3gp video files over http.

    Please any help would be greatly appreciated. This issue is driving me crazy

    Thanks.

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: Can't play video streaming in full screen mode

    Does the RealPlayer on the device display the RTSP video properly? What is the original size of the video?

    Hartti

  3. #3
    Registered User
    Join Date
    Aug 2007
    Posts
    4

    Re: Can't play video streaming in full screen mode

    Yes, the Real Player displays the video stream in full screen.

    Regarding the size, I have added the following lines of code right after "control.setVisible(true);", to know the size of the canvas and the Player:

    Alert a = new Alert ("",
    "Canvas.width = " + getWidth() +
    "\nCanvas.height = " + getHeight() +
    "\nSource.width = " + control.getSourceWidth() +
    "\nSource.height = " + control.getSourceHeight() +
    "\nVideo.width = " + control.getDisplayWidth() +
    "\nVideo.height = " + control.getDisplayHeight(), null, null);

    And the result is:

    Canvas.width = 352
    Canvas.height = 416
    Source.width = 160
    Source.height = 120
    Video.width = 352
    Video.height = 416

    But the video is actually much smaller than the canvas, both in height and width.

    I have got the same results even after calling player.start().

    BTW: I can translate the image, but I cannot resize it.

    Thanks.

    *david
    Last edited by shincat; 2007-08-08 at 15:25.

  4. #4
    Registered User
    Join Date
    Aug 2007
    Posts
    4

    Re: Can't play video streaming in full screen mode

    I forgot: The streaming I am trying to play is Real Media (.rm extension) over the rtsp protocol.

    Well, in fact the URL is the following:

    rtsp://emision.canalsur.es/encoder/andaluciatv.rm

Similar Threads

  1. Video streaming in Series 60 3rd Edition
    By hakunam in forum Symbian Media (Closed)
    Replies: 7
    Last Post: 2006-12-12, 09:48
  2. cannot able to play a video file.
    By shalini.mishra in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2006-11-13, 16:54
  3. Full Screen Video on 3650.
    By wbless in forum Symbian C++
    Replies: 8
    Last Post: 2006-06-07, 15:24
  4. UI: Full Screen Mode
    By GENERAL_INFO in forum Symbian User Interface
    Replies: 3
    Last Post: 2004-11-22, 06:27
  5. Pausing/resuming full screen midlet
    By dubick in forum Mobile Java General
    Replies: 0
    Last Post: 2002-11-15, 11:03

Posting Permissions

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