Windows phone 7 - 用于视频播放的tapjoy问题 [英] Windows phone 7 - tapjoy issue with video playing

查看:72
本文介绍了Windows phone 7 - 用于视频播放的tapjoy问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



< span style ="color:#000000"> 我有一个使用Silverlight构建的Windows手机游戏。在这个游戏中,我想添加TapJoy。我已经下载了他们最新的SDK并按照他们的步骤
在我的应用程序中对其进行了调查。



在游戏中,我使用silverlight作为主要框架工作,使用Global Media Element来播放连续的背景音乐。我使用


(Microsoft.Xna.Framework.Media)(Microsoft.Xna.Framework)命名空间。


使用它们,我使用以下方法播放连续的背景声音。


< p style ="margin-bottom:0in"> DispatcherTimer和FrameworkDispatcher.Update



现在,当我点击"欢乐"按钮打开他们的优惠时,他们加载正常;但是,当我在优惠中打开视频时,他们会向我们显示以下错误"无法播放视频
,请再试一次。"



基于一些研究和研究,我尝试了一些事情,发现,


a)我需要设置Media Element和DispatcherTimer为null。


b)应用程序在后台发送(停用),然后我再次打开(激活),视频正常。我查看并发现Media Element
和DispatcherTimer被正确设置为空。



但是如果我只跟踪第一步,并且不在后台发送应用程序,则media元素和dispatcherTimer不会设置为null。


< p style ="margin-bottom:0in">


< span style ="font-size:medium">任何人都可以帮助我并按照我的回答



a)我是否正在做任何事情?


b)我可以做任何事情,以便在点击j时单击oy按钮,我的应用程序将自动发送到后台,因为这可以解决问题。


c)将值设置为null后我使用gc.collect()但仍然是没有被摧毁。



提前致谢,


David Jacob。

解决方案

您好 大卫,


您可以考虑将其发布在遵循更合适的论坛以获得更有效的回应。谢谢!


wp7: http://forums.create .msdn.com /论坛/ Default.aspx的?的GroupID = 19个


Hi,

I am having one Windows phone game, built using Silverlight. In this game, I want to add TapJoy. I have downloaded their latest SDK and follow all their steps to intigrate the it within my app.

In the game, I am using silverlight as a main frame work and Global Media Element to play contious Background Music. I am using

(Microsoft.Xna.Framework.Media) (Microsoft.Xna.Framework) namespace.

Using them, I use following methods to play contious background sound.

DispatcherTimer and FrameworkDispatcher.Update

Now, when I click tap joy button to open their offers, they load fine; however, when I open the video within the offer, they show us following error "Video cannot be played, please try again."

Based on some research and study, I tried few things and found that,

a) I need to set Media Element and DispatcherTimer is to null.

b) The application is sent in background (deactivated) and then I open it again (activated), the video is coming fine. I checked and found that Media Element and DispatcherTimer were set to null properly.

But if I follow step one only, and do not send the app in background, the media element and dispatcherTimer are not set to null.

Can anyone please help me and answer me following

a) Am I doing anythign wroing with this?

b) Can I do anything so that when tap joy button is clicked, my application is sent to background automatically since this can solve the issue.

c) I am using gc.collect() after setting value to null but still it is not getting destroyed.

Thanks in advance,

David Jacob.

解决方案

Hi David,

You can consider posting it at the following more appropriate forum for more efficient responses. Thanks!

wp7: http://forums.create.msdn.com/forums/default.aspx?GroupID=19


这篇关于Windows phone 7 - 用于视频播放的tapjoy问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