• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Change audiotrack in multilanguage video on Chromecast

Foliovision › Forums › FV Player › Troubleshooting › Change audiotrack in multilanguage video on Chromecast

  • Gus E. 4 years, 4 months ago

    Hello! I’m having issues playing hls streams on chromecast. After some testing seems that is a problem with the mime types. I’ll follow your document for fix it but, my question is: is possible to change audio track and subtitles on chromecast? This stream works fine with FV Player and Chromecast but I’m not been able to change tracks…
    https://d2zihajmogu5jn.cloudfront.net/bipbop-advanced/bipbop_16x9_variant.m3u8
    Thanks for your help!

Viewing 22 replies - 1 through 22 (of 22 total)
  • Chiara Rendekova 4 years ago
    Avatar photo

    Hi Gus,

    Thank you for reporting the issue.

    We tested the Chromecast with your stream in the latest version of Chrome – 87.0.4280.141 on Android 10, and we were able to reproduce the issue. The subtitles were synchronized with the video which played on the source device, but they didn’t show up on the screen to which the video was casted.

    Could you please let us know on which device and browser you have experienced the issue? I’ll forward it to our development team to see what we can do about it.

    Thanks,
    Chiara

    Gus E. 4 years ago

    Hi Chiara, thanks for answering me! I’ve tested in a Chromecast v1 reciever and in a Sony Bravia Smart TV with build in Chromecast. Is sent from a Chrome browser version 87.0.4280.141. I’m not able to change audio track. I’ve been researching on this topic for a while and seems that Flowplayer doesn’t support these features so FV Player neither…

    If I’m in the right path is needed a Google Cast Sender App wich is the responsible of sending the active track into the reciever. I’m afraid that this issue wont be fixed by your team. Hope I’m wrong. Anyway I’m following Google Chromecast SDK examples trying to figure out if is possible some kind of easy fix.

    Martin 4 years ago

    Hello Gus,

    I see the LoadRequest has a a way of obtianing the activeTrackIds: https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.LoadRequest#activeTrackIds So I would guess there is indeed a way of switching from one audio track to another.

    I was able to find some code examples for subtitles, although these are 3-4 years old. But this bit of code looks good: https://gist.github.com/guerrerocarlos/3aca64069853d8d24a83b481246f23ca#file-chromecast_with_subtitles-html-L45-L57

    Thanks,
    Martin

    Gus E. 4 years ago

    Thank you so much Martin! I’m gonna take a look.

    Martin 4 years ago

    Hello Gus,

    I should be able to improve the FV Player Chromecast code next week.

    What always puts me off when working with Chromecast is that there are some HLS streams which fail to cast with it for no apparent reason. For example https://playertest.longtailvideo.com/adaptive/bipbop/bipbop.m3u8 won’t work even when using JW Player: https://foliovision.com/support/fv-wordpress-flowplayer/bug-reports/detailederrorcode-315-on-casting-to-chromecast#post-126516

    Thanks,
    Martin

    Gus E. 4 years ago

    Hello Martin, I’ve just seen this answer. If you can fix it would be great.
    For us having the option of changing the subtitles and language track is crucial. Almost all of our movies have 2 or 3 audio tracks and subtitles too.
    I’ve been researching a little bit on how it can be done and seems that by adding an eventListener to the “fp-selected” class and sending the data-audio attribute through your Sender app is the way.
    I’ve found a working example on the google CACToolv2 source code that may help you:
    https://casttool.appspot.com/cactool/
    If you look for this line in the source code you can find a working example:
    document.getElementById(‘alternate-audio-button’).addEventListener(“click”, ()=>{…

    Would be great if this is fixed!! Thank you so much.

    Gus E. 4 years ago

    Sorry I mean improve, not fix, there’s nothing broken. :)

    Gus E. 4 years ago

    Hello,
    I’ve created an hls stream that is able to cast on Chromecast but only works on one of my sites that has FV Player version 7.4.37.727. The same one is not working on other site with version 7.4.38.727.
    This is the stream:
    https://dusqglx8g3hsd.cloudfront.net/test_multia_audio_renditions_3/master.m3u8.
    Both were using FV Player Pro 7.4.38.727.beta.
    Now I’ve updated FV Player Pro into 7.4.39.727.beta in the site that was not working and I can’t see the Chromecast icon anymore…

    Martin 4 years ago

    Hello Gus,

    please post a link to your website where we can see that video playing.

    Do you get the Chromecast icon on https://foliovision.com ?

    Thanks,
    Martin

    Gus E. 4 years ago

    Is weird because the same stream on another cloudfront distribution does not work on Chromecast but if I try it on other test players is still working…
    This is the other Cloudfront stream:
    https://d1xudlldmrufp1.cloudfront.net/test_multia_audio_renditions_3/master.m3u8

    Gus E. 4 years ago

    Yes, I can see the Chromecast icon on your site.
    This is the working stream:
    (redacted)/2021/01/20/chromecast-test/

    Martin 4 years ago

    Hello Gus,

    I see the issue with Chromecast not working in FV Player Pro 7.4.39.727. The issue is actually that FV Player 7.4.39.727 is not out yet as I dropped the ball there as I was waiting on some feedback. Sorry about that, will release that FV Player 7.4.39.727 next.

    Thank you for the test video, it’s great for our work on audio channel switching!

    Thanks,
    Martin

    Martin 4 years ago

    Hello Gus,

    FV Player 7.4.39.727 is out and it brings following improvements to Chromecast integration:

    • Chromecast – retain playback position when enabling/disabling
    • Chromecast – support replaying the video and playlists
    • Chromecast – support switching of audio tracks in multiple audio track HLS streams

      Thanks,
      Martin

    Gus E. 4 years ago

    Hello Martin,
    Thanks for this improvements!
    I’m still having issues casting to Chromecast. Now I get the icon but the stream won’t play. FV Player and FV Player Pro have 7.4.39.727 version.
    The same stream in FV Player 7.4.37.727 and FV Player Pro 7.4.38.727.beta is playable (the one I’ve shared with you)

    Gus E. 4 years ago

    Now works!! :D Seems was something related with Cloudfront settings. Not sure why in the other version was still working…

    Gus E. 4 years ago

    With signed-url on Cloudfront won’t play. Makes sense?

    Martin 4 years ago

    Hello Gus,

    what Cloudfront settings did you change? Did you only disable the requirement of signed URLs and that was it? Could you please post the link to your test page?

    Signed URLs should not stop Chromecast from working, but I see it could run into issues is the URL signature times out. I will test that out and feed the new URL with new singature into Chromecast when necessary. I hope it works, it’s getting quite complex that way.

    We also need to handle subtitles.

    Thanks,
    Martin

    Gus E. 4 years ago

    Hello Martin,
    What I did on Cloudfronts settings was enable/disable ipv6 but seems that has nothing to do.
    This is my test page with the last version of FV Player and FV Player Pro:
    https://play.adso.tv/movie/test-chromecast-fv-player/
    It has Cloudfront signed url enabled. I’m not able to cast. The player gets hanged and sometimes crashes the browser.
    Thanks,
    Gus

    Martin 4 years ago

    Hello Gus,

    I’m running into the same issue on https://foliovision.com/player/demos/hls-stream – if the CDN hosting the HLS stream is set to require the URL tokens, then we serve the stream through our Stream Loader component of FV Player.

    And unfortunately it seems like Chromecast doesn’t like it. It seems that it has a problem with the absolute paths in HLS m3u8 files. If that’s true then it’s a problem as we won’t be able to support playback of these HLS streams with URL token on Chromecast unless the CDN supports it natively (generate m3u8 files with URL tokens for video segment files).

    I will test some other stream with the absolute URLs as I haven’t found any documentation regarding this.

    Thanks,
    Martin

    Gus E. 4 years ago

    Hello Martin,
    If I use encrypted hls instead of Signed URL will Chromecast work? Which solution do you think is the best for securing videos and make Chromecast work at the same time?
    Thanks, Gus

    Martin 4 years ago

    Hello Gus,

    making the video available for Chromecast does decrese its security. For the Signed URLs it requires these URLs to last for longer.

    FV Player Pro encrypred videos currently do not play in Chromecast. We could add support, but it would open another channel for the decryption key.

    I was trying to figure out why Stream Loader won’t work with Chromecast. I do not have the solution yet, but at least I was able to verify that the absolute segment URLs and query strings are not the issue.

    Thanks,
    Martin

    Martin 4 years ago

    Hello Gus,

    to conclude this thread, the issue is with separate audio track HLS streams: https://foliovision.com/support/fv-wordpress-flowplayer/bug-reports/chromecast-2

    Thanks,
    Martin

Viewing 22 replies - 1 through 22 (of 22 total)
Reply To: Change audiotrack in multilanguage video on Chromecast



Please Sign in or Register to upload files.

Related Posts

  1. New Chromecast feature

  2. Using FV Player with Chromecast

  3. Video Position Saving

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!