How can you play MPEG-2 Transport Stream (.ts) video files in a WebGL Unity build?

I’m trying to play an HLS live-stream within my Unity app.

I could write a script for fetching the short .ts video segments and enqueuing them, but I don’t know how I can actually play them inside Unity: its built-in video player doesn’t support .ts files, and going by their descriptions, the plug-ins I was able to find on the Asset Store that can play them only do so on native, not web, builds. I’d be happy to be proven wrong on this, though.

I considered simply displaying the video in an HTML player and somehow projecting it onto the surface. Whether or not HTML/CSS allows that kind of fine manipulation of the video player is up in the air.

Alternatively, I could try converting the videos to a playable format on the fly. That might work if it’s not too slow — it’d just add a few seconds of latency to the live-stream — but the question is how I’m going to do that from a WebGL build. Could I package something like ffmpeg with the build?

Or maybe I can write my own player. The problem is, I don’t even know where to start. Most of my searches have turned up only very low-level descriptions of the MPEG-2 Transport Stream protocol and nothing on how to actually play them.

public transport – The best way to travel between Milton Keynes and Cambridge, England

Short answer: no, there doesn’t appear to be a faster route.

The main bus route from Milton Keynes to Cambridge is the X5 followed by the 905, operated by Stagecoach. Until recently this was a single bus route, the X5, but it seems this no longer runs the full route.

Google Maps puts this journey at around 2h30, including a 30-minute connection in Bedford. That’s slower than the train (1h40) but probably a lot cheaper.

Neither of the two main intercity bus operators, Megabus and National Express, seem to operate this route directly. National Express suggest a 5h connecting itinerary, while Megabus don’t seem to serve Milton Keynes at all.

Some time in the future, the East West Rail project may lead to faster trains on this route, but as of 2021 that’s nowhere close to completion.

SparkPost Mail Transport | NulledTeam UnderGround

Adds a SparkPost mail transport option to have all mails sent via your SparkPost account.

This addon has full bounced email and unsubscribed email handling support using the SparkPost Events API – no mailbox required.
View attachment 27178


If you haven’t already done so, you will need to configure a sending domain for your forum in your SparkPost account. It is highly recommended that you also set up a default bounce…


europe – Hola Barcelona public transport card bought online

According to the purchasing site for Hola Barcelona, when you purchase the card online, you will be emailed a voucher code which you can use to retrieve the travel card itself at any metro station. They also offer a video about the process if that is interesting for you.

According to the same site, the card is valid for 72 hours (or your choice of other duration) from “first validation”, so, yes, the first time you use it.

public transport – Can bikes be carried on buses in Mallorca?

There are two main providers of public bus services on Mallorca

EMT who provide the city bus routes in Palma.

And, as the question poser highlights, TIB which is the authority that provides bus services across the island.

In the city ‘officially’ EMT will only allow buses on board if they are the folding type

However I have seen people on buses with a bike in the wheelchair space. I guess they would be asked to get off if a wheelchair user needed the spot.

Bus services provided by TIB are actually operated by a number of different companies under licence or contract. And as such means that the are a great number of different bus types. Most of which don’t have a dedicated bike rack or luggage space.

On longer routes such as the ones from Palma to the North and east of the island the service is operated by larger Coach / National Express / Greyhound Type vehicles which have a luggage boot/trunk underneath. I have seen bikes being placed in this space, but there is no means of securing the bikes, so there is a danger of them sliding around. The placing of any luggage / bikes in the storage space is at the discretion of the driver.

In short. City / local buses – officially- folding bikes only

Longer distance coaches. All depends on the vehicle and available space. No specific prohibition, but most definitely at your own risk. And no guarantee that a specific or suitable vehicle will be allocated to any particular service.

Mallorca is an amazing island to cycle, and whilst not in your question, it’s worth mentioning that many car rental services do have bike boxes to rent for an additional fee on top of the car rental price.

customizer postMessage transport doesn’t update in javascript

in the absence of any significant official documentation for javascript in wordpress, namely the wp object
I am having hard time applying postMessage customizer controls (despite all the assurances in the theme developement handbook that it’s easy to do and all you need is to copy/paste the boilerplates)
the PHP part of my code works fine with refresh transport type, for the sake of example I will put a very minimalist code

