<?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: Ankur Nama</title>
    <description>The latest articles on DEV Community by Ankur Nama (@ankurnama007).</description>
    <link>https://dev.to/ankurnama007</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%2F1481857%2F7e6fce12-f003-4acf-bb53-b9bf7b5362b3.png</url>
      <title>DEV Community: Ankur Nama</title>
      <link>https://dev.to/ankurnama007</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ankurnama007"/>
    <language>en</language>
    <item>
      <title>Video quality selector not working in iPhone and mac safari</title>
      <dc:creator>Ankur Nama</dc:creator>
      <pubDate>Fri, 10 May 2024 05:22:35 +0000</pubDate>
      <link>https://dev.to/ankurnama007/video-quality-selector-not-working-in-iphone-and-mac-safari-55fc</link>
      <guid>https://dev.to/ankurnama007/video-quality-selector-not-working-in-iphone-and-mac-safari-55fc</guid>
      <description>&lt;p&gt;I have added the option to change the video quality in the video player. It works in Chrome and Windows browsers but it is not working in iPhone and Mac Safari, only the button shows, and options are not visible. Can anyone help me with this issue?&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;video-js id="my-video" class="vjs-fluid" controls playsinline autoplay muted&amp;gt;
    &amp;lt;source src="https://3d26876b73d7.us-west-2.playback.live-video.net/api/video/v1/us-west-2.913157848533.channel.rkCBS9iD1eyd.m3u8" type="application/x-mpegURL"&amp;gt;
&amp;lt;/video-js&amp;gt;

&amp;lt;script src="node_modules/video.js/dist/video.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script src="node_modules/videojs-hls-quality-selector/dist/videojs-hls-quality-selector.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script type="text/javascript"&amp;gt;
    function myDoubleClickHandler(event) {
        // `this` refers to the player in this context
        this.pause();
    }
&amp;lt;/script&amp;gt;
&amp;lt;script type="module"&amp;gt;
    var player = videojs('my-video', {
        autoplay: 'muted',
        techOrder: ['html5'], // Force non-native HLS playback
        enableSmoothSeeking: true,
        sources: [{
            src: 'https://3d26876b73d7.us-west-2.playback.live-video.net/api/video/v1/us-west-2.913157848533.channel.rkCBS9iD1eyd.m3u8',
        }],
        // playbackRates: [0.5, 1, 1.5, 2],


        // disablePictureInPicture: true,
        enableSmoothSeeking: true,
        liveui: true,

        userActions: {
            // click: false,
            doubleClick: myDoubleClickHandler,
            hotkeys: function(event) {
                if (event.which === 32) {
                    if (this.paused()) {
                        this.play();
                    } else {
                        this.pause();
                    }
                }
            },
            // controlBar: {
            //     skipButtons: {
            //       forward: 5,
            //       backward: 10
            //     }
            // },

        },
    });
    (function (window, videojs) {
      // var examplePlayer = window.examplePlayer = videojs('my-video');
      var hlsQualitySelector = window.hlsQualitySelector = player.hlsQualitySelector({
        displayCurrentQuality: false,
      });
    }(window, window.videojs));
&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>video</category>
      <category>videojs</category>
      <category>laravel</category>
      <category>iphone</category>
    </item>
  </channel>
</rss>
