[Helix-client-dev] Re: [Player-dev] [Helix-Player-dev] CR: Add fast forward/rewind for helix dbus-server
Greg Wright gwright at real.comZhao, Halley wrote: > Synopsis: > > Add fast forward/rewind for helix dbus-server > > Overview: > > Add fast forward/rewind for helix dbus-server > > 1. Create a new thread for fast forward/rewind to enter into fast > forward/rewind mode From what I can tell you are doing fast farware and rewind by simply seeking from one point to another. This is not very optimal at all. Helix already has an interface that lets you control the velocity of the playback, both forward and backwards. It is called trick play and it is what the Window's Realplayer uses to do slow motion, fast fowards, etc. This may be a bit out of date but it will show you what interfaces to look for: https://helix-client.helixcommunity.org/nonav/2005/devdocs/TKP-SOD-001-TrickPlay.html Also, splay has code in it to do velocity, so that would be a great place to look for how to use it. I am not sure what support, if any, hxclientkit has for it. > > 2. The thread is actived every FAST_FORWARD_CYCLE (0.5 second), and > seek position forward/backward FAST_FORWARD_LENGTH (1 second) length. Be very careful with threads and the Helix platform. From a top level clients point of view (hxclientkit) it must never call into the engine on any thread except the one that created it. The engine will also always call back into hxclientkit on that same thread. The interface between the two is not thread safe. > > > > Files Added: > > No file added > > Files Modified: > > helix-dbus-server.cpp: > (player/dbus-server/src/helix-dbus-server.cpp) > > dbus message handles > > hxplayer.cpp: (player/dbus-server/src/hxplayer.cpp) > > 1. Create a new thread for fast forward/rewind > > 2. The thread is actived every FAST_FORWARD_CYCLE (0.5 second), > and seek position forward/backward FAST_FORWARD_LENGTH (1 second) > length. > > Image Size and Heap Use impact (Client -Only): > > little > > Platforms and Profiles Affected: > > platform: linux-2.2-libc6-gcc32-i586 > > profile: helix-client-all-defines > > > > Distribution Libraries Affected: > > <helix-dbus-server.bin> > > Distribution library impact and planned action: > > <None> > > Platforms and Profiles Build Verified: > > Set BIF branch -> hxdbus_1_5_0_cayenne > > Set Target(s) -> dbus_server_with_video > > Set Profile -> helix-client-all-defines > > System ID -> linux-2.2-libc6-gcc32-i586 > > Branch: > > HEAD, hxclient_3_1_0_atlas > > Copyright assignment: <MUST be one of the following statements > > > 2. Intel has signed and delivered a Joint Copyright Assignment > > to RealNetworks, and received acknowledgment that the > > agreement was received. > > Files Attached: > > dbus-server.diff > > > > ZHAO, Halley (Aihua) > > Email: halley.zhao at intel.com <mailto:aihua.zhao at intel.com> > > Tel: +86(21)61166476 > > iNet: 8821-6476 > > SSG/OTC/UMD > > > > > > ------------------------------------------------------------------------ > > This body part will be downloaded on demand.