Video Player Embed Code
- Previous: Video Feeds & Entries
- Up: Documentation Home
- Next: Video Player API
The MTVN Content API includes an embeddable Flash video player for most returns in the <media:content> node. Here's how you'd take the information from that node and format it as an embed code.
<embed src="MEDIA:CONTENT URL"
width="448" height="366"
type="MEDIA:CONTENT TYPE"
allowFullScreen="true"
name="player1"
allowScriptAccess="always" />
Parameters
| Parameter | Description | Required |
| src | This should always point to the URL included in the <media:content> node. | Yes |
| width | The width is variable and can be changed based on where the video is being embedded. | Yes |
| height | The width is variable and can be changed based on where the video is being embedded. | Yes |
| type | Sets the mime-type for browsers, should always be set to "application/x-shockwave-flash" | Yes |
| allowFullScreen | Enables video playback in full screen. This should always be set to true. | Yes |
| allowScriptAccess | This allows the player to access the page, this is currently required. | Yes |
| name |
Sets the player's name on the page. Useful when used with the JavaScript Player API. |
No |
| flashvars="autoPlay=true" | When set to true the video player will immediately start playing the video. Available options are "true" or "false." | No |
Example Embed Code
<embed src="http://media.mtvnservices.com/mgid:uma:video:api.mtvnservices.com:235854"
width="448" height="366"
type="application/x-shockwave-flash"
allowFullScreen="true"
allowScriptAccess="always"
name="player1"
flashvars="autoPlay=false" />
- Previous: Video Feeds & Entries
- Up: Documentation Home
- Next: Video Player API
Docs Navigation
- Documentation Home
- Video Feeds & Entries
- Video Player Embed Code
- Video Player API
- Generic Feed Parameters
- Powered By MTV Badges
- Video Search Method
- Video Method
- Artist Alias Method
- Artist Videos Method
- Artist Search Method
- Artist Browse Method
- Related Artist Method
- Genre Alias Method
- Genre Artists Method
- Genre Videos Method
- Invalid Artist Alias
- Invalid Method
- Invalid Video ID

Comments
New comments are not being accepted at this time.