vidi-player.py: add an option to add a background layer with the "rest" sample
[vidi-player.git] / examples / ges-simple-player.py
index bfcf330..c7946c0 100755 (executable)
@@ -38,7 +38,7 @@ def play_clip(video_path):
     timeline = GES.Timeline.new_audio_video()
     layer = timeline.append_layer()
 
-    video_uri = "file://" + video_path
+    video_uri = Gst.filename_to_uri(video_path)
     asset = GES.UriClipAsset.request_sync(video_uri)
     clip = layer.add_asset(asset, 0, 0, asset.get_duration(), GES.TrackType.UNKNOWN)