<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ADAMA BONGADO</title>
    <description>The latest articles on DEV Community by ADAMA BONGADO (@adama_bongado_a857dfff7ed).</description>
    <link>https://dev.to/adama_bongado_a857dfff7ed</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2659263%2F70165f93-02d4-46a0-9f83-24fdb2b45556.png</url>
      <title>DEV Community: ADAMA BONGADO</title>
      <link>https://dev.to/adama_bongado_a857dfff7ed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adama_bongado_a857dfff7ed"/>
    <language>en</language>
    <item>
      <title>Creating M3U Playlists for xPola Player</title>
      <dc:creator>ADAMA BONGADO</dc:creator>
      <pubDate>Sun, 05 Jan 2025 10:25:09 +0000</pubDate>
      <link>https://dev.to/adama_bongado_a857dfff7ed/creating-m3u-playlists-for-xpola-player-1bd0</link>
      <guid>https://dev.to/adama_bongado_a857dfff7ed/creating-m3u-playlists-for-xpola-player-1bd0</guid>
      <description>&lt;p&gt;This tutorial walks you through creating an M3U playlist that's compatible with the xPola Player, an advanced media player capable of playing multiple formats. The steps below will help you structure and customize your M3U playlist to include features like logos, user-agent headers, and multi-server support.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steps to Create an M3U Playlist&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;Step 1:&lt;/strong&gt; Start by opening a text editor, such as Notepad++ or any other code editor, and create a new file. Save it with a relevant name, such as playlist.m3u.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt;  At the very beginning of your playlist file, add the following line to indicate that the file is an M3U playlist:&lt;br&gt;
Step 2: At the very beginning of your playlist file, add the following line to indicate that the file is an M3U playlist:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTM3U
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Step 3:&lt;/strong&gt; Add each media entry following this structure. You can include details like group titles, channel logos, and video names. Below is an example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
https://example.com/file/video.m3u8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To configure the playlist with specific headers like user-agent, referrer, or player type, use the appropriate commands as shown below.&lt;br&gt;
&lt;strong&gt;Adding User-Agent&lt;/strong&gt;&lt;br&gt;
To include a specific user-agent header for the stream, use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-user-agent=your-agent-here
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;For example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
#EXTVLCOPT:http-user-agent=your-agent-here
https://example.com/file/video.m3u8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Adding Referrer&lt;/strong&gt;&lt;br&gt;
To specify a referrer, add:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-referrer=https://domaine.com/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
#EXTVLCOPT:http-referrer=https://domaine.com/
https://example.com/file/video.m3u8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Setting the HTTP Origin&lt;/strong&gt;&lt;br&gt;
To set the HTTP origin for a video link, use the following line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-origin=https://domaine.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
#EXTVLCOPT:http-origin=https://domaine.com
https://example.com/file/video.m3u8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This option is used to specify the HTTP origin header when accessing the video link. It's essential for certain streams or servers that require an origin value to ensure the request is valid, usually to check the origin of the request for security or access control purposes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setting the X-Requested-With Header&lt;/strong&gt;&lt;br&gt;
To set the X-Requested-With header for a video link, use the following line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-requested=com.android.browser
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
#EXTVLCOPT:http-requested=com.android.browser
https://example.com/file/video.m3u8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This option is used to specify the X-Requested-With HTTP header when accessing the video link. This header is often required by servers to identify the client making the request, commonly for security, access control, or compatibility purposes.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setting Custom Cookies for a Video Stream&lt;/strong&gt;&lt;br&gt;
This option allows you to pass custom cookies to the video stream URL. Cookies can be used for authentication, session handling, or other purposes required by the server to grant access to the media content.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-cookie=name=value;name2=value2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
#EXTVLCOPT:http-cookie=name=value;name2=value2
https://example.com/file/example.m3u8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;How it works: You define one or more cookies using the format name=value. You can set multiple cookies by separating them with semicolons. When the media player sends the request to access the video, it will include these cookies in the request headers, just as a browser would. This is useful when the server requires specific cookie values to grant access to the video stream.&lt;/p&gt;