add_action('customize_register',function ($wp_customize) {
                'title' => 'section'
        $wp_customize->add_setting('mysetting', array(
            'transport' => 'postMessage',
            'type' => 'theme_mod'
                'section' => 'mysection'
add_action('customize_preview_init',function () {
        wp_enqueue_script('random_name', get_template_directory_uri() . '/script.js', array('jquery', 'customize-preview'));

nothing happens when I change to postMessage transport, while my JS code is as follow:

( function( $ ) {
    wp.customize( 'mysetting', function( value ) {
        value.bind( function( to ) {
            $( '#myinput' ).val( to );
        } );
    } );    
} )( jQuery );

you can guess index.php has one line: <input id="myinput"> and I checked and made sure script.js was loaded in the page.
I am getting all the changes using: wp.customize( 'mysetting').get() in the console, but I need it to automatically update the preview as it should ! without me refreshing the screen or clicking publish.
thank you for your time.

public transport – Do you need an Access Card to travel with the SL app in Stockholm?

Two of us will only need 24 hours of public transport in Stockholm in June. We have the SL App on one of our mobiles, with which we planned to buy two x 24hour passes when needed. Do we also need physical SL Access Cards?

If not, since we will always travel together, can both of us share one mobile app at Metro stations – or will we have to use the manual gates (which are slower)?

Is the optimal transport of radially symmetric measures also radially symmetric?

Let $mu$ and $nu$ be radially symmetric probability measures on $mathbb R^d$. Consider the Kantrovich optimal transport problem between $mu$ and $nu$, with convex, nonnegative cost. Suppose there exists at least an optimal transport plan between $mu$ and $nu$ with finite cost.

Does it follow that any optimal transport plan $gamma in mathcal P (mathbb R^d times mathbb R^d)$ is radially symmetric? In the sense that $gamma$ is concentrated on the set ${(x, y) | x, y in mathbb R^d, x/|x| = y/|y| }$.

OS:Error Transport endpoint is not connected

with open(mapfile,’r’) as fp:

mp = (
    st.strip().split('  ')
    for st in fp.readlines()

fixpath = lambda x: os.path.abspath(os.path.join(data_dir,x))
mp = (
    (fixpath(x(0)), fixpath(x(1)))
    for x in mp

Is this piece of code Ok?
I’m running it on colab

differential equations – Mass Transport Model

I’ve asked similar questions before about Mathematica’s Mass Transport model. My aim is to model these systems and show how they change by manipulating various parameters.

This time it’s the following system.

enter image description here
enter image description here

The system above should yield a voltammogram like this:

enter image description here
enter image description here
enter image description here

I tried implementing the model using the following code (excluding the plotting of results).

(*Experimental Parameters*)
k1 := 0; k2 := 0 (*10^8*);
ef0AB := 0; ef0BC = -0.4; 
(Alpha)1 := 0.5; (Alpha)2 := 0.5; 
k10 := 1; k20 := 1; 
ar := 1; cAbulk := 10^-3; 
dA := 10^-5; dB = 10^-5; dC := 10^-5;
rtbyf := 25.7 10^-3(*volt*);
f := 96485.33;

ts := 1; tmax = 2 ts; (Nu) := -1; e1 := -0.3; ef0 := 0;
e(t_) := Piecewise({{e1 + (Nu) t, 
    0 <= t <= ts}, {e1 + 2 (Nu) ts - (Nu) t, ts <= t <= 2 ts}})

large = 6 Sqrt(dA tmax);

i(t_, x_) := f*ar ( D(2 dA *cA(t, x) + dB cB(t, x))) /. x -> 0

vars = {{cA(t, x), cB(t, x), cC(t, x)}, t, {x}};
pars = <|
   "DiffusionCoefficient" -> {{dA, 0, 0}, {0, dB, 0}, {0, 0, dC}},
    "MassReactionRate" -> {{Subscript(k, 2) cC(t, x), 0, 0}, {0, 
      2 Subscript(k, 1) cB(t, x), 0}, {0, 0, 
      Subscript(k, 2) cA(t, x)}},
   "MassSource" -> {{Subscript(k, 1) cB(t, x)^2}, {2 Subscript(k, 2)
        cA(t, x) cC(t, x)}, {Subscript(k, 1) cB(t, x)^2}},
   "BoundaryConditionMassFlux" ->
    <|"MassFlux" -> {D(-dB cB(t, x) - dC cC(t, x), x) , 
       D(-dA cA(t, x) - dC cC(t, x), x), 
       D(-dA cA(t, x) - dB cB(t, x), x)}|>,
   "BoundaryConditionConcentration" ->
    <|"MassConcentration" -> {cB(t, x) Exp(rtbyf^-1 (e(t) - ef0AB)), 
       cA(t, x) /Exp(rtbyf^-1 (e(t) - ef0AB)), 
       cA(t, x) /Exp(rtbyf^-1 (e(t) - ef0BC))}|>,
   "BoundaryConditionInf" -> <|"MassConcentration" -> {cAbulk, 0, 0}|>|>;

ops = MassTransportPDEComponent(vars, pars);
TableForm(%) // TraditionalForm;

ics = {cA(0, x) == cAbulk, cB(0, x) == 0, cC(0, x) == 0};
(CapitalGamma)flux = 
 MassFluxValue(x == 0, vars, pars, "BoundaryConditionMassFlux");
(CapitalGamma)cond = 
  MassConcentrationCondition(x == 0, vars, pars, 
(CapitalGamma)condinf = 
  MassConcentrationCondition(x == large, vars, pars, 

{cAfun, cBfun, cCfun} = 
  NDSolveValue({ops == (CapitalGamma)flux, (CapitalGamma)cond, 
(CapitalGamma)condinf, ics}, {cA, cB, cC}, {t, 0, tmax}, {x, 0, 
    large}, Method -> {"MethodOfLines", "TemporalVariable" -> t, 
     "SpatialDiscretization" -> {"FiniteElement", 
       "MeshOptions" -> {"MaxCellMeasure" -> large/1000}}});

I get two errors; one of which says:

NDSolveValue::fembcdepderiv: Derivatives of dependent variables in boundary conditions are not supported with the Finite Element Method in this version of NDSolve.

The other one says that the lists are not the same shape which again has me confused because NDSolveValue should return a list with three elements.

I tried to test it with a different model by removing the derivatives but then it returned similar errors with DirichletCondition. So I think I’m doing something wrong here.

Thank you to everyone in advance.