Porting applications to BB10: video rotation and display

I'm porting a game of the PlayBook for the Z10. I had to show a video at the beginning of the game and I had some problems in the past with the PlayBook, but they have been resolved.

Now that I'm the same game to the BB10 platform porting, I find myself with another problem linked to the video. I have exhausted all my options, and I wonder now for your help.

The problem I have is related to the default orientation of the device. While the PlayBook is defaulted to a landscape orientation, the default Z10 the fashionable portrait.

So the simple solution is to simply orientation in the file of the bar - descriptor.xml to landscape and autoOrients set to false, right? Well, this solves almost all the problem of porting the game: the rest of the game works really well, I just had to do something with the accelerometer.

However, the original video appears distorted. Here is a screenshot of the Z10 turned:

Here's my proposal: when you test the game with the default/portrait orientation, the video appears distorted as well, but it appears in the entire screen, fits the dimensions portrait. When you set the ladscape orientation, it always fits the dimensions portrait, but now turned.

Get the properties of the screen through the screen_get_window_property_iv() function call while playing the video returns this:

SCREEN_PROPERTY_BUFFER_SIZE: {1280, 768}

SCREEN_PROPERTY_SIZE: {1280, 768}

SCREEN_PROPERTY_ROTATION: 90

There is apparently no way to change the dimensions of the video playback, or through the mmrenderer library or the screen.

What kind of appeal should I use to change the dimensions of the video, so it appears correctly renderered?

Thank you.

Hey there,

This example:

https://github.com/BlackBerry/NDK-samples/tree/master/VideoWindow

Contains code that you resize the rect accordingly, depending on window size. May be able to help in your quest.

Tags: BlackBerry Developers

Similar Questions

  • Looking for applications to record video zoom and focus adjustment

    Hello, I'm looking for a way to record my videos of lesson (70 min) by the iPhone 5. I love the camera by default, but I need their registration by the lens back and the rear lens doesn't have a zoom and focus adjustment features.

    I tried to use some applications, but it's really hard to find a good. Now I use 'Caméra Pro', but it doesn't have the setting. I found "MoviePro: VCR with unlimited options", but the focus adjustment is not stable for the registration of a computer screen (I use the computer a couple times a lesson screen).

    If there is a good idea, good tips want to me please. I am looking this for a couple of years. If there is a good way, I'm happy to consider changing iPhone 6.

    Thanks for your time,

    You can try the "professional camera. The app will allow you to adjust the focus point and exposure.

  • HP Pavilion G6 2303-TX: update video drivers and display

    Currently, my graphics card intel laptop HD 4000 is v9.17.10.2849... but when I looked in the site to intel that they have a new v15.33 version supporting 3rd Gen Intel HD 4000... is - this security update by downloading sites intel...
    When I updated my graphics(1GB) (V14) AMD, laptop computer were previously empty for more than 2 hours and I did a restore to get back to normal...

    @vysakh_m ,

    Hello and thanks for the display on the HP support forums.

    When it comes to drivers for your system the only ones that are supported are provided on the website of hp for your system

    The actual production of the chipset drivers can have some changes or modified software.

    They provided to hp are designed for the hp hardware and are the property of material on measure for HP systems.

    Drivers HP Pavilion g6-2303tx Notebook PC

    The drivers that you find on the link I have provided are the only ones that are supported.  They are designed for hardware that was built for your system HP and the listed operating systems.  All drivers from other sources are not supported and can cause problems that are not supported.

    Worst case you could damage your hardware or end up having perform a full recovery of the system to correct what happened.

    Thanks again for posting and have a great day.  I hope that you found this information useful.

  • HTML5 video, rotate and unload

    I followed this code to add the video to my html5 canvas.  There are a couple of settings that I want to set it up.  As the rotation of the video by several degrees.  I would also like to unload the clip when its actually play.

    How to load the video in Html5 Canvas?

    Video in canvas mode is played using a standard HTML5 video tag, in order to turn out exactly as you would turn anything using a CSS HTML transformation.

    To do anything when a video is finished, you just need to attach an event listener to the video tag.

    Media events - Web developer Guide | DND

  • Play video and display an image at the same time

    Hi all

    I'm new to JavaFX and I would like to know if it is possible to read a video simultaneously and display an image above him in the same scene.

    In particular, I want the image to display in a fixed position.

    I tried to use a StackPane layout, but I get an error in the following line:

    sp.getChildren().add(mediaPlayer);
    

    because the mediaPlayer object cannot be considered to be a parameter and a node object is necessary

    I also tried to add the video and the image in the same scene as seen below, without success (the video is playing, but the image is not displayed)

    root.getChildren().add(imageView);
    

    Is what I'm trying to do possible? And if so, what methods should I use?

    Thanks in advance for any answer!

    I tried to use a StackPane layout, but I get an error in the following line:

    1. sp.getChildren () .add (mediaPlayer);

    because the mediaPlayer object cannot be considered to be a parameter and a node object is necessary

    Wrap the mediaPlayer in a MediaView and add the media view to the container. Do not use a group as the component root as in the code example in the example, though.

    I also tried to add the video and the image in the same scene as seen below, without success (the video is playing, but the image is not displayed)

    I think it is because you are using a StackPane, that stacks on top of the other nodes (in the Z-order); so if you add the video first it will be hidden by the image. Use a different presentation pane: VBox is the simplest. The tutorial has a summary of all the components of integrated layout .

    If you are going to do something like this:

    public void start(Stage primaryStage) {
         Media media = new Media(...);
         MediaPlayer player = new MediaPlayer(media);
         MediaView mediaView = new MediaView(player);
    
         Image image = new Image(...);
         ImageView imageView = new ImageView(image);
    
         VBox root = new VBox(5);
         root.getChildren().add(mediaView);
         root.getChildren().add(imageView);
    
         Scene scene = new Scene(root);
         primaryStage.setScene(scene);
         primaryStage.show();
    }
    
  • How to view the monthly/annual statistics in terms of time past/calories burned, broken down by each individual activity such as run elliptical/outside etc. Y at - it a third party application that can help me to collect and display these data?

    How to view the monthly/annual statistics in terms of time past/calories burned, broken down by each individual activity such as run elliptical/outside etc. Y at - it a third party application that can help me to collect and display these data?

    Hello

    It is not currently possible to review the data the application integrated in activity or training on this basis. If you want Apple to consider adding this feature, you can suggest here:

    https://www.Apple.com/feedback/watch.html

    However, health and fitness data from other sources, iPhone, and Apple Watch are registered and grouped within the health on iPhone app. These data can be exported, which you may find useful to track the cumulative progress and/or analyze your activity more in detail.

    IPhone app activity also has a button for sharing (top right of the screen) that allows to share data - including social media, Messages, Mail, Notes, and a printer.

    Include third-party applications that can be useful, for example:

    Access to QS

    -"Access your HealthKit data in a table so you can Explorer using numbers, Excel, R, or any other tool compatible CSV."

    - https://itunes.apple.com/gb/app/qs-access/id920297614?mt=8

    SpectaRun workouts

    -"View from the workouts of your Apple Watch on your iPhone and to export these workouts so you can download them to your favorite online running community."

    - https://itunes.apple.com/gb/app/spectarun-workouts/id991723862?mt=8

    Data can also be exported directly from the application of the health (Health Data > All - Share at the top button on the right).

    Check the descriptions and support resources for third party applications for supported details of import and data analysis features.

    More information:

    Use the activity on your Apple Watch - Apple Support

    Use of the workout on your Apple Watch - Apple Support

    http://www.Apple.com/watch/health-and-fitness/

  • How to read and display a my a miccrontroller (MCB1700) on labview signal connected via a port on a PXI machine CAN

    How to read and display a my a miccrontroller (MCB1700) on labview signal connected via a port on a machine PXI CAN?

    I tried using a DAQ Assistant, but the port is not included as one of the physical channels supported, even if all his drivers are up to date.

    Help, please...

    Thank you.

    If you can read it in MAX, then you should be able to run the NI CAN example.

    Help-> find examples

    Find the CAN and watch CAN Receive.vi.

    Basically, set up the network, open the object, read in a loop close object when it is done.

    If you have any questions about the example, go ahead and post your vi and we can work from there.

  • T510 HP - do not click on Flash videos, they do load and display if

    Hello

    The device in question is a version of the device T6X43202 t510 HP

    When it is connected to Citrix video flash will load and display correctly, but you can not click on them.  It seems that the mouse downwards is not detected by the flash video.  You can TAB through it and use the keyboard to navigate through the video.

    For the specific Web site, that I need to run I went on the server instead of forwarding to the client.  All other TC models work very well but not the t510.

    It is not a problem with a specific site either, it happens on all flash videos.

    Any ideas?

    I ended up doing back to HP ThinPro 41019 that isn't the question.

  • When I plug my portable hard drive to the usb port it does not read and display the contents...

    When I plug my portable hard drive to the usb port it does not read and display the contents...

    Hi deaza,.

    Ø Have you connected the USB hard drive to the computer directly or you have used an external USB hub to connect?

    O trying to connect to another USB port to check if it works?

    O the hardrive shows in windows of the computer when you connect it?

    Method 1:
    If you have installed security software, I suggest you to temporarily disable the security software and connect the USB and check to see if the same problem happens. Make sure that you enable the security software after checking.

    Alternatively, you can try to plug the USB key into a different USB port and check if it helps.

    Method 2:
    I suggest trying to launch hardware and troubleshooting of devices and check to see if it helps, here is the link:http://windows.microsoft.com/en-US/windows7/What-to-do-when-a-device-isn ' t-installed-correctly

    Method 3:
    If this does not help, then follow these steps:

    (a) remove all your USB devices. Use the safely remove the feature to turn them off.

    (b) open Device Manager and navigate to the section for USB. Uninstall all USB drives. There should be one for each USB port, and then restart.

    To open Device Manager, go to the link below and follow the steps:

    http://Windows.Microsoft.com/en-us/Windows7/open-Device-Manager

    (c) Windows should re - find all of the devices. If it is not the case, note the error message and let us know.

    You can also navigate to the link below and follow the steps to install the USB device.

    http://Windows.Microsoft.com/en-us/Windows7/install-a-USB-device

    I hope this helps. Let us know the results.

    Thank you and best regards,

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • With first CC, I am trying to display the RGB parade. But when I go to 'view' in the settings of the monitor, I only see a "composite video", "alpha" and the options of several cameras. When I look at the tutorials, "RGB Parade" and other display options

    With first CC, I am trying to display the RGB parade. But when I go to 'view' in the settings of the monitor, I only see a "composite video", "alpha" and the options of several cameras. When I look at the tutorials, "RGB Parade" and other display options are there in the video tutorial. But they just do not appear in my software.

    Which version of CC do you use? Numbers, please! And your BONES... and I think you're looking in all the wrong places.

    The CC2015 ranges are found on a "Lumetri Scopes" tab in the top left panel so the color workspace and the central panel Lumetri Scopes tab in the workspace of the effects.

    Looks like you're clicking in the program monitor, but this is not where the scopes...

    Neil

  • How to incorporate and display a SWF in a Flex application.

    Hi all

    I'm trying to embed a swf animation in a flex 4.5 application and display it, but it does not work!

    I get error after error.  When I try to use addElement(), I get the following error:

    1067: coercion of a value of type mx.core:MovieClipLoaderAsset to an unrelated type mx.core:IVisualElement.

    If I use addChild(), then he throws another error when running.

    Here is my code:

    [Embed(source="assets/con_mov.swf")]
    private var connectMov:Class;
    private var conMov:MovieClipLoaderAsset = new connectMov();
    

    Here's the code I'm trying to use it to displey:

    borderContainer.addElement(conMov);
    

    I tried just to add to the application using this.addChild (connectMov), but I get an error during execution.  It's ridiculous!  Bringing a swf created in Flash into Flex and displaying should not require so much effort - IMHO.  There is a lot of documentation on how to embed a swf in Flex, but almost nothing about how to post!

    It's just a simple animation placeholder so I need access to all the functions on the inside, I want to integrate rather than using swfLoader.

    Thanks for any help or advice you can give!

    Matt

    Hello Matt,

    Yes you are right, it is not necessary to set the source of the image that we add a movieclip with swf. It was a mistake in my

    code, because I have tried it with too many crazy ways.

    Now the SWFLoader, ABT

    This technique works well with the SWFs that adds a graphical application or animations, but are not intended to have a large amount of interaction with the user. If you import SWF files that require a large amount of user interaction, you must build them as custom components. (Adobe Docs)

    Thank you and best regards,

    ---------------------------------------------------------------------- ----------------------------

    Kanchan Ladwani | [email protected] | www.infocepts.com

    ---------------------------------------------------------------------- ----------------------------

  • What applications I need for video editing and be able to add titles

    I want to buy Photoshop but want the cheaper option to be able to do video editing and titles.

    You want to Premiere Elements, Photoshop or Photoshop Elements.

  • Video card (and others) upgrades for a HP Pavilion Elite HPE-510 t

    Hello... First of all, I just want to say that these forums have been an invaluable resource for me in my quest to upgrade my current PC. A lot of good answers and always at the top of the Google search results, you guys have been so super helpful. Without a doubt a very different experience from what I got when I bought my PC from a company that rhymes with 'hell '.

    I have a few specific questions, however, and thought I'd throw them to let experts weigh... For the record, I have a HP Pavilion Elite HPE - 510 t with all parts except for the video card, which is currently an ATI over-pants v4800. I am running three monitors 20 "(1 DVI and Display Port 2 at present, but who can be flexible). Also, I don't a few moderate games (FPS, MMO) and watch a lot of Netflix...

    1. I'm certainly looking to update my video card, but I do not know what actually fits. I'm ready to upgrade the PSU as well (probably to the Corsair CX-600 recommended elsewhere on this forum), so power should not be a problem. And money is not a huge problem either, as long as the card is less than $500 or more. I've been watching some of the newer cards (like a 680 GTX or even the new 770), but I'm afraid that they will not physically fit in the case, or will be not compatible with the motherboard (which seems to be the PCIe 1.0? Or I read wrong?). So basically, my ultimate question is: what is the best possible graphics card given my case current and potentially put to level power supply, motherboard, I could use? If it's important, SLI is feasible but not more.

    2. I also intend to add additional RAM. The page on the card to my PC to the HP support Site says it takes DDR3 1600 PC3 10600, but everything that I find these days in the RAM is DDR 3 1600 PC3 12800. My mother/PC card will support the 12800 or do I have to keep hunting to find 10600 sticks?

    3. and finally, I'll also put in a Pro 840 Samsung SSD. Do you know if the motherboard compatible with the SATA connectors suitable for speeds of 6 GB? Just plug page says "SATA" and does not specify a version.

    Any help you could give me on these questions would be greatly appreciated. This computer has served me well for a few years now, and I'm hoping to keep it for a few more years. Thanks in advance and have a nice day...

    Aaron

    Here are the specifications of plant origin and configurable options for your desktop HP Pavilion Elite HPE - 510 t CTO and here are the specs of his card mother IPISB-CH (Cleveland). According to the specifications, the motherboard uses the Chipset Intel H67 Express that supports an extension v2.0 x 16 PCIe and 3Gbs SATAII (SATA2).

    (1) SLI is not "feasible", so no need to go there. GeForce GTX 680 cards are going to be long, perhaps too long. You need to measure the space available at the back of the case more further along the x 16 PCIe slot to determine what can be installed. You will need to resign it a notch or two... until you find one that matches. The CX600 Corsair is a great choice and fits, even if you can buy the place CX600M. The CX600M is modular and allows much better management of the cables and so the potential for a better air circulation.

    (2) with regard to memory, the State of the plug;

    Four DIMM DDR3 240-pin connectors
    Supports the PC3 10600 connectors DIMM DDR3 (1333 MHz)
    Memory non - ECC, unbuffered

    Then, two sets of most of these (2 x 4 GB) 240-Pin DDR3 SDRAM DDR3 1333 (PC3 10600) Desktop Memory Kits should do the trick. You can also go to the website Crucial.com and use two of their 'guaranteed compatible memory upgrade'.

    (3) your computer supports speeds SATAII (3Gbs) and this is the best it will do. However, the SATA connector is identical to what is found on a SSD SATAIII and it should be compatible with your computer.

    Please send BRAVO

  • Windows Live Photo Gallery: Error Code 0 x 8007000. an error is preventing the photo or video to be displayed, unable to display images.

    I have Windows 7 64 bit. I can't see the photos with Windows Live Photo Gallery. If I try I get this error: error code 0 x 8007000. an error is preventing the photo or video to be displayed, unable to display images. I can open the images with other applications.

    Can you access the properties of the files and check your username on the Security tab on the computer that has problems with them, opening

    Not being able to do something with these points of shared files to a problem of permissions with the files.

    You should also ask for help on this forum,

    Sometimes, it takes 3 or 4 days before a tech react,

    http://windowslivehelp.com/forums.aspx?ProductID=20

    Better put online now.

  • Professional video equipment and Photo - need your advice work station!

    I try to buy a high-end video and photo editing station and I am really puzzled as to the amount of options, but the absence of advice available in this area.

    I am a professional photographer, getting more professional video work. However, it seems that the video is much more demanding than still photo production, so I'm sure that everything which works well for video works surprisingly well for still images. So, let's focus on the video.

    We turn our video mainly on Canon 7 D and 5 D Mark II cameras in full 1080 p. My question was until now mainly that once I have added 2-3 video tracks, some transitions, an effect or two and a plugin of stability (as prodad mercali) on my calendar, I see is no longer my preview in real time as it is constantly stuttering while audio plays directly through making it difficult and a lot of time to complete projects full.

    Thus, the goal is to create a machine that can make previews in real-time, without falling into excessive and just buying exaggerated. I can't find any articles on what I need to achieve this goal. I'm looking for so to each of you, the pros for help.

    For the new machine, we'll upgrade CS5, so here's what I'm looking for:

    Budget: $5000 or less (lower the better, no exaggeration)

    1) mobility -I need a laptop powerful workstation that does everything, or I'm going to need a desktop computer powerful workstation, with a portable powerful decently for work on the go.

    2) real-time preview -ability to add multiple layers of video/audio, video effects and effects plugin while being able to always look at the preview in real time (no stutter)

    3) quickly made -fast, but it does not need to be as quick as lightning

    4) long term reliability -if I can customize a Dell system and maybe add some parts after market that would be the better so that I can have the most all wrapped up by the same 3-5 years warranty

    5) color reproduction - if mobile, I need a screen that reproduces the colors very well as a display of RGB WUXGA LCD

    Additional thoughts/Questions

    (1) do I need map series Quadro/over-pants or taken consumer charge cards as the GTX470 will do the job?

    (2) how know exactly what card is supported if the #s card is off slightly, as if it lists the GTX470 as being taken in charge, that's the GTX480 caught in charge?

    (3) what is the best for long term performance, attacked the SSD or attacked raptors?

    (4) what is the optimal configuration of complete raid 0 hard drive, or say a disc of starting 10 000 rpm + 2 discs 10 000 rpm of searched (raid 0) for the readers of the edition/work?

    (5) are there any resources comparing differences in performance practices of real life between the high-end as the Quadro cards and over-pants series all by doing real-life tasks such as rendering, video editing, Photoshopping, etc.?

    Possible configuration

    This is the main form on a laptop computer Dell, I put in place, do not know what is necessary and what is not:

    Dell Precision M6500 Mobile reference

    Intel Core i7-840QM Quad Core 1.86 Ghz, 8 MB of Cache

    1 GB Nvidia Quadro FX 3800M

    16GB DDR3 1333 Mhz SDRAM (installed aftermarket)

    17 "widescreen WUXGA RGB LCD (1920 x 1200)

    RAID 0 with 2 drives hard - 2 x 256GB mobility Solid State Drives (512 GB of total disk space)

    Thank you all so much for your help!

    -Pye Jirsa

    Lin and Jirsa photography partner

    Pye,

    About the FX 3800 M, it is currently not a GPU supported offering for laptops. The Quadro FX 3800 model for desktop computers IS a solution of support, but not the mobile Variant. We work closely with Adobe on GPU configurations and have constantly been adding extra GPU with each release of Premiere Pro so its our hope to see added in the future, but at this point, it is a solution not supported.

    The performance is difficult to characterize, because there are many variables that come into play. All the GPU, you mentioned are excellent performers and on a desktop platform, all are fully supported solutions.  On a computer laptop platform the Quadro 5000 M is the only solution to support, so if that's important to you (and it's really something to think about from a point of view system property) that will reduce your concentration. Well as on the side of the office, I recommend the Quadro 4000 instead of the older Quadro FX 3800.

    In addition, there are several parameters beyond a few performances. Stability is the main Director behind Quadro professional graphics solutions. Products Quadro are specially tested and manufactured to provide a positive return on the property by providing a long life and stable performance by using the top professional applications.

    Sean

    Director of technical Marketing

    NVIDIA

    Sean Kilbride

    Director of technical Marketing

    Workstation Product Reviews

    P: 408.486.2313

    F: 408.486.4313

    C: 510.673.4570

    [email protected]

Maybe you are looking for