The goog.ui.media.MediaModel.Credit Class

goog.ui.media.MediaModel.Credit(value, opt_role, opt_scheme)

Indicates an entity that has contributed to a media object. Based on 'media.credit' in the rss spec.

value {string}
The name of the entity being credited.
opt_role {goog.ui.media.MediaModel.Credit.Role=}
The role the entity played.
opt_scheme {goog.ui.media.MediaModel.Credit.Scheme=}
The URI that identifies the role scheme.

The goog.ui.media.MediaModel.Credit.Role Enum

The types of known roles. … more

The goog.ui.media.MediaModel.Credit.Scheme Enum

The types of known schemes. … more

.getRole()

Gets the role of the entity being credited.

returns {goog.ui.media.MediaModel.Credit.Role|undefined}
The role of the entity.

.getScheme()

Gets the scheme of the credit object.

returns {goog.ui.media.MediaModel.Credit.Scheme|undefined}
The URI that identifies the role scheme.

.getValue()

Gets the name of the entity being credited.

returns {string}
The name of the entity.

.setRole(role)

Sets the role of the credit object.

role {goog.ui.media.MediaModel.Credit.Role}
The role.
returns {goog.ui.media.MediaModel.Credit}
The object itself.

.setScheme(scheme)

Sets the scheme of the credit object.

scheme {goog.ui.media.MediaModel.Credit.Scheme}
The scheme.
returns {goog.ui.media.MediaModel.Credit}
The object itself.

.setValue(value)

Sets the value of the credit object.

value {string}
The value.
returns {goog.ui.media.MediaModel.Credit}
The object itself.