32

I have Ubuntu 16.04 LTS installed on my PC. I have a problem playing Hotstar videos on google chrome. Version of google chrome: 51.0.2704.63 (64-bit). All other videos of youtube are playing normally in google chrome. I even tried playing the Hotstar videos on Firefox but the same problem persists. Can anyone help me with the same ?

6
  • 4
    Just a black video window displaying loading circle. Jun 2, 2016 at 6:36
  • 4
    I couldn't play hotstar videos on my linux mint too. But if you replace 'hotstar' with 'sudohotstar' in url, it will play the video in seperate host. May 4, 2017 at 12:15
  • check this out easiest way : stackoverflow.com/a/44432437/2828219
    – Anony User
    Jun 8, 2017 at 9:58
  • 1
    @AkashPinnaka It used to be easiest way. Now it does not work. The website is not reachable. Jul 9, 2017 at 10:55
  • Unfortunately it is not working. But you can use chrome extension to play hotstar video in hsplayer. Please check the link github.com/sweta20/hotstar-linux Jul 10, 2017 at 17:01

8 Answers 8

35

Couple of solutions which worked for me - As of Mar 20, 2017

Solution #1. Play directly in Firefox/Google Chrome

  1. In your browser, Open https://www.hlsplayer.net/ and select M3U8 player (if not selected already)
  2. Now we have to get the url to paste it in the input box.
    1. First, get id from video page. Say your video page is http://www.hotstar.com/sports/cricket/india-vs-australia-day-4/2001805383, id is 2001805383
    2. Open http://getcdn.hotstar.com/AVS/besc?action=GetCDN&asJson=Y&channel=TABLET&id=123&type=VOD . (Replace 123 with your actual video page id. Here it is 2001805383)
    3. In the json response, get the value of src. This is the url. Ex: It will be something like.

I like this way because it allows you to go back in video/streaming.

Note: In case if it throws some error, repeat Step 2 and get url again (every time you do step2, you get a new url)

Source: Inspired by this solution Quora

Solution #2. Play in Vlc

  1. Install the dependencies

    sudo apt-get install php7.0 livestreamer
    
  2. Clone/Download the project here

  3. Open terminal (bash), go to folder where its downloaded and run

    cd hotstarsportslivestreamer-master
    ./hotstarlivestreamer.sh
    

    (Follow the instructions provided by the script. Few tips: You can get hotstar link from browser. Write quality can be either "best" or "worst" according to your bandwidth)

Advantage: You can download the video as well

Solution #3. Play in Firefox

You can follow instructions here - HBONOW on Ubuntu 16.04LTS

Advantage: Once you do the step, videos will play seamlessly and effortlessly without performing any step for next videos.

Disclaimer: I haven't tried this solution personally though

So, upto you to pick one ;)

10
  • 2
    Solution 1 works!
    – Sarcastic
    Jan 19, 2017 at 14:06
  • #2 still works. #1 - I got CDN url now from different means but still its not working
    – mac
    Mar 9, 2017 at 15:10
  • I have installed the dependencies mentioned at #2. Please elaborate how to "And run the script from github.com/biezom/hotstarsportslivestreamer"? Mar 12, 2017 at 19:43
  • @bluepearlsky added the instructions. Hope it helps
    – mac
    Mar 14, 2017 at 6:01
  • Is there a way to choose video quality in Solution 1? It works for me but I am only getting low quality video.
    – Ankit
    Apr 8, 2017 at 7:40
9

I have the simplest and easiest solution. Just install "User-Agent Switcher for Google Chrome" from Chrome web store.

enter image description here

After Installing the extension Click on the extension...

enter image description here

Then Select the "Nexus 7 Tablet" option.

Now you are good to go guys. Hotstar will buffer the videos but always check if the extension is turned on and selected as "Nexus 7 Tablet" option.

2
  • This is perhaps the only way to get it work on linux without too much of hassle as of December 2017 Dec 3, 2017 at 9:39
  • This doesn't work either - it shows "Launch App" as the option on the video player. Dec 11, 2017 at 6:38
