{"id":22436,"date":"2025-03-04T04:01:44","date_gmt":"2025-03-04T04:01:44","guid":{"rendered":"https:\/\/iptvca.ca\/blog\/?page_id=22436"},"modified":"2025-03-06T00:43:57","modified_gmt":"2025-03-06T00:43:57","slug":"convert-m3u-to-xtream-code","status":"publish","type":"page","link":"https:\/\/iptvca.ca\/blog\/convert-m3u-to-xtream-code\/","title":{"rendered":"Convert M3U To Xtream Code"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"22436\" class=\"elementor elementor-22436\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b3e6e56 e-flex e-con-boxed e-con e-parent\" data-id=\"b3e6e56\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5042629 elementor-widget elementor-widget-html\" data-id=\"5042629\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\n<html lang=\"en\">\n\n<div class=\"container\">\n    <h2 class=\"text-center mb-4\">Convert M3u to Code Xtream API<\/h2>\n    <form id=\"urlForm\">\n        <div class=\"form-group\">\n            <input type=\"text\" class=\"form-control\" id=\"urlInput\" placeholder=\"http:\/\/example.com\/get.php?username=yourusername&password=yourpassword&type=m3u\">\n        <\/div>\n        <button type=\"submit\" class=\"btn btn-primary btn-block\">Submit<\/button>\n    <\/form>\n\n    <div id=\"outputTable\">\n        <div class=\"table-responsive\">\n            <table class=\"table table-bordered\">\n                <thead class=\"thead-light\">\n                    <tr>\n                        <th>Parameter<\/th>\n                        <th>Value<\/th>\n                    <\/tr>\n                <\/thead>\n                <tbody>\n                    <tr>\n                        <td>Username<\/td>\n                        <td>-<\/td>\n                    <\/tr>\n                    <tr>\n                        <td>Password<\/td>\n                        <td>-<\/td>\n                    <\/tr>\n                    <tr>\n                        <td>URL<\/td>\n                        <td>-<\/td>\n                    <\/tr>\n                <\/tbody>\n            <\/table>\n        <\/div>\n    <\/div>\n<\/div>\n\n<!-- Include Bootstrap CSS -->\n<link href=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.2\/css\/bootstrap.min.css\" rel=\"stylesheet\">\n<style>\n    button.btn.btn-primary.btn-block {\n        color: wheat !important;\n        background: #007bff !important;\n        border: #007bff !important;\n    }\n    .container {\n        max-width: 800px;\n        margin: 0 auto;\n        padding: 20px;\n    }\n    #urlInput {\n        width: 100%;\n        padding: 10px;\n        font-size: 16px;\n        margin-bottom: 10px;\n    }\n    #outputTable {\n        margin-top: 20px;\n    }\n<\/style>\n\n<!-- Include Bootstrap JS and jQuery -->\n<script src=\"https:\/\/code.jquery.com\/jquery-3.5.1.slim.min.js\"><\/script>\n<script src=\"https:\/\/cdn.jsdelivr.net\/npm\/@popperjs\/core@2.9.1\/dist\/umd\/popper.min.js\"><\/script>\n<script src=\"https:\/\/stackpath.bootstrapcdn.com\/bootstrap\/4.5.2\/js\/bootstrap.min.js\"><\/script>\n<script>\n    $(document).ready(function() {\n        $('#urlForm').submit(function(e) {\n            e.preventDefault(); \/\/ Prevent form submission\n\n            \/\/ Get URL input value\n            var url = $('#urlInput').val();\n\n            \/\/ Extract parameters from the URL\n            var urlObject = new URL(url);\n            var hostname = urlObject.hostname;\n            var username = urlObject.searchParams.get(\"username\");\n            var password = urlObject.searchParams.get(\"password\");\n\n            \/\/ Construct table to display extracted data\n            var tableHtml = `\n                <div class=\"table-responsive\">\n                    <table class=\"table table-bordered\">\n                        <thead class=\"thead-light\">\n                            <tr>\n                                <th>Parameter<\/th>\n                                <th>Value<\/th>\n                            <\/tr>\n                        <\/thead>\n                        <tbody>\n                            <tr>\n                                <td>Username<\/td>\n                                <td>${username}<\/td>\n                            <\/tr>\n                            <tr>\n                                <td>Password<\/td>\n                                <td>${password}<\/td>\n                            <\/tr>\n                            <tr>\n                                <td>URL<\/td>\n                                <td>http:\/\/${hostname}<\/td>\n                            <\/tr>\n                        <\/tbody>\n                    <\/table>\n                <\/div>\n            `;\n\n            \/\/ Display table in outputTable div\n            $('#outputTable').html(tableHtml);\n        });\n    });\n<\/script>\n\n<\/html>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-83fea51 elementor-widget elementor-widget-text-editor\" data-id=\"83fea51\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p data-start=\"0\" data-end=\"21\"><strong data-start=\"0\" data-end=\"19\">What is Xtream code?<\/strong><\/p><p data-start=\"23\" data-end=\"282\">Xtream is a protocol used for streaming and distributing multimedia content over the internet, primarily for IPTV (Internet Protocol Television) services. It enables users to access live TV channels, movies, series, and other media content on their devices.<\/p><p data-start=\"284\" data-end=\"311\"><strong data-start=\"284\" data-end=\"309\">How Does Xtream Work?<\/strong><\/p><p data-start=\"313\" data-end=\"564\">Xtream follows a client-server model, where a central server manages and delivers media content to users. The server hosts a database, known as the <strong data-start=\"461\" data-end=\"483\">Xtream Codes Panel<\/strong>, which contains information about available channels, movies, and other media.<\/p><p data-start=\"566\" data-end=\"750\">To access Xtream, users need an IPTV-compatible application or media player along with valid credentials (username, password, and server URL) provided by their IPTV service provider.<\/p><h3 data-start=\"752\" data-end=\"783\"><strong data-start=\"756\" data-end=\"781\">Using Xtream for IPTV<\/strong><\/h3><ol data-start=\"785\" data-end=\"1856\"><li data-start=\"785\" data-end=\"953\"><strong data-start=\"788\" data-end=\"818\">Obtain Xtream Credentials:<\/strong> Subscribe to an IPTV provider that supports Xtream. You will receive a <strong data-start=\"890\" data-end=\"928\">username, password, and server URL<\/strong> to access the service.<\/li><li data-start=\"954\" data-end=\"1151\"><strong data-start=\"957\" data-end=\"999\">Install an Xtream-Compatible IPTV App:<\/strong> Popular IPTV apps that support Xtream include <strong data-start=\"1046\" data-end=\"1093\">IPTV Smarters, TiviMate, and GSE Smart IPTV<\/strong>. Download and install one from your device&#8217;s app store.<\/li><li data-start=\"1152\" data-end=\"1280\"><strong data-start=\"1155\" data-end=\"1187\">Launch the IPTV Application:<\/strong> Open the installed app and navigate to the option for adding a playlist or Xtream account.<\/li><li data-start=\"1281\" data-end=\"1414\"><strong data-start=\"1284\" data-end=\"1307\">Add Xtream Account:<\/strong> Select the Xtream login option and enter your <strong data-start=\"1354\" data-end=\"1392\">server URL, username, and password<\/strong>. Save the settings.<\/li><li data-start=\"1415\" data-end=\"1601\"><strong data-start=\"1418\" data-end=\"1442\">Access IPTV Content:<\/strong> Once your account is added, the app will connect to the server and load available channels, movies, and series. You can browse, search, and start streaming.<\/li><li data-start=\"1602\" data-end=\"1856\"><strong data-start=\"1605\" data-end=\"1637\">Explore Additional Features:<\/strong> Many Xtream-based IPTV apps offer features like <strong data-start=\"1686\" data-end=\"1720\">EPG (Electronic Program Guide)<\/strong> for viewing TV schedules, <strong data-start=\"1747\" data-end=\"1762\">Catch-Up TV<\/strong> for rewatching past content, and <strong data-start=\"1796\" data-end=\"1821\">VOD (Video on Demand)<\/strong> for accessing movies and series.<\/li><\/ol><p data-start=\"1858\" data-end=\"1935\" data-is-last-node=\"\" data-is-only-node=\"\"><strong data-start=\"1858\" data-end=\"1867\">Note:<\/strong> The exact setup process may vary depending on the IPTV app you use.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Convert M3u to Code Xtream API Submit Parameter Value Username &#8211; Password &#8211; URL &#8211; What is Xtream code? Xtream is a protocol used for streaming and distributing multimedia content over the internet, primarily for IPTV (Internet Protocol Television) services. It enables users to access live TV channels, movies, series, and other media content on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-22436","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/iptvca.ca\/blog\/wp-json\/wp\/v2\/pages\/22436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iptvca.ca\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/iptvca.ca\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/iptvca.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iptvca.ca\/blog\/wp-json\/wp\/v2\/comments?post=22436"}],"version-history":[{"count":0,"href":"https:\/\/iptvca.ca\/blog\/wp-json\/wp\/v2\/pages\/22436\/revisions"}],"wp:attachment":[{"href":"https:\/\/iptvca.ca\/blog\/wp-json\/wp\/v2\/media?parent=22436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}