HtmlMedia Module

class epyk.core.html.HtmlMedia.Audio(page: PageModel, video: str, path: str, width: tuple, height: tuple, html_code: str, profile: Union[bool, dict], options: Optional[dict])
class epyk.core.html.HtmlMedia.Camera(page: PageModel, width: tuple, height: tuple, html_code: str, profile: Union[bool, dict], options: Optional[dict])
property dom: JsMedia

The Javascript Dom object.

property options: OptMedia

Property to set all the possible object for a Media (video and audio).

class epyk.core.html.HtmlMedia.Media(page: PageModel, video: str, path: str, width: tuple, height: tuple, html_code: str, profile: Union[bool, dict], options: Optional[dict])
property options: OptMedia

Property to set all the possible object for a Media (video and audio).

class epyk.core.html.HtmlMedia.Source(page: PageModel, path: str, video: str)
class epyk.core.html.HtmlMedia.Youtube(page: PageModel, link: str, width: tuple, height: tuple, html_code: str, profile: Union[bool, dict], options: Optional[dict])

Simple function to convert a youtube link to the embedded version.

Usage:

html.HtmlMedia.Youtube.get_embed_link('https://www.youtube.com/watch?v=iPGgnzc34tY')
Parameters:

youtube_link – The Youtube link of the online video.