release_notes.txt 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. Custom QML Video Player
  2. =======================
  3. The Custom QML Video Player provides a reusable QML component for playing
  4. video and showing transparent overlay controls on top of video content.
  5. The VideoPlayer component enables showing full-screen videos with play
  6. controls that can be hidden or in a smaller size with play controls and other
  7. information always shown. The controls can be easily modified with QML code.
  8. The VideoPlayer has been created mostly with custom QML code, but it does use
  9. the Qt Quick Components (such as Button, ProgressBar, BusyIndicator) in a few
  10. places. For example, the ProgressBar is used to indicate the current playback
  11. position in a way that is familiar to the user.
  12. This example component demonstrates:
  13. - QML video playing capabilities
  14. - Customised overlay controls on top of video content
  15. - Handling Symbian phone volume keys within the QML code
  16. - Reacting to the phone's current profile changes
  17. This example component is hosted in Nokia Developer Projects:
  18. - http://projects.developer.nokia.com/videoplayer
  19. For more information on the implementation, visit the wiki page:
  20. - http://projects.developer.nokia.com/videoplayer/wiki
  21. 1. Usage
  22. -------------------------------------------------------------------------------
  23. The customised QML VideoPlayer component can be used in applications simply by
  24. adding the VideoPlayer QML sources into the project and importing it into
  25. a QML file. The player itself can be created by instantiating the VideoPlayView
  26. and by calling its setVideoData() function.
  27. If the hardware volume keys are required, the volumekeys.h has to be included
  28. in a .cpp file (e.g., the application's main.cpp) and the VolumeKeys class
  29. should be instantiated and passed to the declarative context by calling the
  30. QDeclarativeContext::setContextProperty. By default, the volume keys' context
  31. property is assumed to be named as "volumeKeys".
  32. 2. Prerequisites
  33. -------------------------------------------------------------------------------
  34. - Qt basics
  35. - Qt Quick basics
  36. - Qt Quick Components basics
  37. 3. Project structure and implementation
  38. -------------------------------------------------------------------------------
  39. 3.1 Folders
  40. -----------
  41. | The root folder contains the licence information and
  42. | this file (release notes).
  43. |
  44. |- meego
  45. | |
  46. | |- VideoPlayer MeeGo platform-specific code files.
  47. |
  48. |- symbian
  49. | |
  50. | |- VideoPlayer Symbian (Anna/Belle) platform-specific code files.
  51. |
  52. 3.2 Important files and classes
  53. -------------------------------
  54. | Class | Description |
  55. |-------------------------|---------------------------------------------------|
  56. | VolumeKeys | Class that implements the MRemConCoreApiTarget- |
  57. | | Observer for reacting to hardware volume buttons. |
  58. |-------------------------|---------------------------------------------------|
  59. 3.3 Used APIs/QML elements/Qt Quick Components
  60. ----------------------------------------------
  61. The following APIs, QML elements, and Qt Quick Components have been used.
  62. Symbian & Qt: (Used only in Symbian with the VolumeKeys implementation)
  63. - CRemConCoreApiTarget
  64. - CRemConInterfaceSelector
  65. - MRemConCoreApiTargetObserver
  66. - QObject
  67. Standard QML elements:
  68. - Connections
  69. - Loader
  70. - State
  71. - Text
  72. - Timer
  73. - Transition
  74. QML elements from Qt Quick Components:
  75. - BusyIndicator
  76. - ProgressBar
  77. - Slider
  78. QML elements from Qt Mobility:
  79. - DeviceInfo
  80. - Video
  81. 4. Compatibility
  82. -------------------------------------------------------------------------------
  83. Compatible with:
  84. - Symbian devices with Qt 4.7.4 or higher.
  85. - MeeGo 1.2 Harmattan devices.
  86. Tested on:
  87. - Nokia E6
  88. - Nokia E7-00
  89. - Nokia N9
  90. Developed with:
  91. - Qt SDK 1.2
  92. 4.1 Required capabilities
  93. -------------------------
  94. None; The application can be self signed on Symbian.
  95. 4.2 Known issues and design limitations
  96. ---------------------------------------
  97. - If you use the Custom VideoPlayer Component for streaming videos over the
  98. internet, streaming might not start on some device & operator combinations.
  99. This might be due to the used video streaming access point. Changing it may help.
  100. In Symbian devices, select
  101. "Menu" - "Settings" - "Application settings" - "Videos" - "Access point in use"
  102. to change the currently used streaming access point.
  103. After video playback there are severe performance bugs.
  104. - https://bugreports.qt.nokia.com/browse/QTMOBILITY-1570 & -1818
  105. Swiping the application to the background on the Nokia N9 while the video is
  106. playing causes the application to crash.
  107. - https://bugreports.qt-project.org/browse/QTMOBILITY-1995
  108. 5. Building, installing, and running the application
  109. -------------------------------------------------------------------------------
  110. 5.1 Preparations
  111. ----------------
  112. Check that you have the latest Qt SDK installed in the development environment
  113. and the latest Qt version on the device.
  114. Qt Quick Components 1.1 or higher is required.
  115. Copy the VideoPlayer QML folder (and the volumekeys source files, if needed) to
  116. the project's own QML source folder, and create the model with the m_contentUrl
  117. for the VideoPlayView QML Element. Call the setVideoData() function to start
  118. the playback.
  119. 5.2 Using the Qt SDK
  120. --------------------
  121. You can install and run the application on the device by using the Qt SDK.
  122. Open the project in the SDK, set up the correct target (depending on the device
  123. platform), and click the Run button. For more details about this approach,
  124. visit the Qt Getting Started section at Nokia Developer
  125. (http://www.developer.nokia.com/Develop/Qt/Getting_started/).
  126. 5.3 Symbian device
  127. ------------------
  128. Make sure your device is connected to your computer. Locate the .sis
  129. installation file and open it with Nokia Suite. Accept all requests from Nokia
  130. Suite and the device. Note that you can also install the application by copying
  131. the installation file onto your device and opening it with the Symbian File
  132. Manager application.
  133. After the application is installed, locate the application icon from the
  134. application menu and launch the application by tapping the icon.
  135. 5.4 Nokia N9 and Nokia N950
  136. ---------------------------
  137. Copy the application Debian package onto the device. Locate the file with the
  138. device and run it; this will install the application. Note that you can also
  139. use the terminal application and install the application by typing the command
  140. 'dpkg -i <package name>.deb' on the command line. To install the application
  141. using the terminal application, make sure you have the right privileges
  142. to do so (e.g. root access).
  143. Once the application is installed, locate the application icon from the
  144. application menu and launch the application by tapping the icon.
  145. 6. Licence
  146. -------------------------------------------------------------------------------
  147. See the licence text file delivered with this project. The licence file is also
  148. available online at
  149. https://projects.developer.nokia.com/videoplayer/browser/Licence.txt
  150. 7. Related documentation
  151. -------------------------------------------------------------------------------
  152. Qt Quick Components
  153. - http://doc.qt.nokia.com/qt-components-symbian-1.0/index.html
  154. - http://harmattan-dev.nokia.com/docs/library/html/qt-components/qt-components.html
  155. 8. Version history
  156. -------------------------------------------------------------------------------
  157. 1.0 Published on the Nokia Developer website.