Difference between revisions of "Online Service Security Prompts"

From Winamp Developer Wiki
Jump to: navigation, search
(New page: '''Breadcrumb''' -- Wiki Main : Skin Developer : Visual Developer : Plug-in Developer : Online Service Developer : Articles Page : [[Developers F...)
 
m (Protected "Online Service Security Prompts" [edit=sysop:move=sysop])
 
(4 intermediate revisions by 4 users not shown)
(No difference)

Latest revision as of 22:43, 22 August 2011

Breadcrumb -- Wiki Main : Skin Developer : Visual Developer : Plug-in Developer : Online Service Developer : Articles Page : FAQ :

Winamp Online Services Security

Winamp Online Services is a powerful new way for web developers to create engaging content for millions of Winamp users. However, with great power comes great responsibility. Since online services have access to more information from the Winamp client than an ordinary web page, it is very important that we provide some mechanism to provide security for the users.

There are certain activities that online services can perform that are not considered a security risk For example, examining the current position of a song being played. However, for others a security dialog will be presented whenever a service tries to perform the action for the first time.

Security Dialog Prompts

Security prompts contain a description of the action being attempted, an indication as to what API the action belongs, allow and deny buttons as well as a checkbox.

Replies, either Allow or Deny, to security prompts are saved for each online service.

Allow

Allows the online service to perform the action. It will also automatically ALLOW other, related actions. The list below will identify which actions are related.

Deny

Does NOT allow the online service to perform the action. It will also automatically DENY other related actions.

Use this response for all security requests for this service

When this checkbox is checked, the choice (Allow or Deny) will be used as the response to all subsequent security prompts for this service. This is a quick way to indicate that a particular online service should be allowed or denied (depending on the button pressed) to perform all actions.

Grouping APIs by Security Prompt

The following APIs and methods will cause a security prompt to appear the first time each service attempts to invoke them. Security responses for each message will then be used automatically for the other api methods listed.:

This service is trying to control playback

  • API: Transport
  • Methods: Prev(), Play(), Stop(), Pause(), Next()
  • Description: The online service is attempting to Play, Stop, Pause, Jump to the previous track, or Jump to the next track.

This service is trying to monitor playback events

  • API: Transport
  • Methods: RegisterForEvents()
  • Description: The online service is requesting to be notified when playback events occur. The possible events are Play, Pause, Stop, End of File. Note these events will occur whether initiated from scripts or from the user clicking on the buttons themselves. Some events carry additional information:
    • Play provides the filename/URL of the asset being played.
    • Stop provides the current position where playback was halted. End of File indicates that the end of the asset has been reached.
    • Pause provides a flag indicating whether the player was paused or unpaused.
    • End of File happens at the end of an asset before the next one is played.

This service is trying to get information about the currently playing song

  • API: Transport
  • Methods: GetMetadata()
  • Description: The online service is requesting "Metadata" information from the current asset. "Metadata" is additional information that MAY be part of the asset, such as author or title, that is not actually part of the song itself. The existence of metadata depends on the format of the data and whether it was added when the asset was digitized.

This service is trying to access your active playlist

  • API: PlayQueue
  • Methods: Play(), Enqueue(), Insert(), ClearQueue()
  • Description: The online service is trying to alter the Play Queue. It may be trying to play a single asset, add assets to the queue or clear the queue.

This service is trying to get information about an item in your Play Queue.

  • API: PlayQueue
  • Methods: GetMetadata(), GetTitle(), GetURL()
  • Description: The service is trying to gather information about an asset within the play queue.

This service is trying to access the playlists in your media library

  • API: PlayLists
  • Methods: GetPlaylists(), OpenPlaylist(), SavePlaylist()
  • Description: The online service is trying to obtain a list of all Winamp playlists known to your Winamp client. It may also be trying to open a playlist to manipulate the assets within or it may be trying to save a modified playlist.

This service is trying to access your bookmarks

  • API: Bookmarks:
  • Methods: Add()
  • Description: The online service is trying to create a bookmark in your Media Library Bookmarks.

This service is trying to subscribe you to a podcast

  • API: Podcasts
  • Methods: Add()
  • Description: The online service is trying to subscribe to a podcast and add an entry in your Media Library Podcasts

This service is trying to provide metadata to Winamp

  • API: MediaCore
  • Methods: AddMetadataHook()
  • Description: The online service is trying to add metadata for an asset. This might be useful if the online service can provide better metadata than comes as part of the asset itself.

This service is trying to access information about media supported by Winamp.

  • API: MediaCore
  • Methods: isRegisteredExtension()
  • Description: The service is trying to determine if the Winamp client supports a certain encoding formation, for example "mp3".

This service is trying to access information about media on your computer.

  • API: MediaCore
  • Methods: GetMetadata()
  • Description: The online service is attempting to get metadata from an asset.

This service is trying to access your playback history

  • API: History
  • Methods: Query()
  • Description: The Winamp History is a collection of information about the assets you play, how many times they were played and when was the last time they were played. It is used to determine what the users favorite songs are.

This service is trying to launch a website in the browser

  • API: Application
  • Methods: LaunchURL()
  • Description: The online service is trying to launch a new web site in the browser. The browser may be internal to Winamp, which means it could be an online service or it could be launched in an external browser where it does not benefit from the online services api calls.

This service is trying to access information about Winamp

  • API: Application
  • Properties: version, versionstring, language, languagepack
  • Description: The online service is trying to gather information regarding the version of Winamp or the language pack that is being used by Winamp.

This service is trying to access your skin settings

  • API: Skins
  • Methods: GetClassicColor(), GetPlaylistColor(), GetSkinColor()
  • Description: The online service is trying to obtain information regarding the current skin used by the Winamp client. This could be used to sychronize the colors of the service with that of the Winamp player.