3

It's worth trying to install HAL from Martin Wimpress's PPA. This stands for Hardware Abstraction Layer, and is required by some Flash content protected by DRM.

Open a terminal window (Alt+Ctrl+T) and type the following commands:

sudo apt-add-repository ppa:flexiondotorg/hal-flash
sudo apt update
sudo apt install libhal1-flash
cd ~/.adobe/Flash_Player
rm -rf NativeCache AssetCache APSPrivateData2

Then restart your web browser and try playing Hotstar content again. This should work in Firefox; I'm not so sure about Chrome (since it comes with its own version of flash).

2
3

Method 1:

Step 1: Add HLS m3u8 chrome extension from chrome store and enable it. Link below:

https://chrome.google.com/webstore/detail/play-hls-m3u8/ckblfoghkjhaclegefojbgllenffajdc?hl=en

Step 2: Open Hotstar video link

http://www.hotstar.com/movies/escape-plan/1000074645/watch

Note: ID = 1000074645

Step 3: Open link below

http://getcdn.hotstar.com/AVS/besc?action=GetCDN&asJson=Y&channel=TABLET&id=123&type=VOD

Step 4: Replace url id=123 to id=ID as

http://getcdn.hotstar.com/AVS/besc?action=GetCDN&asJson=Y&channel=TABLET&id=1000074645&type=VOD

Output will be:

{"errorDescription":"200","message":"200","resultCode":"OK","resultObj":{"checkCacheResult":"","height":"360","src":"https://staragvod1-vh.akamaihd.net/i/videos/movies/hindi/1000074645/1000074645_,16,180,400,800,1300,2000,_STAR.mp4.csmil/master.m3u8?subtitle_identifier=1000074645&hdnea=st=1495051740~exp=1495052340~acl=/*~hmac=e9a791981ee7b95fa74d673db688d488f1416df5403165e3608987b3a12a19c0","width":"480"},"systemTime":1495052040}

Step 5: Take "src" out of it

src = https://staragvod1-vh.akamaihd.net/i/videos/movies/hindi/1000074645/1000074645_,16,180,400,800,1300,2000,_STAR.mp4.csmil/master.m3u8?subtitle_identifier=1000074645&hdnea=st=1495051740~exp=1495052340~acl=/*~hmac=e9a791981ee7b95fa74d673db688d488f1416df5403165e3608987b3a12a19c0

Step 6: Open it in new tab. It will work fine.

Method 2:

Step 1: Open below

http://demo.jwplayer.com/developer-tools/http-stream-tester/

Step 2: Open Hotstar video link

http://www.hotstar.com/movies/escape-plan/1000074645/watch

Note: ID = 1000074645

Step 3: Open link below

http://getcdn.hotstar.com/AVS/besc?action=GetCDN&asJson=Y&channel=TABLET&id=123&type=VOD

Step 4: Replace url id=123 to id=ID as

http://getcdn.hotstar.com/AVS/besc?action=GetCDN&asJson=Y&channel=TABLET&id=1000074645&type=VOD

Output will be:

{"errorDescription":"200","message":"200","resultCode":"OK","resultObj":{"checkCacheResult":"","height":"360","src":"https://staragvod1-vh.akamaihd.net/i/videos/movies/hindi/1000074645/1000074645_,16,180,400,800,1300,2000,_STAR.mp4.csmil/master.m3u8?subtitle_identifier=1000074645&hdnea=st=1495051740~exp=1495052340~acl=/*~hmac=e9a791981ee7b95fa74d673db688d488f1416df5403165e3608987b3a12a19c0","width":"480"},"systemTime":1495052040}

Step 5: Take "src" out of it

src = https://staragvod1-vh.akamaihd.net/i/videos/movies/hindi/1000074645/1000074645_,16,180,400,800,1300,2000,_STAR.mp4.csmil/master.m3u8?subtitle_identifier=1000074645&hdnea=st=1495051740~exp=1495052340~acl=/*~hmac=e9a791981ee7b95fa74d673db688d488f1416df5403165e3608987b3a12a19c0

