# null

# MediaCreateSinkWriterFromURL

**Valid for**: CANoe DE • CANoe4SW DE

## Function Syntax

```
dword MediaCreateSinkWriterFromURL(char mediaFileUrl[]);
```

## Description

Creates the sink writer from a URL.

For more information regarding the sink writer see [sink writer](../CAPLfunctionsMediaSinkWriter.md).

## Parameters

* **mediaFileUrl**: A null-terminated string that contains the URL of the output file. For a list of supported media formats in files see [supported media formats](../CAPLfunctionsMediaFormats.md).

## Return Values

* **0**: The function failed. Call [MediaGetLastError](CAPLfunctionMediaGetLastError.md) to get a more specific error code.
* **≠0**: Sink writer handle.

## Example

—

[See Also](javascript:void\(0\);)
