Module: player/FrameURL

Manage the browser's location bar while playing a presentation.

This module is part of the Sozi player embedded in each presentation.

Source:

Members

(inner) player :module:player/Player.Player

The current Sozi player.

Type:
Source:

Methods

(static) getFrame() → {module:model/Presentation.Frame}

Get the frame for the current URL.

This function parses the current URL hash as a frame ID or a frame number. It returns the corresponding frame, or the current frame if no match was found.

Source:
Returns:
  • The frame that corresponds to the current URL hash.
Type
module:model/Presentation.Frame

(static) init(p)

Initialize the location bar management.

This function registers hashchange and frameChange event handlers to reflect the current frame ID in the current URL.

Parameters:
Name Type Description
p module:player/Player.Player

The current Sozi player.

Source:

(inner) onFrameChange()

Update the URL hash in the location bar on frame change.

Source:
Listens to Events:

(inner) onHashChange()

Process the hashchange event.

Move the presentation to the frame that corresponds to the current URL.

Source:
Listens to Events:
  • event:hashchange