Re: Extension help (chrome app client) flashplayer

閲覧: 94 回
最初の未読メッセージにスキップ
メッセージは削除されました
メッセージは削除されました
メッセージは削除されました

crysta...@gmail.com

未読、
2017/08/05 16:27:322017/08/05
To: Chromium-Extensions-Announce


On Saturday, August 5, 2017 at 1:23:34 PM UTC-7, crysta...@gmail.com wrote:
Hi I am working on a chrome extension where I use the js script to load up a local swf:

chrome.app.window.create('test.swf', {id: 'main',bounds: { width: 620, height: 500 } });


I end up with this screen:

And the problem with that right-click option is that the extension only has these items in the context menu:

  • reload app
  • simulate browser restart
  • inspect
  • inspect background page
and when the app is turned to a crx to install, there is no right click menu at all, so I really cant right click to enable plugin. Maybe there is some layering issue where there isn't right click focus where I need it to be, thats what I am thinking because I cannot highlight any text with my mouse either. 


If I use the script I showed you earlier to load up an html script with a webview tag, I can see swf's just fine browsing online with it, but offline I have that right click option where I cant do much so please help me get it working offline. I will send you something in paypal if you can help me fix this.


here are my files:

 background.js:

chrome.app.window.create('test.swf', { id: 'main',bounds: { width: 620, height: 500 } });

manifest.json:

{
"manifest_version": 2,
"name": "testing",
"version": "1",
"icons": {},
"app": {
"background": {
"scripts": ["background.js"]
}
},
"requirements": {
"3D": {
"features": []
}
},
"permissions": [
"contextMenus",
"storage",
"webview"
],
"offline_enabled": true
}


and test.swf which I cant attach anything at the moment because an error, so just get any swf

PhistucK

未読、
2017/08/06 12:06:272017/08/06
To: crysta...@gmail.com、Chromium-Extensions-Announce
You can search crbug.com for an existing issue and star it. If you cannot find one, file a new issue using the "New issue" link on the same page.
Please, do not add a "+1" or "Me too" or "Confirmed" (or similar) comment. It just wastes the time of Chrome engineers and sends unnecessary e-mails to all of the people who starred the issue.

You can reply with a link to the found or created issue and might get triaged (and fixed) faster.

Thank you.



PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/995ff86c-4c4e-44df-a6a1-6d654a933d96%40chromium.org.

crysta...@gmail.com

未読、
2017/08/07 2:39:432017/08/07
To: Chromium-Extensions-Announce
Hi I already resolved the issue

PhistucK

未読、
2017/08/07 8:16:572017/08/07
To: crysta...@gmail.com、Chromium-Extensions-Announce
How?


PhistucK

On Mon, Aug 7, 2017 at 9:39 AM, <crysta...@gmail.com> wrote:
Hi I already resolved the issue
--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.

crysta...@gmail.com

未読、
2017/08/07 9:02:462017/08/07
To: Chromium-Extensions-Announce
I went on https://www.google.com/ and I found a solution somewhere in there index

PhistucK

未読、
2017/08/07 10:13:252017/08/07
To: crysta...@gmail.com、Chromium-Extensions-Announce
Can you share the solution so others like you would enjoy it as well?


PhistucK

On Mon, Aug 7, 2017 at 4:02 PM, <crysta...@gmail.com> wrote:
I went on https://www.google.com/ and I found a solution somewhere in there index

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.

crysta...@gmail.com

未読、
2017/08/07 10:24:392017/08/07
To: Chromium-Extensions-Announce
If you send me $1 paypal I will share the code.
paypal email: crysta...@gmail.com

crysta...@gmail.com

未読、
2017/08/08 11:25:352017/08/08
To: Chromium-Extensions-Announce
name a folder unpacked-extension

add these files to the folder:


background.js


chrome.app.window.create('test.html', {frame: 'none',resizable: false,id: 'main', bounds: { width:screen.maxWidth, height:screen.maxHeight }});


manifest.json

{
    "manifest_version": 2,
    "name": "flash standalone",
    "description": "",
    "version": "2",
    "icons": {
      
    },
    "app": {
        "background": {
            "scripts": ["runswf.js","background.js"]
        }
    },
    "requirements": {
        "3D": {
            "features": ["css3d", "webgl"]
        }
    },
    "permissions": [
        "storage",
        "webview"
    ],
    "offline_enabled": false
}





runswf.js

