"shaka-player with MPEG-DASH" gives me error

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
tellu-white
Moon lover
Moon lover
Posts: 83
Joined: 2022-03-08, 22:02

"shaka-player with MPEG-DASH" gives me error

Unread post by tellu-white » 2022-03-08, 23:02

I'm subscribed to a cable television that also has online streaming. On some pages it uses "shaka-player with MPEG-DASH". Unfortunately, these videos give me the error: "player not supported ...".

Since online TV is only available to subscribers, you won't be able to check the problem on its website, so I'll give you a URL to a page that also uses "shaka-player with MPEG-DASH" and where I also get an error message:

"A clip from a classic Star Trek TNG episode, presented in MPEG-DASH"

https://shaka-player-demo.appspot.com/d ... d=compiled

Please note that all the videos that don't work in PaleMoon open without error in Google Chrome, but I don't want to use this browser, so please let me know if there is any chance to solve this problem.

Code: Select all

Before error:

<div class="video-player entry-video error-placeholder">
	<div class="video" style="width: 100% !important; max-width: 100% !important" video-init="true">
		<div class="shaka-video-container" data-shaka-player-container="">
			<video id="shkplayer" class="shaka-video" autoplay="" data-shaka-player="" style="width:100%;height:100%" src="blob:https://www.digionline.ro/4f758fa6-a126-46f3-a2f1-8319ecac869b"></video>
...

After error:

<div class="video-player entry-video error-placeholder">
	<div class="bg-red text-align-center" style="padding:20px;font-weight:700">Player error. The player is not supported</div>
</div>

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 4942
Joined: 2015-12-09, 15:45
Contact:

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by moonbat » 2022-03-09, 03:58

Follow instructions on what information to provide in the red box on top. Why tf can't you new users ever bother to read or search the forum before rushing to post and wasting everyone's time playing 20 questions? Has it ever occurred to you that you save your own time as well by searching the forum and finding something has already been asked before (not in this case, agreed) and by providing required information upfront? :evil:

And you are supposed to show error output from the web console, not the source code of the webpage as you have shared, JFC :roll:

If you had bothered to follow instructions, you would find that MPEG-DASH isn't supported.

Code: Select all

Cannot play media. No decoders for requested formats: application/dash+xml
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Kris_88 » 2022-03-09, 06:32

tellu-white wrote:
2022-03-08, 23:02
so I'll give you a URL to a page that also uses "shaka-player with MPEG-DASH" and where I also get an error message:
Works for me.
Untitled.png

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Moonchild » 2022-03-09, 12:16

moonbat wrote:
2022-03-09, 03:58
If you had bothered to follow instructions, you would find that MPEG-DASH isn't supported.
Calm down, Moonbat.

MPEG-DASH is actually supported as it's part of Media Source Extensions which we do fully support (and have supported for a few years), but I'm not sure if it tries to use EME (Encrypted Media Extensions, i.e. in-browser DRM) or not, as that is indeed not supported, but that has nothing to do with DASH (which is a method of adapting bitrate based on available bandwidth).

One potential problem would actually be with the fact that it is, in fact, a Google player and will target Chrome, so if there are weird interop issues, i am not entirely surprised.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by coffeebreak » 2022-03-09, 21:52

tellu-white wrote:
2022-03-08, 23:02
I'll give you a URL to a page that also uses "shaka-player with MPEG-DASH" and where I also get an error message
Kris_88 wrote:
2022-03-09, 06:32
Works for me.
Doesn't work here.
Player loads but won't play, when clicked nothing happens.
Tried Compat / Native modes, and a few mainstream UA overrides to no effect (Win7 x86, PM 29.4.4, fresh profile).
shaka.png

Code: Select all

ERROR CONSOLE:

Error: lab.streamshark.io:10433 uses an invalid security certificate.

The certificate expired on Sunday, December 19, 2021 9:42 PM. The current time is Wednesday, March 09, 2022 4:24 PM.

(Error code: SEC_ERROR_EXPIRED_CERTIFICATE)
----------------------------------------------------------------------

WEB CONSOLE (many repeats):

GET 
XHR 
https://shaka-player-demo.appspot.com/demo/locales/en-US.json [HTTP/2.0 404 Not Found 47ms]

EmeEncryptionSchemePolyfill: EME not found  
shaka-player.ui.js:903:366

McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support.  
shaka-player.ui.js:908:155

GET 
XHR 
https://shaka-player-demo.appspot.com/demo/locales/en-US.json [HTTP/2.0 404 Not Found 51ms]
Unable to load locale en-US for url ../demo/locales/en-US.json  
demo.compiled.js:314:1

GET 
XHR 
https://shaka-player-demo.appspot.com/demo/locales/en-US.json [HTTP/2.0 404 Not Found 51ms]
DOMException [NotSupportedError: "Operation is not supported"
code: 9
nsresult: 0x80530009
location: https://shaka-player-demo.appspot.com/dist/shaka-player.ui.js:262]  
demo.compiled.js:346:237

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Kris_88 » 2022-03-09, 22:27

Now I tried a new profile. Video still works.
Yes, there is a message in the console, and it was before, but it does not interfere.

Code: Select all

Error: lab.streamshark.io:10433 uses an invalid security certificate.
...
(Error code: SEC_ERROR_EXPIRED_CERTIFICATE)

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by coffeebreak » 2022-03-09, 22:32

Kris_88 wrote:
2022-03-09, 22:27
Video still works.
Any thoughts about what allows it to play on your end but not mine (or OP's) ?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Moonchild » 2022-03-09, 22:45

FTR it doesn't want to play for me either at the moment.
All I know it that I get a red bar with "operation is not supported" and when I click it, it forwards me to a page with details complaining about "storage".
Potentially there's a difference in local storage settings?
Attachments
FireShot Pro Screen Capture #326 - 'JSDoc_ Class_ shaka_util_Error' - shaka-player-demo_appspot_com_docs_api_shaka_util_Error_html#value_9.png
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Kris_88 » 2022-03-09, 23:00

Try playing these files directly. These streams should be played normally in the browser.

https://storage.googleapis.com/shaka-de ... M_h264.mp4
https://storage.googleapis.com/shaka-de ... _opus.webm

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Moonchild » 2022-03-09, 23:04

Kris_88 wrote:
2022-03-09, 23:00
Try playing these files directly.
Pointless. The issue is that MSE-DASH doesn't seem to be working in this particular player/this version of the player (I know it worked better before). MSE uses chunked source delivery and never direct file streaming.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Kris_88 » 2022-03-09, 23:34

Yes, in fact, the player requests data by chunks.
Well...

http://demo.theoplayer.com/test-for-ll-dash
Does it work for you?
Untitled.png

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by coffeebreak » 2022-03-09, 23:56

Kris_88 wrote:
2022-03-09, 23:34
Does it work for you?
Yes, theoplayer demo works for me.

Does knowing this help you understand better why mpeg-dash works for you in the shaka player but not for some of us others?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35474
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Moonchild » 2022-03-10, 02:00

Confirmed, the MPEG-DASH stream as delivered by Theo player works fine for me also. Needless to say Youtube also uses DASH and that works as well. So to me that sounds like a bug in shaka player, but i'm sure Google will disagree because "works on Chrome"
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Kris_88 » 2022-03-10, 07:25

coffeebreak wrote:
2022-03-09, 23:56
Does knowing this help you understand better why mpeg-dash works for you in the shaka player but not for some of us others?
Yes it is, thank you.
Moonchild wrote:
2022-03-10, 02:00
So to me that sounds like a bug in shaka player, but i'm sure Google will disagree because "works on Chrome"
Still, it is interesting what is the reason...
I outstretched the player from the example page and learned it a bit. It works from the local file.
Some useful messages can be found in the browser console.

And it does NOT work when "Enable MSE for WebM" and "Media formats, Enable: WebM " both are checked.
Attachments
shaka-player.zip
(158.33 KiB) Downloaded 11 times
settings.jpg

User avatar
smithy
Moon lover
Moon lover
Posts: 76
Joined: 2020-07-02, 11:44

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by smithy » 2022-03-10, 08:06

Following Kris's post above I tried unchecking webm, and the video plays.
Didn't touch anything else.
Screenshot_2022-03-10_08-03-41.png
It is common to think of our own time as standing at the apex of civilisation from which the deficiencies of preceding ages may patronisingly be viewed in the light of what is assumed to be progress. The reality is that in the long perspective of history the present century will not hold an enviable position unless the second half is to redeem its first.

Chief US prosecutor Robert Jackson's closing statement - Nurenburg 1946

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by coffeebreak » 2022-03-10, 08:20

Kris_88 wrote:
2022-03-10, 07:25
And it does NOT work when "Enable MSE for WebM" and "Media formats, Enable: WebM " both are checked.
It seems, at least for me, that "Media formats: WebM" needs to be disabled. Period.
(regardless if "MSE for WebM" was enabled or not.) When that's unchecked, the video plays.
But doing the reverse doesn't help.

Many thanks for the insight, Kris_88.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Kris_88 » 2022-03-10, 08:41

coffeebreak wrote:
2022-03-10, 08:20
But doing the reverse doesn't help.
The reverse also works for me.
Apparently, there is some point that we miss...
Untitled.png
coffeebreak wrote:
2022-03-10, 08:20
Many thanks for the insight, Kris_88.
Don't mention it...

coffeebreak
Moon Magic practitioner
Moon Magic practitioner
Posts: 2986
Joined: 2015-09-26, 04:51
Location: U.S.

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by coffeebreak » 2022-03-10, 14:16

Kris_88 wrote:
2022-03-10, 08:41
The reverse also works for me.
Apparently, there is some point that we miss...
If you have any thoughts, It would still be good to know what that is --
To know what specifically in your setup allows Mpeg-dash to work in Shaka player without disabling "Media formats: WebM".

Because that "reverse" that "also works for [you]" is Pale Moon's DEFAULT configuration
(which you don't need to change but others do).
Out-of-the-box with the new profiles that we both used, "Media formats: WebM" is enabled (checked) but "MSE for WebM video" is disabled (UNchecked):
UI. Media defaults:
media-defaults.png
WebM defaults:
webm-defaults.png

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Kris_88 » 2022-03-10, 21:13

The player may not work, because in some cases "MSE for WebM Video" may be turned on implicitly forcibly.
See IsWebMForced() - definition and usage.
As a result, the player believes that the .webm has a video stream and tries to play it. But in fact there is no video stream, there is only audio.

MediaSource.cpp

Code: Select all

// Returns true if we should enable MSE webm regardless of preferences.
// 1. If MP4/H264 isn't supported:
//   * N/KN editions (Europe and Korea) of Windows 7/8/8.1/10 without the
//     optional "Windows Media Feature Pack"
// 2. If H264 hardware acceleration is not available.
// 3. The CPU is considered to be fast enough
static bool
IsWebMForced(DecoderDoctorDiagnostics* aDiagnostics)
{
  bool mp4supported =
    DecoderTraits::IsMP4TypeAndEnabled(NS_LITERAL_CSTRING("video/mp4"),
                                       aDiagnostics);
  bool hwsupported = gfx::gfxVars::CanUseHardwareVideoDecoding();
#ifdef MOZ_WIDGET_ANDROID
  return !mp4supported || !hwsupported || VP9Benchmark::IsVP9DecodeFast() ||
         java::HardwareCodecCapabilityUtils::HasHWVP9();
#else
  return !mp4supported || !hwsupported || VP9Benchmark::IsVP9DecodeFast();
#endif
}

Code: Select all

nsresult
MediaSource::IsTypeSupported(const nsAString& aType, DecoderDoctorDiagnostics* aDiagnostics)
{
  if (aType.IsEmpty()) {
    return NS_ERROR_DOM_TYPE_ERR;
  }

  MediaContentType contentType{aType};
  if (!contentType.IsValid()) {
    return NS_ERROR_DOM_TYPE_ERR;
  }

  if (DecoderTraits::CanHandleContentType(contentType, aDiagnostics)
      == CANPLAY_NO) {
    return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
  }

  // Now we know that this media type could be played.
  // MediaSource imposes extra restrictions, and some prefs.
  const nsACString& mimeType = contentType.GetMIMEType();
  if (mimeType.EqualsASCII("video/mp4") || mimeType.EqualsASCII("audio/mp4")) {
    if (!Preferences::GetBool("media.mediasource.mp4.enabled", false)) {
      return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
    }
    return NS_OK;
  }
  if (mimeType.EqualsASCII("video/webm") ||
      mimeType.EqualsASCII("video/x-matroska")) {
    if (!(Preferences::GetBool("media.mediasource.webm.enabled", false) ||
          IsWebMForced(aDiagnostics))) {
      return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
    }
    return NS_OK;
  }
  if (mimeType.EqualsASCII("audio/webm") ||
      mimeType.EqualsASCII("audio/x-matroska")) {
    if (!(Preferences::GetBool("media.mediasource.webm.enabled", false) ||
          Preferences::GetBool("media.mediasource.webm.audio.enabled", true))) {
      return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
    }
    return NS_OK;
  }

  return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
}

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2021-01-26, 11:18

Re: "shaka-player with MPEG-DASH" gives me error

Unread post by Kris_88 » 2022-03-10, 21:58

In fact, it is a slightly strange reason for ignoring preferences: "The CPU is considered to be fast enough"...

Locked