web: Rename RufflePlayer.stream_swf_url to RufflePlayer.streamSwfUrl
This commit is contained in:
parent
f692ee36a5
commit
4f297948d0
|
@ -22,7 +22,7 @@ export class RuffleEmbed extends RufflePlayer {
|
|||
}
|
||||
const src = this.attributes.getNamedItem("src");
|
||||
if (src) {
|
||||
this.stream_swf_url(src.value, parameters);
|
||||
this.streamSwfUrl(src.value, parameters);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -58,7 +58,7 @@ export class RuffleEmbed extends RufflePlayer {
|
|||
}
|
||||
const src = this.attributes.getNamedItem("src");
|
||||
if (src) {
|
||||
this.stream_swf_url(src.value, parameters);
|
||||
this.streamSwfUrl(src.value, parameters);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ export class RuffleObject extends RufflePlayer {
|
|||
new URL(url, window.location.href).origin));
|
||||
|
||||
//Kick off the SWF download.
|
||||
this.stream_swf_url(url, parameters);
|
||||
this.streamSwfUrl(url, parameters);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -304,7 +304,7 @@ export class RufflePlayer extends HTMLElement {
|
|||
* If it's an object, every key and value must be a String.
|
||||
* These parameters will be merged onto any found in the query portion of the swf URL.
|
||||
*/
|
||||
async stream_swf_url(
|
||||
async streamSwfUrl(
|
||||
url: string,
|
||||
parameters:
|
||||
| URLSearchParams
|
||||
|
|
|
@ -42,7 +42,7 @@ If you want to control the Ruffle player, you may use our Javascript API.
|
|||
let player = ruffle.create_player();
|
||||
let container = document.getElementById("container");
|
||||
container.appendChild(player);
|
||||
player.stream_swf_url("movie.swf");
|
||||
player.streamSwfUrl("movie.swf");
|
||||
});
|
||||
</script>
|
||||
<script src="path/to/ruffle/ruffle.js"></script>
|
||||
|
|
Loading…
Reference in New Issue