Step 6: Put src in File url: adding place and hit Test Stream

Note: Open everthing in different tabs

It will work definately. In case of error repeat it.

enter image description here

7
  • This is working as of 17 September 2017.
    – fireball.1
    Sep 17, 2017 at 13:14
  • Works as of Sep 28 2017.
    – tuxuday
    Sep 28, 2017 at 13:06
  • Does not work for premium videos. Oct 1, 2017 at 17:25
  • 1
    It's not a hack for premium videos. I will work only for free videos. @JyotmanSingh
    – NEHAL AMIN
    Oct 4, 2017 at 8:15
  • doesn't work now I guess
    – Suraj
    Nov 1, 2017 at 12:20
2

I was really thoughtful about being not working of hotstar, and then come to know below solution which can run hotstar videos easily on browser -

Step 1- Run http://www.hotstar.com/ on browser and reach your destination video.

Step 2- now then replace hotstar with sudohotstar in URL and press enter, your video will start running.

For example - you want to run below hotstar video
http://www.hotstar.com/sports/cricket/india-vs-australia-day-4/2001805383
put sudo in front of hotstar
http://www.sudohotstar.com/sports/cricket/india-vs-australia-day-4/2001805383

4
  • I thought It was a dumb answer made up to gain some reputation but It works. Jun 3, 2017 at 8:23
  • 1
    Not for making any reputation @SumeetDeshmukh, but to provide one spot solution. Jun 4, 2017 at 5:02
  • Yeah i understand that but who purchased 'sudohotstar.com' just to mess with hotstar :) Jun 4, 2017 at 5:09
  • 7
    Clearly doesn't work anymore. Site is unreachable Jun 17, 2017 at 8:29
2

The below solution worked for me.

  1. Install and open Google Chrome (Chromium will not work as flash is required).

  2. Go to Google Chrome webstore and install hotstar linux plugin.

    enter image description here

  3. Restart Google Chrome.

  4. Go to www.hotstar.com and play a video. It will not start playing.

  5. Click on the hotstar linux icon on the top right corner.

    enter image description here

    A new tab opens and takes to https://www.hlsplayer.net/.

  6. Click on i icon at the start of the url in the url bar. Allow flash for https://www.hlsplayer.net/.

    enter image description here

    If the video still does not start playing, close the tab and go back to www.hotstar.com. Again click on the top right icon for hotstar linux. It should start playing now.

3
  • Not working. I get Error: Message: I/O error when loading media while playing Modern Family. Oct 28, 2017 at 8:12
  • It seems like it's a premium video. The way that this approach works, I don't think it will be useful for the premium videos. Sorry. Can you check if you're able to play the free ones? I will update my answer in that case with that information.
    – Subhadip_G
    Oct 29, 2017 at 13:33
  • The plugin doesn't work for ipl matches. Just checked. Apr 7, 2018 at 14:55
1
  • Open your hotstar page in Google Chrome.
  • Press CTRL+SHIFT+I. Go to console tab.
  • Double click CDN source. A m3u8 file will be downloaded.
  • Open that m3u8 file with totem or vlc (Network setting should be right in vlc; totem use default Gnome Network setting)
    • Added benefits of this method is that you can edit m3u8 file in any text editor for reduced bandwidth if you have buffering issue.
0

Just Re-Posting in 2019 that its best to use the user agent method to get it to work on Ubuntu. Default browser is Firefox for Ubuntu. I see an answer already in this page on using the user agent.

I’m on Ubuntu 18.04.3 LTS, and use Mozilla Firefox Quantum 69.0 (64-bit).

Hooq content in hotstar do not load as they seem to see the user agent string of linux and don't load, you may get an error EXT_1 something like that, or something similar.

Apparently the hooq content on the hotstar servers need specific headers to be sent, and you will have to pretend to be a different device.

Use the Web developer tools in the browser and use responsive design mode to select Samsung Galaxy s9 and it starts playing, expand the screen as per need by dragging.

This will work most of the time.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .