Before you begin

You should have the following things ready:

  • The BlackBerry 10 Native SDK
  • Your BlackBerry 10 device

The VideoPlayback sample app does not work correctly on the BlackBerry 10 Device Simulator. You can still code, build, and deploy the app, but the playback behavior does not work.

Configure your project

To import the complete project:

  1. From the NDK-Samples repository in GitHub, download the .zip file of the sample apps.
  2. Launch the Native SDK.
  3. On the File menu, click Import.
  4. Expand General, then select Existing Projects into Workspace. Click Next.
  5. Browse to the location where you extracted the sample app and click OK.
  6. Click Finish to import the project into your workspace

The project appears in the Project Explorer window in the IDE. To see the source files in the project, you can expand the project folder and then expand the src folder.

Add a video to your project

The project already includes a video but you can add a different video to play if you want.

  1. Add the new video to your project workspace.
  2. In the IDE, in the Project Explorer view, double-click the bar-descriptor.xml file in your project.
  3. In the bar-descriptor.xml view, click the Assets tab.
  4. In the Build Configurations section, click All Configurations.
  5. In the Assets section, click Add Files.
  6. In the dialog box, click Workspace and select the video file you want the app to play.
  7. Click OK.

Last modified: 2015-07-24

Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus