The Transport Stream (TS) protocol specifies a container format for encapsulating packetized elementary streams, with error correction and synchronization pattern features.
Samsung Hospitality Display devices support RTP/UDP live streaming in the following ways:
In addition, you can play content in several rotation modes, or control closed captions within the streaming content.
Prerequisites
A wired network connection is necessary for RTP/UDP streaming.
IPv4 multicasting requires the IGMPv2 protocol, or a newer version.
The network switch or router needs to support 80MBps data transfer.
In UDP streams, a UDP packet needs to start with the sync byte x47.
The UDP stream URL must be in udp://IP:Port format.
RTP streams use the same specification as UDP, except URL format, which is rtp://IP:Port.
An IP network with multicast support is required for streaming solution.
Multicast address rules:
The address range between 234.0.0.0 and 238.255.255.255 is recommended for streaming.
The first 3 octets of the IPv4 address range must be same for a group, and the last octet needs to be unique for multicast streams. For example, 235.10.1.xxx
The address ranges 224.x.x.x and 239.x.x.x must not be used for multicast streams.
Clear Transport Stream Playback
Clear Transport Stream playback refers to playing streaming content without DRM.
var player = webapis.avplay;
var url = "udp://231.1.1.21:12345";
var rtpUrl = "rtp://239.10.10.21:12345";
//Listener for Player
var listener = {
onbufferingstart: function() {
console.log("Buffering started");
},
onbufferingprogress: function(percent) {
document.getElementById('test').innerHTML = '<br/>'+'Buffering progress, '+percent+' percent<br/>';
console.log("Buffering progress "+percent+" percent");
},
onbufferingcomplete: function() {
console.log("Buffering completed");
},
oncurrentplaytime: function(currentTime) {
//console.log("current playtime :: " + currentTime);
},
onevent: function(eventType, eventData) {
console.log("onevent " + eventType + " data " + eventData);
},
onstreamcompleted: function() {
console.log("Stream completed");
},
onerror: function(eventType) {
console.log("Error has occurred: "+eventType);
},
onsubtitlechange: function(duration, text, data3, data4) {
console.log("Subtitle changed: duration = "+duration+" | text = "+text+" | data3 = "+data3+" | data4 = "+data4);
},
ondrmevent: function(drmEvent, drmData) {
console.log("DRM callback: " + drmEvent + ", data: " + drmData);
}
};
// Start playback for streaming
var play = function(url) {
try {
player.open(url);
player.setDisplayRect(0, 0, 1920, 1080);
player.setListener(listener);
player.prepareAsync(function() {
player.play();
});
} catch (error) {
console.log("Could not play the requested URL: "+url+" - exception occurred:"+error+" Error name = "+ error.name + ", Error message = " + error.message);
}
};
// Stop playback for streaming
function stop() {
try {
if (player.getState() !== 'NONE') {
player.stop();
}
} catch (error) {
console.log("Could not stop the requested URL: "+url+" - exception occurred:"+error+" Error name = "+ error.name + ", Error message = " + error.message);
}
}
// Call sequence for enabling closed captions in streaming
var key = webapis.tvinfo.TvInfoMenuKey.CAPTION_ONOFF_KEY;
console.log('key:'+ key);
var value = webapis.tvinfo.TvInfoMenuValue.CAPTION_ON;
console.log('value:'+ value);
var onsuccess = function() {
console.log("Captions enabled");
};
var onerror = function() {
console.log("Error has occurred");
};
webapis.tvinfo.setMenuValue(key, value, onsuccess, onerror);
// Call sequence for disabling closed captions in streaming
var key = webapis.tvinfo.TvInfoMenuKey.CAPTION_ONOFF_KEY;
console.log('key:'+ key);
var value = webapis.tvinfo.TvInfoMenuValue.CAPTION_OFF;
console.log('value:'+ value);
var onsuccess = function() {
console.log("Captions disabled");
};
var onerror = function() {
console.log("Error has occurred");
};
webapis.tvinfo.setMenuValue(key, value, onsuccess, onerror);
Note
Trick play or seek features are not supported in unicast streaming.
Only the RTP/UDP protocol is supported for streaming.
Streaming is limited to playback on a single screen.
Streaming + AVPlay/HTML is not supported on a single screen.
SAMSUNG and Cookies
Samsung Electronics, and its partners, use cookies and similar technologies
(collectively “technologies”) to store and access information on your device. Some of
these technologies are technically essential to provide you with a secure,
well-functioning and reliable website. We would also like to set
optional/non-essential technologies to give you the best user experience. Optional
technologies make it possible to measure the audience of our website, to display
personalized advertising on third-party sites based on your profile, to track your
location, to carry out targeted marketing campaigns and to personalize the content of
our website depending on your usage. Through these technologies, we will collect
information such as your interaction with our website, your preferences and your
browsing habits.
If you are happy for technologies to be used for these purposes, click on "Accept All"
to accept all of the technologies. Alternatively, you may click "Continue without
accepting" to refuse all non-essential technologies. You can also make a choice by
category by clicking "Configure". You can withdraw your consent and modify your
choices at any time by clicking on the "Cookie Preferences" button located at the
bottom of our website. Further information is also available in
our Cookie Policy and our
Privacy Policy.
We use cookies to improve your experience on our website and to show you relevant
advertising. Manage you settings for our cookies below.
Essential Cookies
These cookies are essential as they enable you to move around the website. This
category cannot be disabled.
Company
Domain
Samsung Electronics
.samsungdeveloperconference.com
Analytical/Performance Cookies
These cookies collect information about how you use our website. for example which
pages you visit most often. All information these cookies collect is used to improve
how the website works.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Functionality Cookies
These cookies allow our website to remember choices you make (such as your user name, language or the region your are in) and
tailor the website to provide enhanced features and content for you.
Company
Domain
LinkedIn
.ads.linkedin.com, .linkedin.com
Advertising Cookies
These cookies gather information about your browser habits. They remember that
you've visited our website and share this information with other organizations such
as advertisers.
Company
Domain
LinkedIn
.linkedin.com
Meta (formerly Facebook)
.samsungdeveloperconference.com
Google Inc.
.samsungdeveloperconference.com
Preferences Submitted
You have successfully updated your cookie preferences.