Skip to content

Commit

Permalink
Changed folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
francodriansetti committed Mar 7, 2024
1 parent ae6f449 commit cc382ef
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.viewinterop.AndroidView
import com.streamamg.VideoPlayerPlugin
import com.streamamg.player.plugin.VideoPlayerPlugin

class NativeMediaPlayerPlugin : VideoPlayerPlugin {
private var mediaPlayer: MediaPlayer? = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import androidx.compose.material3.Text
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import com.streamamg.BitmovinVideoPlayerPlugin
import com.streamamg.PlayBackSDKManager
import com.streamamg.PlayBackSDKManager.loadPlayer
import com.streamamg.VideoPlayerPluginManager
import com.streamamg.player.plugin.VideoPlayerPluginManager
import com.streamamg.playback_sdk_android_app.ui.theme.PlaybacksdkandroidTheme
import com.streamamg.player.plugin.bitmovin.BitmovinVideoPlayerPlugin

class MainActivity : ComponentActivity() {

Expand All @@ -31,7 +31,8 @@ class MainActivity : ComponentActivity() {
PlayBackSDKManager.initialize(apiKey) { _, _ -> }

// Register plugin
val customPlugin = NativeMediaPlayerPlugin()
//val customPlugin = NativeMediaPlayerPlugin()
val customPlugin = BitmovinVideoPlayerPlugin()
VideoPlayerPluginManager.registerPlugin(customPlugin)

val entryId = "0_qt9cy11s"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import PlayerInformationAPI
import PlayerInformationAPIService
import android.util.Log
import androidx.compose.runtime.Composable
import com.streamamg.playbacksdk.playbackapi.PlayBackAPI
import com.streamamg.playbacksdk.playbackapi.PlayBackAPIService
import com.streamamg.api.player.PlayBackAPI
import com.streamamg.api.player.PlayBackAPIService
import com.streamamg.player.ui.PlaybackUIView
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.streamamg.playbacksdk.playbackapi
package com.streamamg.api.player

import kotlinx.coroutines.flow.Flow

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.streamamg.playbacksdk.playbackapi
package com.streamamg.api.player

import com.streamamg.PlayBackAPIError
import com.streamamg.PlayBackSDKManager
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.streamamg.playbacksdk.playbackapi
package com.streamamg.api.player

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.streamamg
package com.streamamg.player.plugin

import android.view.View
import androidx.compose.runtime.Composable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.streamamg
package com.streamamg.player.plugin

object VideoPlayerPluginManager {
internal var selectedPlugin: VideoPlayerPlugin? = null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.streamamg
package com.streamamg.player.plugin.bitmovin

import android.view.View
import androidx.compose.foundation.layout.Box
Expand All @@ -11,6 +11,7 @@ import com.bitmovin.player.api.source.Source
import com.bitmovin.player.api.source.SourceConfig
import com.bitmovin.player.api.source.SourceType
import com.streamamg.playback_sdk_android.R
import com.streamamg.player.plugin.VideoPlayerPlugin


class BitmovinVideoPlayerPlugin : VideoPlayerPlugin {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
package com.streamamg
package com.streamamg.player.ui

import androidx.compose.runtime.Composable
import androidx.compose.foundation.layout.Box
import androidx.compose.runtime.*
import com.streamamg.PlayBackAPIError
import com.streamamg.PlayBackSDKManager
import com.streamamg.player.plugin.VideoPlayerPluginManager

internal class PlaybackUIView(
private val entryId: String,
Expand Down

0 comments on commit cc382ef

Please sign in to comment.