To use a custom player you will need to have the following:
- Be on a $250/mo or higher StreamShark plan & send us a support ticket requesting to use your own player.
- Your full RTMP URL.
- Your HLS .m3u8 URL.
- Your own video player e.g JWPlayer, Flowplayer, Video.js etc.
- Be sure to enable FCsubscribe (For RTMP).
We have complied a list of example players available here.
If you view the source code of an individual player, it will give you an idea on how to implement it.
One of the main things to take note of for RTMP streams is that FCsubcribe is required to be enabled. This usually takes the form of 'subscribe': 'true'. Without this enabled you will be unable to access the stream.
Finding Your RTMP URL
To get the RTMP URL you will need to append '/config' to your stream URL. For example https://play.streamshark.io/r/j/bezcdkndy/streamshark-example/config.
On this page search for the base URL which will be something like "rtmp://live.metacdn.com/2050C7/bezcdkndy" and then append the individual stream, which will look similar to "streamshark-example_2064".
You will then need to combine the two together to from one URL. In our example it gives us: rtmp://live.metacdn.com/2050C7/bezcdkndy/streamshark-example_2064.
Finding Your HLS .M3U8 URL
This URL can be found on the overview page of your live stream. Please note that this will field is only visible to users on the $250/mo and above plans.
If you have any issues, please email us at email@example.com and we'll help you get started!