&lt;p&gt;For example, if the server requires session authentication or other information stored in cookies, you can set these values to ensure the player can access and play the content properly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Setting the Player Type to Web Player&lt;/strong&gt;&lt;br&gt;
To configure the player type as "webplayer", use the following line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-player-type=webplayer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-player-type=browser
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-player-type=browser
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-player-type=external
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-player-type=m3u
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
#EXTVLCOPT:http-player-type=webplayer
https://example.com/file/video.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
#EXTVLCOPT:http-player-type=m3u
https://example.com/file/playlist.m3u
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This option tells the player to open the link in a web player format. It's useful when the content is designed to be played directly in a browser or web-based media player rather than a standalone app or media player.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advanced Configurations&lt;/strong&gt;&lt;br&gt;
To handle multi-server streams or advanced player configurations, you can add multiple server links in the following format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
servers=["https://server1.com/playlist.m3u8|referer=https://example.com/", 
         "https://server2.com/playlist.m3u8|user-agent=CustomAgent"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also specify DRM license configurations for ClearKey, Widevine, or PlayReady:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
#EXTVLCOPT:http-drm-scheme=clearkey
#EXTVLCOPT:http-drm-license=xxxxxxxxxxxxxxxxx:yyyyyyyyyyyyyyyyyy
https://example.com/file/stream.mpd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OR&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
#KODIPROP:inputstream.adaptive.license_type=clearkey
#KODIPROP:inputstream.adaptive.license_key=xxxxxxxxxxxxxxxxx:yyyyyyyyyyyyyyyyyy
https://example.com/file/stream.mpd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;OR&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
https://example.com/file/stream.mpd?|drmScheme=clearkey&amp;amp;drmLicense=xxxxxxxxxxxxxxxxx:yyyyyyyyyyyyyyyyyy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Automatically Fetching a Video Stream from a Webpage&lt;br&gt;
This option is particularly useful when you have a webpage with an embedded video player or video link, and you want the media player to find and play the video stream without showing the webpage itself.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTVLCOPT:http-find=any_key_word_in_the_link;m3u8
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#EXTINF:-1 group-title="Group Name" tvg-logo="https://example.com/images/logo.jpeg", Video Name 1
#EXTVLCOPT:http-find=any_key_word_in_the_link;m3u8
https://example.com/file/example.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;How it works: You provide the link to a webpage that contains the video player or video URL, and specify a keyword (like "m3u8") that is part of the actual video link. The player will open the webpage in the background, search for the video link that matches the keyword, extract it, and play the video directly in the player without displaying the webpage.&lt;/p&gt;

&lt;p&gt;This is useful for avoiding unnecessary webpage content and directly streaming the video by automatically finding the correct video link from the page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PHP and HTML Integration&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you want to open videos in the xPola Player app directly from a web page, you can use the following PHP or HTML code snippets. These examples show how to encode a video URL and pass it to the xPola Player via an intent in Android:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php
$videoUrl = "https://example.com/file/playlist.m3u8";
?&amp;gt;
&amp;lt;button onClick="location.href='intent://&amp;lt;?php echo base64_encode($videoUrl); ?&amp;gt;#Intent;scheme=xmtv;package=com.xpola.player;end'"&amp;gt;Play&amp;lt;/button&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Similar HTML-based buttons can be created to trigger playback directly in xPola Player:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;title&amp;gt;Play Video&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;button onclick="playVideo()"&amp;gt;Play Video&amp;lt;/button&amp;gt;
    &amp;lt;script&amp;gt;
        function playVideo() {
            let videoUrl = "https://example.com/file/playlist.m3u8|referer=https://example.com/";
            location.href = 'intent://' + btoa(videoUrl) + '#Intent;scheme=xmtv;package=com.xpola.player;end';
        }
    &amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>android</category>
      <category>media</category>
      <category>xpola</category>
      <category>xpolaplayer</category>
    </item>
    <item>
      <title>xPola Player: The Advanced Media Player for Android</title>
      <dc:creator>ADAMA BONGADO</dc:creator>
      <pubDate>Sun, 05 Jan 2025 10:10:21 +0000</pubDate>
      <link>https://dev.to/adama_bongado_a857dfff7ed/xpola-player-the-advanced-media-player-for-android-41ol</link>
      <guid>https://dev.to/adama_bongado_a857dfff7ed/xpola-player-the-advanced-media-player-for-android-41ol</guid>
      <description>&lt;p&gt;xPola Player is a versatile video link player designed specifically for Android devices. Its user-friendly interface and elegant design make it accessible to users of all levels. With its support for a wide range of video formats such as M3U, TS, M3U8, MOV, and audio formats like MP3, xPola Player is a reliable and powerful media player.&lt;br&gt;
&lt;strong&gt;Wide Format Support&lt;/strong&gt;&lt;br&gt;
One of the key strengths of xPola Player is its compatibility with various media formats. Whether you’re streaming live channels or playing your favorite audio tracks, xPola Player ensures a seamless playback experience.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Customizable User-Agent&lt;/strong&gt;&lt;br&gt;
When adding new video links, users can customize the user-agent header for their streams, providing greater flexibility for accessing content. Alternatively, the default user-agent of the app can be used for simplicity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Personalized M3U Playlists&lt;/strong&gt;&lt;br&gt;
xPola Player allows users to create and manage personalized M3U playlists. By including options like user-agent, referrer, and cookies, users can tailor their playlists to meet their needs. This feature ensures compatibility with advanced streaming requirements and multi-server configurations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Playing Links with ClearKey Protection&lt;/strong&gt;&lt;br&gt;
xPola Player supports playing video links protected with ClearKey technology. This capability allows users to access content that requires specific keys for playback, offering a smooth and secure viewing experience. This makes it a suitable choice for legally accessing DRM-protected content like premium channels and movies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;No Preloaded Content&lt;/strong&gt;&lt;br&gt;
xPola Player is strictly a media player and does not come with any preloaded videos or links. Users must provide their own links, ensuring compliance with copyright regulations and maintaining a fair-use policy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advanced Features for Enhanced Playback&lt;/strong&gt;&lt;br&gt;
The app includes advanced features such as:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Custom HTTP Headers:&lt;/strong&gt; Specify user-agent, referrer, cookies, and more to enhance compatibility.&lt;br&gt;
&lt;strong&gt;Playlist Flexibility:&lt;/strong&gt; Easily organize and manage playlists with additional metadata like logos and group titles.&lt;br&gt;
&lt;strong&gt;Multi-Server Support:&lt;/strong&gt; Add multiple streaming servers for redundancy and better performance.&lt;br&gt;
&lt;strong&gt;Integration with External Players:&lt;/strong&gt; Use external apps or browsers for specialized playback needs.&lt;br&gt;
&lt;strong&gt;Streamlining Video Playback from Web Pages&lt;/strong&gt;&lt;br&gt;
xPola Player simplifies video streaming by extracting video links directly from web pages using specified keywords. This eliminates unnecessary webpage content, allowing users to focus on the content they want to watch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
xPola Player stands out as a comprehensive and advanced media player for Android. Its ability to handle a wide array of formats, customization options, and support for modern playback technologies like ClearKey makes it an excellent choice for all your media needs. Whether you’re an everyday user or a streaming enthusiast, xPola Player is here to deliver a seamless experience.&lt;br&gt;
You can download xPola Player directly from the Google Play Store.&lt;/p&gt;

</description>
      <category>mobile</category>
      <category>android</category>
    </item>
  </channel>
</rss>