var swfAsDataUri = "data:application/x-shockwave-flash;base64,Q1dTDxMPAAB4nKWWCVgT1xbHz4QECAiEAAqCOgIqoCEEUCAgBlkUFQohEddKSAZIDElMggSpdVAQi+JCgWq1iggYllpRUcRaMQoq7i1YRWjZaq1bbZ9al1reJJXUtr6+vr5J8uXOf8753bPc787VAGUJgE0ZgCMCEbaOALDKjkYBCFGKUtjciChUky6VqdjE3VTXNLVawWYyMzMzvTP9vOXKVCYrKCiI6ePL9PVlEBYMVZZMLdAwZCo311DUQIjAVEKlWKEWy2Wo/l6QLM9QT3V1fYXVpCuMWJnKWyCSJ2PeQnk6UyNQMFnePkw9hzBihysxgVqu5Mnl0tAwvRUaJRWo0tA4pTwFU6kIvECKhidMQRlocoZYKkL9A1khzD96vsbCIohfqK8PK4DhE0h8eT4BbL8ANsuXQQx8fF7z/dXyV9cYTC0QCdSCNzkHsVlTXnf+ne0rd7lInJL1t5x/s0RDmH+o5N+ubUzMX1c3PZ05ZK1Sc7GUv7ZW8bIUGJOLqeQZSiFGmLu96k5MDDtaplILZEIsOiKUELzFYhF7SlT4dF9f/0D/gIDwyAAWKywonBU5PSAoMCqQ5RseEWVI9PeuQ7QIuTAjHZOpX9FE/wPtNdch2ltKcaqYWB9voob/PeobEMZYMaV4OSaKUsrTDV1QCJQqTF+pqa5DpdKXyVBftvgNZfqvIfzJdYgm+icJ/cl1iCb/f8r0HxGosTG/1ekfL2mR0LhCFRlKqWELEgmZmBTTz6YiVinLsGOIhOwUuTJdoA4VKBRSsVCgBzI1DFWaXLg0U7AcY6Tod48Q5m+GbwyJ+WoTDEUhnDQ4OHjCwZLYIBFIEGIyDGUBDNJLTfUCGaHxxOmYCo3FMl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6j3jqHvp7rWDKn+2Ms00bHm0I4I9vRl01Spx+fVBeGobGyGVyNXFYQsPlSoVcaXhRe6NhUinKFaemqVUocYbClMS5wRsGSVP1KcCyNu+VsNz6LJAtNiEA2wbnWDcijxC7IoZNpWvPKeTxzEaf5pV2WZfLxiSdqqxoU4yZs5fLWHcgAIcT9GEGRJwxxgJTU4QQRprll+InwJNQTICXditqYxJCb4gsmEQ8g0HiQ1w0h1jhtoFCl/o9Wy4oj+IwSG0ipieDE6zVQ0wAOFBoSkGg5Ze2QazpkTsT58BGg/Bi58vLn71YQI2DIeWJ1wuHzxTZY2hG5cHon2x0T55RzY3KQPuPEl0TNfKpUblhem+NTjM2v8eotKm/YeuCnU7fNirH0roP6UjfvXQ0KtWH22+29m/YyDYqJZPaSlvPxm2/blTwH5uzWj/Zp/U0KhKLBkpryZMGilGJ42o9W1dZN2cZlYD926+3StrbSo2Ki3oju3XurPabQ8rJl04vnZ3owuVXjMrp707fdbzmV2yM+WR+b36/4/a7B4YZlchnkS8cpQfPaY0KlUq1dJyxvitkSDm+af0Yl6SP5PXGqh4n11AXJUUxux4OteKo5QCzHo85cYPDIVpNCLnn9W3Sf/WtJxHtc6nt1Bru/w13ETZF";

dataURLToBlob = function(dataURL) {
var BASE64_MARKER = ';base64,';
var parts = dataURL.split(BASE64_MARKER);
var contentType = parts[0].split(':')[1];
var raw = window.atob(parts[1]);
var rawLength = raw.length;
var uInt8Array = new Uint8Array(rawLength);
for (var i = 0; i < rawLength; ++i) {
uInt8Array[i] = raw.charCodeAt(i);
}
return new Blob([uInt8Array], {type: contentType});
};

var blobUrl = window.URL.createObjectURL( dataURLToBlob(swfAsDataUri) );
function createFlashMovie(blobUrl){
var webview = document.createElement("webview");
webview.style.width = "100%";
webview.style.height = "100%";
webview.style.opacity=0.0;
document.body.appendChild(webview);
var obj = document.createElement("object");
obj.setAttribute("type", "application/x-shockwave-flash");
obj.setAttribute("data", blobUrl); //use the object url here
webview.setAttribute("src",blobUrl);
webview.style.opacity=1.0;
}
createFlashMovie(blobUrl);


test.html


<!DOCTYPE html>
<html>
<body bgcolor="#000000" style="margin-top:0;margin-left:0;margin-right:0;margin-bottom:0;height:100vh;width:100vw;">
<script src="runswf.js"></script>
</html>



If you want to put your swf in it, you have to turn the swf into a base64 string you can use this site to do it or any site that converts files to swf:

now in the last file mentioned replace the first line of code that has this var after the comma delete the old swf string and put your new swf string in there
var swfAsDataUri = "data:application/x-shockwave-flash;base64,putyourbase64swfhere"

now on chrome or chromium browse to chrome://extensions, click developer mode, browse to your folder with the files and click ok and now run it.

