[ CCode ( has_construct_function = false ) ]
public MediaItem (string uri)
Creates new MediaItem from URI.
Use one of the URI protocols supported by plugins in GStreamer installation. For local files you can use either "file"
protocol or [ctor@Clapper.MediaItem.new_from_file] method.
It is considered a programmer error trying to create new media item from invalid URI. If URI is valid, but unsupported by installed
plugins on user system, [class@Clapper.Player] will emit a [signal@Clapper.Player:ClapperMediaItem:missing-plugin] signal
upon playback.
| uri |
a media URI |
|
a new MediaItem. |