
Help
Players
Help
Players
There are four different options to publish your player and content depending on if the player and content is hosted by Flowplayer or someone else. We always recommend to use the Flowplayer hosting for the player and the video files, but in some cases that might not be possible.
We always recommend you to leverage our optimized encoding and delivery of content as well as our video player. You can publish a player together with a media asset in two ways:
You can publish using an iframe or a javascript embed when both player and content is hosted by Flowplayer.
In case you want to host the content yourself you can still leverage our analytics by registering your content as remote assets and publish them using a hosted player:
To find the embed code of a player you go to the Players area under the Configurations section. There you will find the possibility to Get embed code of a player at the bottom of a video player page.
If you wish to have analytics for your content you can publish the remote asset directly using its id
in the src
configuration:
<div data-player-id="<playerid>">
<script src="//cdn.flowplayer.com/players/<siteid>/native/flowplayer.async.js">
{
"src": "<videoid>"
}
</script>
</div>
If you do not wish to have analytics for your assets you can publish the content using the video url(s) in the src
configuration:
<div data-player-id="<player id>">
<script src="//cdn.flowplayer.com/players/<site id>/native/flowplayer.async.js">
{
"src": "//edge.flowplayer.org/bauhaus.m3u8",
"my_configuration": "my_value"
}
</script>
</div>
In above sample codes,
data-player-id="<player id>"
identifies the skinning and behavior configuration you created. You can see the id in the page url when selecting a player design.//cdn.flowplayer.com/players/<site id>/native/flowplayer.async.js
is the url of the hosted player script, specific to your workspace/site."src": "<videoid>"
contains the Flowplayer videoid if it's a remote asset, or "src": "//edge.flowplayer.org/bauhaus.m3u8"
is the url to the video stream/file."my_configuration"
is a dummy for the various additional player configuration optionsFor more advanced configuration options if you host the content yourself please see the documentation on player configuration of the source. You can also see more information about supported media formats.
If you require the player to reside on your own servers you can host the player yourself. By still using the Flowplayer video hosting you ensure that your content will be played in the best possible way and you also take advantage of our optimized video delivery network.
When self-hosting the player you have to regularly update it to benefit from improved functionality and bug fixes.
In order to host the player yourself please follow our self-hosted quick-start section.
To get the video file urls from Flowplayer you can either look them up in the in the UI or use our API calls for get videos.
If you require the player to reside on your own server you can host the player yourself. Notice however that you will have to update the player regularly to benefit from improved functionality and bug fixes. You'll have to take care of the video encoding and hosting. We have a list of supported formats that you can refer to.
When self-hosting the player you have to regularly update it to benefit from improved functionality and bug fixes.
In order to host the player yourself please follow our self-hosted quick-start section.
Live streaming
Live analytics
Ad scheduling
Monetization