修改問題
This commit is contained in:
parent
1cdf065839
commit
567e403151
@ -478,6 +478,11 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
L.e("LiveAudienceActivity-------onDestroy------->");
|
L.e("LiveAudienceActivity-------onDestroy------->");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onPause() {
|
||||||
|
super.onPause();
|
||||||
|
manager.onPause();
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 点亮
|
* 点亮
|
||||||
*/
|
*/
|
||||||
@ -599,6 +604,7 @@ public class LiveAudienceActivity extends LiveActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onResume() {
|
protected void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
|
manager.onResume();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,6 +20,7 @@ import android.webkit.WebViewClient;
|
|||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
import android.widget.LinearLayout;
|
import android.widget.LinearLayout;
|
||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
import androidx.annotation.RequiresApi;
|
import androidx.annotation.RequiresApi;
|
||||||
|
|
||||||
@ -57,6 +58,7 @@ public class ZhuangBanActivity extends AbsActivity {
|
|||||||
private ValueCallback<Uri[]> mValueCallback2;
|
private ValueCallback<Uri[]> mValueCallback2;
|
||||||
private SVGAImageView svga;
|
private SVGAImageView svga;
|
||||||
private FrameLayout title;
|
private FrameLayout title;
|
||||||
|
private TextView titleView;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected int getLayoutId() {
|
protected int getLayoutId() {
|
||||||
@ -66,14 +68,22 @@ public class ZhuangBanActivity extends AbsActivity {
|
|||||||
@Override
|
@Override
|
||||||
protected void main() {
|
protected void main() {
|
||||||
String url = getIntent().getStringExtra(Constants.URL);
|
String url = getIntent().getStringExtra(Constants.URL);
|
||||||
|
String titleString = getIntent().getStringExtra("title");
|
||||||
L.e("H5---2s>" + url);
|
L.e("H5---2s>" + url);
|
||||||
LinearLayout rootView = (LinearLayout) findViewById(R.id.rootView);
|
LinearLayout rootView = (LinearLayout) findViewById(R.id.rootView);
|
||||||
mProgressBar = (ProgressBar) findViewById(R.id.progressbar);
|
mProgressBar = (ProgressBar) findViewById(R.id.progressbar);
|
||||||
svga = (SVGAImageView) findViewById(R.id.svga);
|
svga = (SVGAImageView) findViewById(R.id.svga);
|
||||||
|
titleView = (TextView) findViewById(R.id.titleView);
|
||||||
title = findViewById(R.id.ft_title);
|
title = findViewById(R.id.ft_title);
|
||||||
if (isFullWindow) {
|
if (isFullWindow) {
|
||||||
title.setVisibility(View.GONE);
|
title.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
if (getIntent().hasExtra("title") && TextUtils.isEmpty(titleString)) {
|
||||||
|
title.setVisibility(View.GONE);
|
||||||
|
} else {
|
||||||
|
title.setVisibility(View.VISIBLE);
|
||||||
|
titleView.setText(titleString);
|
||||||
|
}
|
||||||
mWebView = new WebView(mContext);
|
mWebView = new WebView(mContext);
|
||||||
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
|
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);
|
||||||
params.topMargin = DpUtil.dp2px(1);
|
params.topMargin = DpUtil.dp2px(1);
|
||||||
@ -231,6 +241,26 @@ public class ZhuangBanActivity extends AbsActivity {
|
|||||||
mContext.startActivity(intent);
|
mContext.startActivity(intent);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新跳转
|
||||||
|
*
|
||||||
|
* @param url 跳转的url
|
||||||
|
* @param title 有标题的展示标题
|
||||||
|
*/
|
||||||
|
@JavascriptInterface
|
||||||
|
public void androidClickToNewH5PageView(String url, String title) {
|
||||||
|
url = CommonAppConfig.HOST + url;
|
||||||
|
url += "?uid=" + CommonAppConfig.getInstance().getUid() + "&token="
|
||||||
|
+ CommonAppConfig.getInstance().getToken();
|
||||||
|
Log.i("tag", url);
|
||||||
|
Intent intent = new Intent(mContext, ZhuangBanActivity.class);
|
||||||
|
intent.putExtra("url", url);
|
||||||
|
intent.putExtra("isFull", false);
|
||||||
|
intent.putExtra("title", title);
|
||||||
|
mContext.startActivity(intent);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// //js调用原生
|
// //js调用原生
|
||||||
@ -339,6 +369,9 @@ public class ZhuangBanActivity extends AbsActivity {
|
|||||||
Intent intent = new Intent(context, ZhuangBanActivity.class);
|
Intent intent = new Intent(context, ZhuangBanActivity.class);
|
||||||
Log.i("tag", url);
|
Log.i("tag", url);
|
||||||
intent.putExtra(Constants.URL, url);
|
intent.putExtra(Constants.URL, url);
|
||||||
|
if (url.contains("Noble/index.html")){
|
||||||
|
intent.putExtra("title", "");
|
||||||
|
}
|
||||||
context.startActivity(intent);
|
context.startActivity(intent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,6 +214,7 @@ public class SocketRyClient {
|
|||||||
break;
|
break;
|
||||||
case Constants.SOCKET_SEND_MSG://文字消息,点亮,用户进房间,这种混乱的设计是因为服务器端逻辑就是这样设计的,客户端无法自行修改
|
case Constants.SOCKET_SEND_MSG://文字消息,点亮,用户进房间,这种混乱的设计是因为服务器端逻辑就是这样设计的,客户端无法自行修改
|
||||||
wordLightEnterRoom(map, received);
|
wordLightEnterRoom(map, received);
|
||||||
|
L.e("收到socket---> 文字消息" + socketMsg);
|
||||||
break;
|
break;
|
||||||
case Constants.SOCKET_LIGHT://飘心
|
case Constants.SOCKET_LIGHT://飘心
|
||||||
mListener.onLight();
|
mListener.onLight();
|
||||||
|
@ -376,6 +376,9 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
|||||||
// mVideoView.start();
|
// mVideoView.start();
|
||||||
}
|
}
|
||||||
mPaused = false;
|
mPaused = false;
|
||||||
|
if (mPlayer.isPlaying()==0){
|
||||||
|
mPlayer.resumeVideo();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -384,6 +387,7 @@ public class LivePlayRyViewHolder extends LiveRoomPlayViewHolder {
|
|||||||
// mVideoView.runInBackground(false);
|
// mVideoView.runInBackground(false);
|
||||||
// }
|
// }
|
||||||
// mPaused = true;
|
// mPaused = true;
|
||||||
|
mPlayer.pauseVideo();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -364,12 +364,14 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
|
if (mLivePlayViewHolder != null)
|
||||||
|
mLivePlayViewHolder.onResume();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPause() {
|
public void onPause() {
|
||||||
|
if (mLivePlayViewHolder != null)
|
||||||
|
mLivePlayViewHolder.onPause();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
android:id="@+id/ft_title"
|
android:id="@+id/ft_title"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="65dp"
|
android:layout_height="65dp"
|
||||||
android:visibility="gone"
|
android:visibility="visible"
|
||||||
android:background="@color/white"
|
android:background="@color/white"
|
||||||
android:paddingTop="19dp">
|
android:paddingTop="19dp">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user