The reason we use base64 for the swf is because on chromium thats the only way to get it to run as an extension when using operating systems like debian,lubuntu,linux etc...

PhistucK

未読、
2017/08/08 11:44:162017/08/08
To: crysta...@gmail.com、Chromium-Extensions-Announce
Thank you for the instructions.
Did you try defining the SWF file as a web_accessible_resources entry instead of using base64 and just loading it in the web view?


PhistucK

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.

crysta...@gmail.com

未読、
2017/08/08 13:00:042017/08/08
To: Chromium-Extensions-Announce
I tried almost everything that involves accessing the file and they all give me the right click option, once you get that right click option you're screwed so I am just going to keep it like this but you can try it and let me know if it starts the swf right up.
メッセージは削除されました

PhistucK

未読、
2017/08/08 16:12:592017/08/08
To: crysta...@gmail.com、Chromium-Extensions-Announce
I would if I could, but I do not have a Linux machine and you mention that this is specific to Linux.
If you find time to test my suggestion, it would be great if you reported back.
My proposal has an added benefit - less memory usage (data URLs increase the memory usage and have higher processing costs), in addition to being much simpler to implement.


PhistucK

On Tue, Aug 8, 2017 at 8:00 PM, <crysta...@gmail.com> wrote:
I tried almost everything that involves accessing the file and they all give me the right click option, once you get that right click option you're screwed so I am just going to keep it like this but you can try it and let me know if it starts the swf right up.

--
You received this message because you are subscribed to the Google Groups "Chromium-Extensions-Announce" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-extensions@chromium.org.
Visit this group at https://groups.google.com/a/chromium.org/group/chromium-extensions/.

NadiaZ Z

未読、
2017/08/08 17:57:302017/08/08
To: Chromium-Extensions-Announce
у меня тоже расширение не устанавливается, что такое - срочно надо

воскресенье, 6 августа 2017 г., 1:27:32 UTC+5 пользователь crysta...@gmail.com написал:


В субботу, 5 августа 2017 года в 1:23:34 PM UTC-7, Crysta ... @ gmail.com писал:
Привет Я работаю над расширением хрома, где я использую скрипт JS, чтобы загрузить локальный SWF-файл:

chrome.app.window.create('test.swf', {id: 'main',bounds: { width: 620, height: 500 } });


Я в конечном итоге с этого экрана:

И проблема с этой опцией правой кнопки мыши в том, что расширение имеет только эти пункты в контекстном меню:

  • перезарядка приложение
  • симулировать перезапуск браузера
  • осмотреть
  • инспектировать фона страницы
и когда приложение поворачивается к CRX, чтобы установить, нет меню правого щелчка мышью на всех, так что я действительно не могу правой кнопкой мыши, чтобы включить плагин. Может быть, есть какой-то наслоение вопрос, где нет правой кнопкой мыши фокус, где мне нужно быть, вот что я имею в виду, потому что я не могу выделить какой-либо текст с помощью моей мыши либо. 


Если я использую сценарий, я показал вам раньше, чтобы загрузить HTML-скрипт с WebView тега, я могу видеть ГИФы просто отлично просмотра в Интернете с ним, но отсутствует у меня есть, что правильный вариант щелчок, когда я не могу сделать так, пожалуйста, помогите мне получить его работать в автономном режиме. Я пошлю вам что-то в PayPal, если вы можете помочь мне исправить это.


вот мои файлы:

 background.js:

chrome.app.window.create ( ' test.swf', {ID: 'главной', границы: {ширина: 620, высота: 500}});

manifest.json:

{
"Manifest_version": 2,
«Название»: «тестирование»,
"Версия": "1",
"иконка": {},
"Приложение": {
"задний план": {
"скрипты": [ "background.js"]
}
},
"требования": {
"3D": {
"функции": []
}
},
"разрешение": [
"ContextMenus",
"место хранения",
"WebView"
],
"Offline_enabled": правда
}


и test.swf, которые я не могу прикрепить что-либо в данный момент из-за ошибки, так просто получить любые швейцарские франки

crysta...@gmail.com

未読、
2017/08/08 19:16:132017/08/08
To: Chromium-Extensions-Announce
nadia if you can't get this extension to run try going to chrome://flags and enable the first option and restart chromium. Oh and also this program works on any chromium for any operating system as long as you have pepperflash for your browser and this program should work on chromium version 52 and under I dont think any of the version 60's will have it working.

crysta...@gmail.com

未読、
2017/08/10 16:40:412017/08/10
To: Chromium-Extensions-Announce
does anyone know where the mime type is for chromium on windows 7?

craig...@mac.com

未読、
2017/09/12 17:37:452017/09/12
To: Chromium-Extensions-Announce
Does your files still work?

I followed your instructions, and it worked fine, but now it doesn’t. Just a bunch of code gets displayed. (Chrome 61)

Any ideas? I am pretty stuck. 

Craig
全員に返信
投稿者に返信
転送
新着メール 0 件