Skip to content

Commit

Permalink
Updates docs/test to reflect the fact that the size of div.rmp-contai…
Browse files Browse the repository at this point in the history
…ner element needs to be explicitly set
  • Loading branch information
radiantmediaplayer committed Jun 26, 2024
1 parent c7bf058 commit 45ac20b
Show file tree
Hide file tree
Showing 55 changed files with 561 additions and 85 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@ You must use rmp-vast in a well-formed HTML document. This means a web-page with
Do NOT rename CSS classes or alter this HTML layout. The HTML5 video tag used for content must use the src property on the HTML5 video (e.g. do not use <source> tag).
- We need to explicitly set the size of div.rmp-container element, for example with CSS we could add to our page:
```html
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>
```
- Init the library with JavaScript:
```javascript
Expand Down
13 changes: 11 additions & 2 deletions test/spec/InlineLinearSpec/IABVAST3Spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback controls disablePictureInPicture>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback controls disablePictureInPicture>
</video>
</div>
</div>
Expand Down
13 changes: 11 additions & 2 deletions test/spec/InlineLinearSpec/ImaInlineLinearSpec.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback controls disablePictureInPicture>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback controls disablePictureInPicture>
</video>
</div>
</div>
Expand Down
13 changes: 11 additions & 2 deletions test/spec/InlineLinearSpec/SkippableSpec.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback controls disablePictureInPicture>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback controls disablePictureInPicture>
</video>
</div>
</div>
Expand Down
13 changes: 11 additions & 2 deletions test/spec/adPodSpec/AdPodAllWrappers.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback disablePictureInPicture>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback disablePictureInPicture>
</video>
</div>
</div>
Expand Down
13 changes: 11 additions & 2 deletions test/spec/adPodSpec/AdPodErrorCreativeOnSecondAd.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback disablePictureInPicture>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback disablePictureInPicture>
</video>
</div>
</div>
Expand Down
13 changes: 11 additions & 2 deletions test/spec/adPodSpec/AdPodNoStandaloneSpec.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline muted disableRemotePlayback disablePictureInPicture>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline muted
disableRemotePlayback disablePictureInPicture>
</video>
</div>
</div>
Expand Down
13 changes: 11 additions & 2 deletions test/spec/adPodSpec/AdPodWithStandaloneSpec.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback disablePictureInPicture>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback disablePictureInPicture>
</video>
</div>
</div>
Expand Down
13 changes: 11 additions & 2 deletions test/spec/apiSpec/ThreeConsecutiveWithErrorLinearSpec.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback disablePictureInPicture></video>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback disablePictureInPicture></video>
</div>
</div>
<p id="result"></p>
Expand Down
10 changes: 9 additions & 1 deletion test/spec/apiSpec/methods.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,19 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
Expand Down
13 changes: 11 additions & 2 deletions test/spec/apiSpec/pre-mid-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback disablePictureInPicture></video>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback disablePictureInPicture></video>
</div>
</div>
<p id="result"></p>
Expand Down
14 changes: 12 additions & 2 deletions test/spec/apiSpec/stopAds-hls.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,28 @@
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<script src="../../../externals/hls/hls.min.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- hls.js -->
<script src="../../../externals/hls/hls.min.js"></script>
<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback disablePictureInPicture></video>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback disablePictureInPicture></video>
</div>
</div>
<p id="result"></p>
Expand Down
13 changes: 11 additions & 2 deletions test/spec/companionSpec/companion-html.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback disablePictureInPicture>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback disablePictureInPicture>
</video>
</div>
</div>
Expand Down
13 changes: 11 additions & 2 deletions test/spec/companionSpec/companion-iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,26 @@
<script src="../../lib/jasmine-5.1.2/jasmine-html.js"></script>
<script src="../../lib/jasmine-5.1.2/boot0.js"></script>
<script src="../../lib/jasmine-5.1.2/boot1.js"></script>
<link rel="stylesheet" href="../../../app/css/app.css">

<!-- rmp-vast -->
<script src="../../../dist/rmp-vast.min.js"></script>

<!-- We need to explicitly set the size of div.rmp-container element -->
<style>
.rmp-container {
width: 960px;
height: 540px;
margin: auto;
}
</style>

</head>

<body>
<div class="rmp-container" id="rmp">
<div class="rmp-content">
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline disableRemotePlayback disablePictureInPicture>
<video class="rmp-video" src="https://www.rmp-streaming.com/media/big-buck-bunny-360p.mp4" playsinline
disableRemotePlayback disablePictureInPicture>
</video>
</div>
</div>
Expand Down
Loading

0 comments on commit 45ac20b

Please sign in to comment.