def METHOD_NAME(self, filepath):
    """ Sets the media file to be played by the widget.
    Args:
        filepath (`pathlib.Path`): The path to the media file path
    """
    self.anim = GdkPixbuf.PixbufAnimation.new_from_file(str(filepath))
    self.base_size = (self.anim.get_width(), self.anim.get_height())
    self.anim_iter = self.anim.get_iter(None)
    self.set_transform()
    self.advance_gif()