SoundCloudEmbedData class
SoundCloud player embed data
- Inheritance
-
- Object
- SocialMediaGenericEmbedData
- SoundCloudEmbedData
Constructors
- SoundCloudEmbedData({required String embedUrl, double height = defaultHeight})
-
Creates an instance of the embed data
const
Properties
- aspectRatio → double?
-
Aspect ratio of the embed
finalinherited
- canChangeSize → bool
-
Whether the embed can change size after being loaded or not
finalinherited
- embedUrl → String
-
SoundCloud widget iframe URL (
w.soundcloud.com/player/)final - hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
Player height in logical pixels
final
- htmlBaseUrl → String
-
Base URL for
WebViewController.loadHtmlString, giving the page a real origin. When null, HTML is loaded via a data URI instead.no setteroverride - htmlBody → String
-
The HTML of the embed
no setteroverride
- htmlScript → String
-
Computed script tag to load on the embed
no setterinherited
- htmlScriptUrl → String
-
The JS script to load on the embed
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
extractEmbedHeight(
String embedHtml) → double -
Reads
height: …pxfrom wrapper styles, else defaultHeight. -
extractEmbedUrl(
String embedHtml) → String? - Extracts a SoundCloud or widget player URL from markup.
-
fromMarkup(
String embedHtml) → SoundCloudEmbedData? - Builds embed data from CMS markup or a plain SoundCloud URL.
-
toEmbedUrl(
String url) → String -
Converts track permalinks to the
w.soundcloud.com/playerwidget URL.
Constants
- defaultHeight → const double
- Default height when CMS markup does not specify one