Skip to content

Commit

Permalink
Fix coub player (#197)
Browse files Browse the repository at this point in the history
* Fix exoplayer version

* Fix streamable player

* Fix coub player
  • Loading branch information
mklkj authored Jul 20, 2020
1 parent d12919e commit 4cd8523
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import com.fasterxml.jackson.annotation.JsonProperty

@JsonIgnoreProperties(ignoreUnknown = true)
data class CoubMobileVersions(
@JsonProperty("gifv") val gifv: String,
@JsonProperty("video") val mp4: String?,
@JsonProperty("audio") val audio: List<String>
)
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import com.google.android.exoplayer2.trackselection.DefaultTrackSelector
import com.google.android.exoplayer2.upstream.DefaultBandwidthMeter
import io.github.feelfreelinux.wykopmobilny.R
import io.github.feelfreelinux.wykopmobilny.base.BaseActivity
import io.github.feelfreelinux.wykopmobilny.utils.FileUtils
import io.github.feelfreelinux.wykopmobilny.base.WykopSchedulers
import io.github.feelfreelinux.wykopmobilny.models.pojo.apiv2.embed.Coub
import io.github.feelfreelinux.wykopmobilny.ui.modules.NewNavigatorApi
Expand Down Expand Up @@ -125,7 +124,7 @@ class EmbedViewActivity : BaseActivity(), EmbedView {
}

override fun playCoub(coub: Coub) {
val coubUrl = decodeCoubUrl(coub.fileVersions.mobile.gifv)
val coubUrl = coub.fileVersions.mobile.mp4
presenter.mp4Url = coubUrl!!
prepareVideoView()
val videoSource = MediaSourceProvider().generate(this, Handler(Looper.getMainLooper()), Uri.parse(coubUrl!!), null)
Expand Down

0 comments on commit 4cd8523

Please sign in to comment.