LynxRecorder’s record and replay capabilities are already integrated by default in LynxExplorer. You can follow the steps below to experience them.
Please visit LynxExplorer and follow the documentation to run Lynx Explorer app locally.
The Lynx Devtool Application integrates the LynxRecorder control plugin, making it easy to control page record, obtain recorded artifacts, and perform other related operations.
You can visit Lynx DevTool to get the latest version of Lynx DevTool desktop application.
It is especially important to note that, in order to ensure the completeness of the recorded page data, please make sure to click Start before navigating to the target page.
Here is a sample page that you can access by scanning the QR code or entering the link in LynxExplorer.
After stopping the record, the LynxRecorder dashboard will automatically retrieve the recorded artifact from your device and provide a preview image to help you easily identify the target page.
The Lynx DevTool Application only provides local file hosting for each recorded artifact. If you need to share the record artifact or access it across devices, you will need to host the artifact separately.
Here is a sample recorded artifact that you can replay by scanning the QR code or entering the link in LynxExplorer.
It is especially important to note that if you are using a self-hosted artifact URL for replay, you need to append the LynxRecorder Header to the artifact URL to indicate that the artifact is from LynxRecorder.
Original artifact URL:
Append the LynxRecorder Header:
LynxExplorer can fully reproduce the recorded page.
Since the record and replay process of LynxRecorder covers the entire rendering process of Lynx and requires support from the underlying Lynx engine, we have released a separate dev version apart from the official Lynx release to prevent these record-related codes from affecting production environments. If you want to integrate LynxRecorder, you need to change the version numbers of both Lynx and LynxDevtool in your project to the corresponding dev versions. integrate lynx dev version
The record capability can be integrated simply by using the dev version, with no additional adaptation required.
LynxRecorder provides a highly encapsulated replay module, which is integrated into your application together with LynxDevTool. You only need to provide a simple entry point as described below.
LynxRecorder is written in Objective-C. If you want to call its methods from a Swift project, you need to provide a corresponding bridge file as described in Importing Objective-C into Swift.
Add the following content to the bridge file: