Skip to content

Commit

Permalink
fix(typo): StreamType.LIVE_STREAM typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dungngminh committed Dec 24, 2024
1 parent 38e472d commit b95bb09
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.mparticle.media.events

object StreamType {
const val LIVE_STEAM = "LiveStream"
const val LIVE_STREAM = "LiveStream"
const val ON_DEMAND = "OnDemand"
const val LINEAR = "Linear"
const val PODCAST = "Podcast"
Expand Down
4 changes: 1 addition & 3 deletions media/src/test/java/com/mparticle/APISampleJava.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import org.junit.Before;
import org.junit.Test;

import java.util.HashMap;

import kotlin.Unit;
import kotlin.jvm.functions.Function1;

Expand All @@ -23,7 +21,7 @@ public void before() {
.title("Media Title ")
.mediaContentId("abc123")
.contentType(ContentType.AUDIO)
.streamType(StreamType.LIVE_STEAM)
.streamType(StreamType.LIVE_STREAM)
.build();
}

Expand Down
2 changes: 1 addition & 1 deletion media/src/test/java/com/mparticle/APISampleKotlin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class APISampleKotlin {
title = "Media Title"
mediaContentId = "123"
duration = 1000
streamType = StreamType.LIVE_STEAM
streamType = StreamType.LIVE_STREAM
contentType = ContentType.VIDEO

logMediaEvents = false
Expand Down
17 changes: 8 additions & 9 deletions media/src/test/java/com/mparticle/MediaSessionTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package com.mparticle
import com.mparticle.media.MediaSession
import com.mparticle.media.events.*
import com.mparticle.testutils.RandomUtils
import com.mparticle.testutils.TestingUtils
import junit.framework.Assert.*
import org.junit.Test
import java.lang.reflect.Method
Expand All @@ -23,7 +22,7 @@ class MediaSessionTest {
title = "hello"
mediaContentId ="123"
duration =1000
streamType = StreamType.LIVE_STEAM
streamType = StreamType.LIVE_STREAM
contentType = ContentType.VIDEO

logMediaEvents = random.nextBoolean()
Expand All @@ -50,7 +49,7 @@ class MediaSessionTest {
title = "hello"
mediaContentId ="123"
duration =1000
streamType = StreamType.LIVE_STEAM
streamType = StreamType.LIVE_STREAM
contentType = ContentType.VIDEO

logMediaEvents = false
Expand All @@ -74,7 +73,7 @@ class MediaSessionTest {
title = "hello"
mediaContentId ="123"
duration =1000
streamType = StreamType.LIVE_STEAM
streamType = StreamType.LIVE_STREAM
contentType = ContentType.VIDEO

logMediaEvents = true
Expand All @@ -96,7 +95,7 @@ class MediaSessionTest {
title = "hello"
mediaContentId = "123"
duration = 1000
streamType = StreamType.LIVE_STEAM
streamType = StreamType.LIVE_STREAM
contentType = ContentType.VIDEO
}

Expand Down Expand Up @@ -125,7 +124,7 @@ class MediaSessionTest {
title = "hello"
mediaContentId = "123"
duration = 1000
streamType = StreamType.LIVE_STEAM
streamType = StreamType.LIVE_STREAM
contentType = ContentType.VIDEO
}

Expand Down Expand Up @@ -164,7 +163,7 @@ class MediaSessionTest {
title = "hello"
mediaContentId ="123"
duration =1000
streamType = StreamType.LIVE_STEAM
streamType = StreamType.LIVE_STREAM
contentType = ContentType.VIDEO

logMediaEvents = false
Expand Down Expand Up @@ -281,7 +280,7 @@ class MediaSessionTest {
title = "hello"
mediaContentId ="123"
duration =1000
streamType = StreamType.LIVE_STEAM
streamType = StreamType.LIVE_STREAM
contentType = ContentType.VIDEO

logMediaEvents = random.nextBoolean()
Expand Down Expand Up @@ -348,7 +347,7 @@ class MediaSessionTest {
title = "hello"
mediaContentId ="123"
duration =1000
streamType = StreamType.LIVE_STEAM
streamType = StreamType.LIVE_STREAM
contentType = ContentType.VIDEO

logMediaEvents = random.nextBoolean()
Expand Down

0 comments on commit b95bb09

Please sign in to comment.