web: Rename RufflePlayer.stream_swf_url to RufflePlayer.streamSwfUrl

This commit is contained in:
Nathan Adams 2020-11-15 01:44:47 +01:00 committed by Mike Welsh
parent f692ee36a5
commit 4f297948d0
4 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ export class RuffleEmbed extends RufflePlayer {
} }
const src = this.attributes.getNamedItem("src"); const src = this.attributes.getNamedItem("src");
if (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"); const src = this.attributes.getNamedItem("src");
if (src) { if (src) {
this.stream_swf_url(src.value, parameters); this.streamSwfUrl(src.value, parameters);
} }
} }
} }

View File

@ -53,7 +53,7 @@ export class RuffleObject extends RufflePlayer {
new URL(url, window.location.href).origin)); new URL(url, window.location.href).origin));
//Kick off the SWF download. //Kick off the SWF download.
this.stream_swf_url(url, parameters); this.streamSwfUrl(url, parameters);
} }
} }

View File

@ -304,7 +304,7 @@ export class RufflePlayer extends HTMLElement {
* If it's an object, every key and value must be a String. * 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. * These parameters will be merged onto any found in the query portion of the swf URL.
*/ */
async stream_swf_url( async streamSwfUrl(
url: string, url: string,
parameters: parameters:
| URLSearchParams | URLSearchParams

View File

@ -42,7 +42,7 @@ If you want to control the Ruffle player, you may use our Javascript API.
let player = ruffle.create_player(); let player = ruffle.create_player();
let container = document.getElementById("container"); let container = document.getElementById("container");
container.appendChild(player); container.appendChild(player);
player.stream_swf_url("movie.swf"); player.streamSwfUrl("movie.swf");
}); });
</script> </script>
<script src="path/to/ruffle/ruffle.js"></script> <script src="path/to/ruffle/ruffle.js"></script>