"` for sound |
Other control properties:
| Property | Default | Purpose |
| --- | --- | --- |
| `OutputFolder` | `~/hls` | Folder under the site where the playlist and segments are written, one subfolder per source |
| `AutoPlay` | `false` | Start playback when the page loads |
| `Muted` | `false` | Start muted (browsers usually allow autoplay only when muted) |
| `HlsJsUrl` | `https://cdn.jsdelivr.net/npm/hls.js@1` | Where the page loads hls.js from |
| `PlaylistUrl` | (read-only) | The playlist URL, set once the stream has started |
If the stream cannot start, the control renders the error message in a `` element instead of the video.
### Choose the source in code-behind
```
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using VisioForge.Core.UI.WebForms;
namespace MyWebApp
{
public partial class Default : Page
{
protected TextBox edSource;
protected TextBox edLogin;
protected TextBox edPassword;
protected HlsPlayer player;
protected void btPlay_Click(object sender, EventArgs e)
{
// The stream starts when the page renders.
player.Source = edSource.Text.Trim();
player.Login = edLogin.Text;
player.Password = edPassword.Text;
}
protected void btStop_Click(object sender, EventArgs e)
{
// Stops the stream for every viewer of this source and clears Source.
player.Stop();
}
}
}
```
`HlsStreamManager.Stop(source)` and `HlsStreamManager.StopAll()` are the lower-level API behind `Stop()`: they stop a stream by its resolved source, or every stream, without a control.
## Licensing and shutdown
Set the license certificate once in `Application_Start`; every pipeline started afterwards uses it. Without it the SDK runs in trial mode. Stop all streams and release the SDK in `Application_End`:
```
using System;
using System.IO;
using System.Web;
using VisioForge.Core.UI.WebForms;
namespace MyWebApp
{
public class Global : HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
// Your license certificate file, kept outside the public site content.
HlsStreamManager.LicenseCertificate =
File.ReadAllBytes(Server.MapPath("~/App_Data/license.vfcert"));
}
protected void Application_End(object sender, EventArgs e)
{
HlsStreamManager.StopAll();
}
}
}
```
## Notes for production
- **Streams are shared and run until stopped.** Every viewer of the same source watches the same pipeline. A live stream (a camera or RTSP source) keeps running after its viewers leave, until `Stop()` on the control, `HlsStreamManager.Stop(source)` or `HlsStreamManager.StopAll()` is called; a file stream also ends when the file does.
- **The first request sets the stream.** Streams are shared per `Source`, so the `AudioSource`, `Login` and `Password` of the first request apply to every later viewer of that source.
- **A file plays in real time and starts over on the next request.** A file or HTTP source is streamed from its beginning at real-time pace, so the live playlist keeps up with its viewers. The control requests its stream on every page request while `Source` is set, so after the file has ended, the next postback of that page plays it again from the beginning; call `Stop()` or clear `Source` to end it. A stream that fails with a pipeline error is dropped the same way; the next request for that `Source` starts it again, and the error is written to the server trace.
- **Write access.** The application pool identity needs write access to the HLS output folder (`~/hls` by default).
- **Capture devices under IIS.** Whether an IIS worker process can open a camera or microphone depends on the server's session and service configuration. On servers, prefer file and RTSP sources.
- **No CDN access.** On an intranet server without internet access, host hls.js on the site and point `HlsJsUrl` at its URL, for example `HlsJsUrl="/Scripts/hls.min.js"`.
## Samples
- **[HLS Media Web Forms](https://github.com/visioforge/.Net-SDK-s-samples/tree/master/Media%20Blocks%20SDK/WebForms/HLS%20Media%20Web%20Forms)** - plays a file, an HTTP URL or an RTSP camera entered on the page.
- **[HLS Webcam Web Forms](https://github.com/visioforge/.Net-SDK-s-samples/tree/master/Media%20Blocks%20SDK/WebForms/HLS%20Webcam%20Web%20Forms)** - streams a webcam and a microphone picked from the server's device lists.
## See Also
- [HLS sink block](../../Sinks/#hls) - `HLSSinkBlock` settings in detail
- [HLS streaming](../../../general/network-streaming/hls-streaming/) - HLS streaming across the SDKs
- [RTSP Stream Viewer](../rtsp-player-csharp/) - RTSP sources and authentication
- [Media Blocks SDK .NET](https://www.visioforge.com/media-blocks-sdk-net) - product page and downloads
---END OF PAGE---
## Deploy TVFVideoEdit in Delphi and ActiveX Applications
**URL:** https://www.visioforge.com/help/docs/delphi/videoedit/deployment/
**Description:** Deploy TVFVideoEdit in Delphi and ActiveX applications with automatic installers or manual setup for required components and dependencies.
**Tags:** All-in-One Media Framework, Delphi, ActiveX, DirectShow, Windows, VCL, Encoding, Editing, IP Camera, MP4, WebM, H.264, AAC
**API:** TVFVideoEdit
# TVFVideoEdit Library Deployment Guide
## Introduction
The TVFVideoEdit library provides powerful video editing capabilities for your Delphi and ActiveX applications. This guide explains how to properly deploy all necessary components to ensure your application functions correctly on end-user systems without requiring the full development framework.
## Deployment Options
You have two primary methods for deploying the TVFVideoEdit library components: automatic installers or manual installation. Each approach has specific advantages depending on your distribution requirements.
### Automatic Silent Installers
For streamlined deployment, we offer silent installer packages that handle all necessary component installation without user interaction:
#### Required Base Package
- **Base components** (always required):
- [Delphi version](https://files.visioforge.com/redists_delphi/redist_video_edit_base_delphi.exe)
- [ActiveX version](https://files.visioforge.com/redists_delphi/redist_video_edit_base_ax.exe)
#### Optional Feature Packages
- **FFMPEG package** (required for file and IP camera support (only for FFMPEG source engine)):
- [x86 architecture](https://files.visioforge.com/redists_delphi/redist_video_edit_ffmpeg.exe)
- **MP4 output package** (for MP4 video creation):
- [x86 architecture](https://files.visioforge.com/redists_delphi/redist_video_edit_mp4.exe)
### Manual Installation Process
For situations where you need precise control over component deployment, follow these detailed steps:
1. **Install Visual C++ Dependencies**
2. Install VC++ 2010 SP1 redistributable:
- [x86 version](https://files.visioforge.com/shared/vcredist_2010_x86.exe)
- [x64 version](https://files.visioforge.com/shared/vcredist_2010_x64.exe)
3. **Deploy Core Media Foundation Components**
4. Copy all MFP DLLs from the `Redist\Filters` directory to your application folder
5. **Register DirectShow Filters**
6. Copy and COM-register these essential DirectShow filters using [regsvr32.exe](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/regsvr32).
7. **Bitness:** the bare filename is the **x86 (32-bit)** filter; the matching **x64 (64-bit)** filter has the `_x64` suffix (for example `VisioForge_Video_Effects_Pro_x64.ax`). Both ship in the redistributable; deploy and register the variant that matches your application's target architecture. 64-bit applications must register the `_x64` variants.
- `VisioForge_Audio_Effects_4.ax`
- `VisioForge_Dump.ax`
- `VisioForge_RGB2YUV.ax`
- `VisioForge_Video_Effects_Pro.ax`
- `VisioForge_Video_Mixer.ax`
- `VisioForge_Video_Resize.ax`
- `VisioForge_WavDest.ax`
- `VisioForge_YUV2RGB.ax`
- `VisioForge_FFMPEG_Source.ax`
Screen-capture functionality (formerly delivered as `VisioForge_Screen_Capture.ax`) is now part of the base filters and does not require a separate registration step.
1. **Configure Path Settings**
2. Add the folder containing these filters to the system environment variable `PATH` if your application executable resides in a different directory
## Additional Components Installation
### FFMPEG Integration
To enable advanced media format support:
- Copy all files from the `Redist\FFMPEG` folder
- Add this folder to the Windows system `PATH` variable
- Register all .ax files from the `Redist\FFMPEG` folder
### VLC Support
For extended format compatibility:
- Copy all files from the `Redist\VLC` folder
- COM-register the .ax file using regsvr32.exe
- Create an environment variable named `VLC_PLUGIN_PATH`
- Set its value to point to the `VLC\plugins` folder
### Audio Output Support
For MP3 encoding capabilities:
- Copy the lame.ax file from the `Redist\Formats` folder
- Register the lame.ax file using regsvr32.exe
### WebM Format Support
For WebM encoding and decoding:
- Install the necessary free codecs available from the [xiph.org website](https://www.xiph.org/dshow/)
### Matroska Container Support
For MKV format compatibility:
- Install [Haali Matroska Splitter](https://haali.net/mkv/) for proper encoding and decoding
### MP4 H264/AAC Output - Modern Encoder
For high-quality MP4 creation with modern codecs:
- Copy `libmfxsw32.dll` / `libmfxsw64.dll` files
- Register these DirectShow filters:
- `VisioForge_H264_Encoder.ax`
- `VisioForge_MP4_Muxer.ax`
- `VisioForge_AAC_Encoder.ax`
- `VisioForge_Video_Resize.ax`
### MP4 H264/AAC Output - Legacy Encoder
For compatibility with older systems:
- Copy `libmfxxp32.dll` / `libmfxxp64.dll` files
- Register these DirectShow filters:
- `VisioForge_H264_Encoder_XP.ax`
- `VisioForge_MP4_Muxer_XP.ax`
- `VisioForge_AAC_Encoder_XP.ax`
- `VisioForge_Video_Resize.ax`
## Bulk Registration Utility
To simplify the registration process for multiple DirectShow filters:
- Place the `reg_special.exe` utility from the redistributable package into the folder containing your filters
- Run it with administrator privileges to register all compatible filters in that directory
## Troubleshooting Tips
Common issues during deployment often include:
- Missing dependencies
- Incorrect registration of COM components
- Path configuration problems
- Insufficient user permissions
Ensure all required files are properly deployed and registered before launching your application.
---
Please contact [our support team](https://helpdesk.visioforge.com/helpdesk/my-tickets/new) if you encounter any issues with this deployment process. Visit our [GitHub repository](https://github.com/visioforge/) for additional code samples and implementation examples.
---END OF PAGE---